Compare commits
2 Commits
34fe67fafb
...
a6927f8a07
Author | SHA1 | Date | |
---|---|---|---|
a6927f8a07 | |||
c62cc3b5e4 |
2
kernel/constants.68k
Normal file
2
kernel/constants.68k
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.global kernel_map_page
|
||||||
|
kernel_map_page = 0xFEF000
|
@ -3,9 +3,6 @@ ENTRY (_start)
|
|||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
. = 0x1000;
|
. = 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 ALIGN (4K) : {
|
||||||
*(.early.text)
|
*(.early.text)
|
||||||
}
|
}
|
||||||
@ -19,31 +16,22 @@ SECTIONS
|
|||||||
*(.early.bss)
|
*(.early.bss)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
. += 0xC00000;
|
. += 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)
|
*(.text)
|
||||||
}
|
}
|
||||||
.rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC00000)
|
.rodata ALIGN (4K) : AT (ADDR (.rodata) - 0xC00000) {
|
||||||
{
|
|
||||||
*(.rodata)
|
*(.rodata)
|
||||||
}
|
}
|
||||||
.data ALIGN (4K) : AT (ADDR (.data) - 0xC00000)
|
.data ALIGN (4K) : AT (ADDR (.data) - 0xC00000) {
|
||||||
{
|
|
||||||
*(.data)
|
*(.data)
|
||||||
}
|
}
|
||||||
.bss ALIGN (4K) : AT (ADDR (.bss) - 0xC00000)
|
.bss ALIGN (4K) : AT (ADDR (.bss) - 0xC00000) {
|
||||||
{
|
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
*(.bss)
|
*(.bss)
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagereserve ALIGN (4K) : {
|
.pagereserve ALIGN (4K) : {
|
||||||
*(.pagereserve)
|
*(.pagereserve)
|
||||||
}
|
}
|
||||||
|
|
||||||
kernel_map_page = 0xFEF000;
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user