summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.xyz>2021-01-17 20:14:26 -0600
committerDanny Holman <dholman@gymli.xyz>2021-01-17 20:14:26 -0600
commit22af367ab783fc579198d8b6eb4e0e4722a30517 (patch)
treec1a232619ab33a0b23d9c4c8d9da7a5822b4f44e /arch
Initial commit
Signed-off-by: Danny Holman <dholman@gymli.xyz>
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/linker.ld19
-rw-r--r--arch/i386/make.config6
2 files changed, 25 insertions, 0 deletions
diff --git a/arch/i386/linker.ld b/arch/i386/linker.ld
new file mode 100644
index 0000000..a864c34
--- /dev/null
+++ b/arch/i386/linker.ld
@@ -0,0 +1,19 @@
+ENTRY(_start)
+
+SECTIONS {
+ . = 1M;
+ .text BLOCK(4K) : ALIGN(4K) {
+ *(.multiboot)
+ *(.text)
+ }
+ .rodata BLOCK(4K) : ALIGN(4K) {
+ *(.rodata)
+ }
+ .data BLOCK(4K) : ALIGN(4K) {
+ *(.data)
+ }
+ .bss BLOCK(4K) : ALIGN(4K) {
+ *(COMMON)
+ *(.bss)
+ }
+}
diff --git a/arch/i386/make.config b/arch/i386/make.config
new file mode 100644
index 0000000..a5049af
--- /dev/null
+++ b/arch/i386/make.config
@@ -0,0 +1,6 @@
+KERNEL_ARCH_CFLAGS=
+KERNEL_ARCH_LDFLAGS=
+KERNEL_ARCH_LIBS=
+
+KERNEL_ARCH_OBJS=$(ARCHDIR)/boot.o \
+ $(ARCHDIR)/tty.o \