Changeset 1b492b5 in mainline
- Timestamp:
- 2005-09-05T12:48:54Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2d9869b
- Parents:
- 8f2153b
- Location:
- arch
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/Makefile.inc
r8f2153b r1b492b5 26 26 LFLAGS=-M 27 27 28 ../arch/ amd64/_link.ld: ../arch/amd64/_link.ld.in28 ../arch/$(ARCH)/_link.ld: ../arch/$(ARCH)/_link.ld.in 29 29 $(CC) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@ 30 30 -
arch/amd64/_link.ld.in
r8f2153b r1b492b5 38 38 *(.rodata*); /* string literals */ 39 39 hardcoded_load_address = .; 40 QUAD( ktext_start - SIZEOF(.unmapped));40 QUAD(PA2KA(BOOT_OFFSET+BOOTSTRAP_OFFSET)); 41 41 hardcoded_ktext_size = .; 42 42 QUAD(ktext_end - ktext_start + (unmapped_ktext_end - unmapped_ktext_start)); … … 62 62 63 63 _hardcoded_kernel_size = (ktext_end - ktext_start) + (unmapped_ktext_end - unmapped_ktext_start) + (kdata_end - kdata_start) + (unmapped_kdata_end - unmapped_kdata_start); 64 _boot_offset = 0x100000;65 _ka2pa_offset = 0xffffffff80000000;66 _map_address = _ka2pa_offset + _boot_offset;67 68 64 69 65 e820table_boot = KA2PA(e820table) - BOOT_OFFSET; -
arch/ia32/Makefile.inc
r8f2153b r1b492b5 21 21 CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 22 22 LFLAGS=-M -no-check-sections 23 24 ../arch/$(ARCH)/_link.ld: ../arch/$(ARCH)/_link.ld.in 25 $(CC) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@ 23 26 24 27 arch_sources= \ -
arch/ia32/_link.ld.in
r8f2153b r1b492b5 9 9 */ 10 10 11 #define __ASM__ 12 #include <arch/boot/boot.h> 13 #include <arch/mm/page.h> 14 11 15 OUTPUT_FORMAT(binary) 12 16 ENTRY(kernel_image_start) 13 17 14 18 SECTIONS { 15 .unmapped 0x8000: AT (0x8000) {19 .unmapped BOOTSTRAP_OFFSET: AT (BOOTSTRAP_OFFSET) { 16 20 unmapped_ktext_start = .; 17 21 *(K_TEXT_START); … … 24 28 } 25 29 26 .mapped ( 0x80100000+0x8000+SIZEOF(.unmapped)): AT (0x8000+SIZEOF(.unmapped)) {30 .mapped (PA2KA(BOOT_OFFSET+BOOTSTRAP_OFFSET)+SIZEOF(.unmapped)): AT (BOOTSTRAP_OFFSET+SIZEOF(.unmapped)) { 27 31 ktext_start = .; 28 32 *(BOOT_DATA) … … 35 39 *(COMMON); /* global variables */ 36 40 hardcoded_load_address = .; 37 LONG( 0x80108000);41 LONG(PA2KA(BOOT_OFFSET+BOOTSTRAP_OFFSET)); 38 42 hardcoded_ktext_size = .; 39 43 LONG(ktext_end - ktext_start + (unmapped_ktext_end - unmapped_ktext_start)); … … 56 60 _hardcoded_unmapped_size = (unmapped_ktext_end - unmapped_ktext_start) + (unmapped_kdata_end - unmapped_kdata_start); 57 61 58 _map_address = 0x80100000; 59 e820table_boot = e820table - _map_address; 60 e820counter_boot = e820counter - _map_address; 61 real_bootstrap_gdtr = real_bootstrap_gdtr_boot + 0x80000000; 62 e820table_boot = KA2PA(e820table) - BOOT_OFFSET; 63 e820counter_boot = KA2PA(e820counter) - BOOT_OFFSET; 64 real_bootstrap_gdtr = PA2KA(real_bootstrap_gdtr_boot); 62 65 }
Note:
See TracChangeset
for help on using the changeset viewer.