Changeset c0b45fa in mainline
- Timestamp:
- 2005-09-05T12:15:04Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c55af3
- Parents:
- ff4c4f5
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/boot/boot.S
rff4c4f5 rc0b45fa 218 218 movl %eax, page_directory # mapping 0x00000000 => 0x00000000 219 219 220 movl $(page_directory+ (4096/2)), %edx220 movl $(page_directory+2048), %edx 221 221 movl %eax, (%edx) # mapping 0x80000000 => 0x00000000 222 222 -
arch/ia32/src/mm/page.c
rff4c4f5 rc0b45fa 57 57 * PA2KA(identity) mapping for all frames. 58 58 */ 59 for (i = 0; i < frames; i++) { 60 map_page_to_frame(i * PAGE_SIZE, i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba)); 59 for (i = 0; i < frames; i++) 61 60 map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba)); 62 }63 61 64 62 trap_register(14, page_fault); -
arch/ia32/src/smp/ap.S
rff4c4f5 rc0b45fa 70 70 call map_kernel # map kernel and turn paging on 71 71 72 addl $0x80000000, %esp # PA2KA(ctx.sp) 73 72 74 jmpl $KTEXT, $main_ap 73 75 -
arch/ia32/src/smp/smp.c
rff4c4f5 rc0b45fa 144 144 memcpy(gdt_new, gdt, GDT_ITEMS*sizeof(struct descriptor)); 145 145 memsetb((__address)(&gdt_new[TSS_DES]), sizeof(struct descriptor), 0); 146 real_bootstrap_gdtr.base = KA2PA((__address) gdt_new);146 ((struct ptr_16_32 *) PA2KA((__address) &real_bootstrap_gdtr))->base = KA2PA((__address) gdt_new); 147 147 gdtr.base = (__address) gdt_new; 148 148 149 149 if (l_apic_send_init_ipi(ops->cpu_apic_id(i))) { 150 150 /* 151 151 * There may be just one AP being initialized at 152 152 * the time. After it comes completely up, it is 153 153 * supposed to wake us up. 154 154 */ 155 155 if (waitq_sleep_timeout(&ap_completion_wq, 1000000, SYNCH_BLOCKING) == ESYNCH_TIMEOUT) 156 156 printf("%s: waiting for cpu%d (APIC ID = %d) timed out\n", __FUNCTION__, config.cpu_active > i ? config.cpu_active : i, ops->cpu_apic_id(i)); 157 } 158 else { 157 } else 159 158 printf("INIT IPI for l_apic%d failed\n", ops->cpu_apic_id(i)); 160 }161 159 } 162 160 -
src/main/main.c
rff4c4f5 rc0b45fa 219 219 */ 220 220 the_initialize(THE); 221 221 222 222 arch_pre_mm_init(); 223 223 frame_init(); 224 224 page_init(); 225 225 arch_post_mm_init(); 226 226 227 227 cpu_init(); 228 228 229 calibrate_delay_loop(); 229 230
Note:
See TracChangeset
for help on using the changeset viewer.