Changeset 946b630 in mainline
- Timestamp:
- 2005-09-03T21:01:23Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5260478
- Parents:
- c835e7c
- Location:
- arch
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/Makefile.inc
rc835e7c r946b630 53 53 54 54 ifdef SMP 55 arch_sources += arch/smp/apic.c \ 55 arch_sources += arch/smp/ap.S \ 56 arch/smp/apic.c \ 56 57 arch/smp/ipi.c \ 57 58 arch/smp/mps.c \ -
arch/amd64/_link.ld
rc835e7c r946b630 56 56 kdata_end = .; 57 57 } 58 _map_address = 0xffffffff80100000; 58 _boot_offset = 0x100000; 59 _ka2pa_offset = 0xffffffff80000000; 60 _map_address = _ka2pa_offset + _boot_offset; 61 59 62 _hardcoded_kernel_size = (ktext_end - ktext_start) + (unmapped_ktext_end - unmapped_ktext_start) + (kdata_end - kdata_start) + (unmapped_kdata_end - unmapped_kdata_start); 60 63 61 64 e820table_boot = e820table - _map_address; 62 65 e820counter_boot = e820counter - _map_address; 66 ap_bootstrap_gdtr = ap_bootstrap_gdtr_boot + _ka2pa_offset; 63 67 } -
arch/amd64/src/boot/boot.S
rc835e7c r946b630 83 83 jmp 1b 84 84 85 # Protected 16-bit. We want to reuse the code-seg descriptor, 86 # the Default operand size must not be 1 when entering long mode 85 # Protected 32-bit. We want to reuse the code-seg descriptor, 86 # the Default operand size must not be 1 when entering long mode 87 .code32 87 88 now_in_prot: 88 89 # Set up stack & data descriptors 89 90 movw $gdtselector(KDATA_DES), %ax 90 91 movw %ax, %ds 91 movw %ax, %fs92 movw %ax, %gs93 92 movw %ax, %ss 94 93 … … 172 171 .word gdtselector(GDT_ITEMS) 173 172 .long KA2PA(gdt)-BOOT_OFFSET 174 175 .global ap_bootstrap_gdtr176 ap_bootstrap_gdtr:177 .word gdtselector(GDT_ITEMS)178 .long KA2PA(gdt)-BOOT_OFFSET -
arch/amd64/src/dummy.s
rc835e7c r946b630 28 28 29 29 .text 30 31 .global ap_boot32 33 ap_boot:34 ret -
arch/amd64/src/pm.c
rc835e7c r946b630 92 92 .granularity = 1, 93 93 .base_24_31 = 0 }, 94 /* KTEXT 16-bit protected */94 /* KTEXT 32-bit protected */ 95 95 { .limit_0_15 = 0xffff, 96 96 .base_0_15 = 0, … … 100 100 .available = 0, 101 101 .longmode = 0, 102 .special = 0,102 .special = 1, 103 103 .granularity = 1, 104 104 .base_24_31 = 0 }, -
arch/ia32/src/smp/mps.c
rc835e7c r946b630 224 224 } 225 225 226 l_apic = (__u32 *) PA2KA((__address)ct->l_apic);226 l_apic = (__u32 *)(__address)ct->l_apic; 227 227 228 228 cnt = 0; … … 334 334 } 335 335 336 io_apic = (__u32 *) PA2KA((__address)ioa->io_apic);336 io_apic = (__u32 *)(__address)ioa->io_apic; 337 337 } 338 338 -
arch/ia32/src/smp/smp.c
rc835e7c r946b630 62 62 } 63 63 64 if (config.cpu_count > 1) { 65 map_page_to_frame((__address)l_apic, KA2PA((__address)l_apic),64 if (config.cpu_count > 1) { 65 map_page_to_frame((__address)l_apic, (__address)l_apic, 66 66 PAGE_NOT_CACHEABLE, 0); 67 map_page_to_frame((__address) io_apic, 68 KA2PA((__address) io_apic),67 map_page_to_frame((__address) io_apic, 68 (__address) io_apic, 69 69 PAGE_NOT_CACHEABLE, 0); 70 70 }
Note:
See TracChangeset
for help on using the changeset viewer.