Compare commits

...

2 Commits

2 changed files with 6 additions and 16 deletions

2
kernel/constants.68k Normal file
View File

@ -0,0 +1,2 @@
.global kernel_map_page
kernel_map_page = 0xFEF000

View File

@ -3,9 +3,6 @@ ENTRY (_start)
SECTIONS
{
. = 0x1000;
/* The kernel will live at 12MB in the virtual address space, */
/* which will be mapped to 0 in the physical address space. */
/* Note that we page-align the sections. */
.early.text ALIGN (4K) : {
*(.early.text)
}
@ -19,31 +16,22 @@ SECTIONS
*(.early.bss)
}
. += 0xC00000;
/* Add a symbol that indicates the start address of the kernel. */
.text ALIGN (4K) : AT (ADDR (.text) - 0xC00000)
{
.text ALIGN (4K) : AT (ADDR (.text) - 0xC00000) {
*(.text)
}
.rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC00000)
{
.rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC00000) {
*(.rodata)
}
.data ALIGN (4K) : AT (ADDR (.data) - 0xC00000)
{
.data ALIGN (4K) : AT (ADDR (.data) - 0xC00000) {
*(.data)
}
.bss ALIGN (4K) : AT (ADDR (.bss) - 0xC00000)
{
.bss ALIGN (4K) : AT (ADDR (.bss) - 0xC00000) {
*(COMMON)
*(.bss)
}
.pagereserve ALIGN (4K) : {
*(.pagereserve)
}
kernel_map_page = 0xFEF000;
}