mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2024-11-22 06:06:52 -08:00
some minor fixes to kernel
This commit is contained in:
parent
7cc909d389
commit
4b75ea421d
@ -1,21 +1,8 @@
|
||||
ENTRY(main)
|
||||
|
||||
SECTIONS {
|
||||
ENTRY(boot)
|
||||
SECTIONS {
|
||||
. = 0x7c00;
|
||||
|
||||
.text : {
|
||||
*(.text)
|
||||
}
|
||||
|
||||
.rodata : {
|
||||
*(.rodata)
|
||||
/* Add other sections as needed */
|
||||
}
|
||||
|
||||
.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 */
|
||||
}
|
Loading…
Reference in New Issue
Block a user