mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2025-10-14 05:35:06 -07:00
some minor fixes to kernel
This commit is contained in:
@@ -1,21 +1,8 @@
|
|||||||
ENTRY(main)
|
ENTRY(boot)
|
||||||
|
SECTIONS {
|
||||||
SECTIONS {
|
. = 0x7c00;
|
||||||
. = 0x7c00;
|
.text : {
|
||||||
|
*(.text)
|
||||||
.text : {
|
}
|
||||||
*(.text)
|
/* Add other sections as needed */
|
||||||
}
|
}
|
||||||
|
|
||||||
.rodata : {
|
|
||||||
*(.rodata)
|
|
||||||
}
|
|
||||||
|
|
||||||
.data : {
|
|
||||||
*(.data)
|
|
||||||
}
|
|
||||||
|
|
||||||
.bss : {
|
|
||||||
*(.bss)
|
|
||||||
}
|
|
||||||
}
|
|
BIN
src/kernel/kernel.bin
Executable file
BIN
src/kernel/kernel.bin
Executable file
Binary file not shown.
21
src/kernel/linker.ld
Normal file
21
src/kernel/linker.ld
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
ENTRY(kernel_main)
|
||||||
|
|
||||||
|
SECTIONS {
|
||||||
|
. = 0x100000;
|
||||||
|
|
||||||
|
.text : {
|
||||||
|
*(.text)
|
||||||
|
}
|
||||||
|
|
||||||
|
.rodata : {
|
||||||
|
*(.rodata)
|
||||||
|
}
|
||||||
|
|
||||||
|
.data : {
|
||||||
|
*(.data)
|
||||||
|
}
|
||||||
|
|
||||||
|
.bss : {
|
||||||
|
*(.bss)
|
||||||
|
}
|
||||||
|
}
|
5
src/kernel/print.c
Normal file
5
src/kernel/print.c
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#include "kernel.h"
|
||||||
|
|
||||||
|
void print_string(const char* str) {
|
||||||
|
// Your code to print the string to the screen goes here
|
||||||
|
}
|
@@ -1,8 +0,0 @@
|
|||||||
ENTRY(boot)
|
|
||||||
SECTIONS {
|
|
||||||
. = 0x7c00;
|
|
||||||
.text : {
|
|
||||||
*(.text)
|
|
||||||
}
|
|
||||||
/* Add other sections as needed */
|
|
||||||
}
|
|
Reference in New Issue
Block a user