Changeset 6e5252a in mainline for kernel/arch/ia32/_link.ld.in
- Timestamp:
- 2018-11-13T20:22:20Z (6 years ago)
- Children:
- 156bae23
- Parents:
- 2214382
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-23 21:48:41)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-13 20:22:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/_link.ld.in
r2214382 r6e5252a 14 14 ENTRY(multiboot_image_start) 15 15 16 PHDRS { 17 ap_boot PT_LOAD ; 18 unmapped PT_LOAD ; 19 mapped PT_LOAD ; 20 } 21 16 22 SECTIONS { 17 23 kernel_load_address = PA2KA(BOOT_OFFSET); 18 24 19 .unmapped (BOOT_OFFSET + SIZEOF_HEADERS): AT (BOOT_OFFSET + SIZEOF_HEADERS) { 25 .ap_bootstrap (AP_BOOT_OFFSET): AT (AP_BOOT_OFFSET) { 26 ap_bootstrap_start = .; 27 28 /* Must be first. */ 29 *(.multiboot); 30 31 *(K_AP_TEXT_START); 32 *(K_AP_DATA_START); 33 ap_bootstrap_end = .; 34 } :ap_boot 35 36 .unmapped (BOOT_OFFSET): AT (BOOT_OFFSET) { 20 37 unmapped_start = .; 21 38 *(K_TEXT_START); 22 39 *(K_DATA_START); 23 40 unmapped_end = .; 24 } 41 } :unmapped 25 42 26 .mapped (PA2KA(BOOT_OFFSET) + SIZEOF _HEADERS + SIZEOF(.unmapped)): AT (BOOT_OFFSET + SIZEOF_HEADERS+ SIZEOF(.unmapped)) {43 .mapped (PA2KA(BOOT_OFFSET) + SIZEOF(.unmapped)): AT (BOOT_OFFSET + SIZEOF(.unmapped)) { 27 44 ktext_start = .; 28 45 *(.text .text.*); … … 41 58 *(symtab.*); /* Symbol table, must be LAST symbol! */ 42 59 kdata_end = .; 43 } 60 } :mapped 44 61 45 62 #ifdef CONFIG_LINE_DEBUG … … 61 78 62 79 #ifdef CONFIG_SMP 63 64 ap_boot = unmapped_ap_boot - BOOT_OFFSET + AP_BOOT_OFFSET;65 ap_gdtr = unmapped_ap_gdtr - BOOT_OFFSET + AP_BOOT_OFFSET;66 80 protected_ap_gdtr = PA2KA(ap_gdtr); 67 68 81 #endif /* CONFIG_SMP */ 69 82
Note:
See TracChangeset
for help on using the changeset viewer.