-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
directly map kernel image to physical address 0
Signed-off-by: smallkirby <ssmallkirby@gmail.com>
- Loading branch information
1 parent
5841dd3
commit c5f9e3b
Showing
5 changed files
with
37 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
KERNEL_VADDR_BASE = 0xFFFFFFFF80000000; | ||
KERNEL_VADDR_TEXT = 0xFFFFFFFF80100000; | ||
|
||
SECTIONS { | ||
. = KERNEL_VADDR_TEXT; | ||
|
||
.text ALIGN(4K) : AT (ADDR(.text) - KERNEL_VADDR_BASE) { | ||
*(.text) | ||
} | ||
|
||
.rodata ALIGN(4K) : AT (ADDR(.rodata) - KERNEL_VADDR_BASE) { | ||
*(.rodata) | ||
} | ||
|
||
.data ALIGN(4K) : AT (ADDR(.data) - KERNEL_VADDR_BASE) { | ||
*(.data) | ||
} | ||
|
||
.bss ALIGN(4K) : AT (ADDR(.bss) - KERNEL_VADDR_BASE) { | ||
*(COMMON) | ||
*(.bss) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters