diff options
author | Danny Holman <dholman@gymli.xyz> | 2021-01-17 20:14:26 -0600 |
---|---|---|
committer | Danny Holman <dholman@gymli.xyz> | 2021-01-17 20:14:26 -0600 |
commit | 22af367ab783fc579198d8b6eb4e0e4722a30517 (patch) | |
tree | c1a232619ab33a0b23d9c4c8d9da7a5822b4f44e /arch/i386 |
Initial commit
Signed-off-by: Danny Holman <dholman@gymli.xyz>
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/linker.ld | 19 | ||||
-rw-r--r-- | arch/i386/make.config | 6 |
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 \ |