diff --git a/kernel b/kernel deleted file mode 100755 index 0be1a9a..0000000 Binary files a/kernel and /dev/null differ diff --git a/src/boot/linker.ld b/src/boot/linker.ld index 5615df3..b01bd5f 100644 --- a/src/boot/linker.ld +++ b/src/boot/linker.ld @@ -1,21 +1,8 @@ - ENTRY(main) - -SECTIONS { - . = 0x7c00; - - .text : { - *(.text) - } - - .rodata : { - *(.rodata) - } - - .data : { - *(.data) - } - - .bss : { - *(.bss) - } -} \ No newline at end of file +ENTRY(boot) + SECTIONS { + . = 0x7c00; + .text : { + *(.text) + } + /* Add other sections as needed */ + } \ No newline at end of file diff --git a/src/kernel/kernel.bin b/src/kernel/kernel.bin new file mode 100755 index 0000000..9a52566 Binary files /dev/null and b/src/kernel/kernel.bin differ diff --git a/src/kernel/linker.ld b/src/kernel/linker.ld new file mode 100644 index 0000000..6f90a30 --- /dev/null +++ b/src/kernel/linker.ld @@ -0,0 +1,21 @@ +ENTRY(kernel_main) + +SECTIONS { + . = 0x100000; + + .text : { + *(.text) + } + + .rodata : { + *(.rodata) + } + + .data : { + *(.data) + } + + .bss : { + *(.bss) + } +} \ No newline at end of file diff --git a/src/kernel/print.c b/src/kernel/print.c new file mode 100644 index 0000000..b9e1680 --- /dev/null +++ b/src/kernel/print.c @@ -0,0 +1,5 @@ +#include "kernel.h" + +void print_string(const char* str) { + // Your code to print the string to the screen goes here +} \ No newline at end of file diff --git a/src/linker.ld b/src/linker.ld deleted file mode 100644 index b01bd5f..0000000 --- a/src/linker.ld +++ /dev/null @@ -1,8 +0,0 @@ -ENTRY(boot) - SECTIONS { - . = 0x7c00; - .text : { - *(.text) - } - /* Add other sections as needed */ - } \ No newline at end of file