4 FUTURE: Use disk reader
6 We will pull our higher half kernel out of this shit
7 and load it separately once we have our disk reader.
13 /* 这里是我们的高半核初始化代码段和数据段 */
15 .hhk_init_text BLOCK(4K) : {
17 build/obj/arch/x86/*.o (.hhk_init)
18 build/obj/arch/x86/*.o (.text)
21 .hhk_init_bss BLOCK(4K) : {
22 build/obj/arch/x86/*.o (.bss)
25 .hhk_init_data BLOCK(4K) : {
26 build/obj/arch/x86/*.o (.data)
29 .hhk_init_rodata BLOCK(4K) : {
30 build/obj/arch/x86/*.o (.rodata)
32 __init_hhk_end = ALIGN(4K);
34 /* Relocation of our higher half kernel */
38 .text BLOCK(4K) : AT ( ADDR(.text) - 0xC0000000 ) {
40 build/obj/kernel/*.o (.text)
41 build/obj/hal/*.o (.text)
44 __usrtext_start = ALIGN(4K);
45 .usrtext BLOCK(4K) : AT ( ADDR(.usrtext) - 0xC0000000 ) {
46 build/obj/kernel/*.o (.usrtext)
48 __usrtext_end = ALIGN(4K);
50 .data BLOCK(4k) : AT ( ADDR(.data) - 0xC0000000 ) {
51 build/obj/kernel/*.o (.data)
52 build/obj/hal/*.o (.data)
55 .rodata BLOCK(4K) : AT ( ADDR(.rodata) - 0xC0000000 ) {
56 build/obj/kernel/*.o (.rodata)
57 build/obj/hal/*.o (.rodata)
60 .kpg BLOCK(4K) : AT ( ADDR(.kpg) - 0xC0000000 ) {
61 build/obj/arch/x86/*.o (.kpg)
64 .bss BLOCK(4K) : AT ( ADDR(.bss) - 0xC0000000 ) {
65 build/obj/kernel/*.o (.bss)
66 build/obj/hal/*.o (.bss)
69 __kernel_end = ALIGN(4K);