Changeset 87db879 in mainline
- Timestamp:
- 2018-11-13T20:22:20Z (6 years ago)
- Children:
- 948e85b
- Parents:
- 156bae23
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-10-24 14:37:23)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-13 20:22:20)
- Location:
- kernel/arch/ia32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/_link.ld.in
r156bae23 r87db879 23 23 kernel_load_address = PA2KA(BOOT_OFFSET); 24 24 25 .ap_bootstrap (AP_BOOT_OFFSET): AT (AP_BOOT_OFFSET) { 26 ap_bootstrap_start = .; 25 . = AP_BOOT_OFFSET + SIZEOF_HEADERS; 27 26 28 29 *(.multiboot);27 /* Must be first. */ 28 .multiboot : { *(.multiboot); } :ap_boot 30 29 30 ap_bootstrap_start = .; 31 32 .ap_bootstrap : { 31 33 *(K_AP_TEXT_START); 32 34 *(K_AP_DATA_START); 33 ap_bootstrap_end = .;34 35 } :ap_boot 35 36 36 .unmapped (BOOT_OFFSET): AT (BOOT_OFFSET) { 37 unmapped_start = .; 37 ap_bootstrap_end = .; 38 39 . = BOOT_OFFSET + (ap_bootstrap_end & (PAGE_SIZE-1)); 40 unmapped_start = .; 41 42 .unmapped : { 38 43 *(K_TEXT_START); 39 44 *(K_DATA_START); 40 unmapped_end = .;41 45 } :unmapped 46 47 unmapped_file_end = .; 42 48 43 49 .unmapped_bss : { 44 50 *(.bootstack); 51 *(K_BSS_START); 45 52 } :unmapped 46 53 47 .mapped (PA2KA(BOOT_OFFSET) + SIZEOF(.unmapped) + SIZEOF(.unmapped_bss)): AT (BOOT_OFFSET + SIZEOF(.unmapped) + SIZEOF(.unmapped_bss)) { 54 unmapped_end = .; 55 mapped_load_start = ALIGN(PAGE_SIZE) + (unmapped_file_end & (PAGE_SIZE-1)); 56 57 .mapped (PA2KA(mapped_load_start)): AT (mapped_load_start) { 48 58 ktext_start = .; 49 59 *(.text .text.*); -
kernel/arch/ia32/src/boot/multiboot.S
r156bae23 r87db879 597 597 ret 598 598 599 .section K_ DATA_START, "aw", @progbits599 .section K_BSS_START, "aw", @nobits 600 600 601 601 .align 4096 … … 607 607 .long 0 608 608 609 SYMBOL(multiboot_eax) 610 .long 0 611 612 SYMBOL(multiboot_ebx) 613 .long 0 614 615 pt_loc: 616 .long 0 617 kernel_end: 618 .long 0 619 free_area: 620 .long 0 621 622 .section K_DATA_START, "aw", @progbits 623 609 624 SYMBOL(bootstrap_gdtr) 610 625 .word GDT_SELECTOR(GDT_ITEMS) 611 626 .long KA2PA(gdt) 612 613 SYMBOL(multiboot_eax)614 .long 0615 616 SYMBOL(multiboot_ebx)617 .long 0618 619 pt_loc:620 .long 0621 kernel_end:622 .long 0623 free_area:624 .long 0625 627 626 628 status_prot:
Note:
See TracChangeset
for help on using the changeset viewer.