Changeset a7a10630 in mainline for arch/ia32/src
- Timestamp:
- 2005-06-07T00:41:39Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d896525
- Parents:
- b0bf501
- Location:
- arch/ia32/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/boot/boot.S
rb0bf501 ra7a10630 96 96 orl $(1<<31), %ebx 97 97 movl %ebx, %cr0 98 jmp 0f99 0:100 98 ret 101 99 -
arch/ia32/src/mm/frame.c
rb0bf501 ra7a10630 38 38 { 39 39 if (config.cpu_active == 1) { 40 kernel_frames = frames;41 kernel_frames_free = frames_free;42 frame_kernel_bitmap = frame_bitmap;43 44 40 frame_not_free(0x0); 45 41 -
arch/ia32/src/mm/page.c
rb0bf501 ra7a10630 65 65 */ 66 66 for (i = 1; i < frames; i++) { 67 map_page_to_frame(i * PAGE_SIZE, i * PAGE_SIZE, PAGE_CACHEABLE, dba);68 map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE, dba);67 map_page_to_frame(i * PAGE_SIZE, i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba)); 68 map_page_to_frame(PA2KA(i * PAGE_SIZE), i * PAGE_SIZE, PAGE_CACHEABLE, KA2PA(dba)); 69 69 } 70 70 … … 113 113 pte = (page >> 12) & 0x3ff; /* page table entry */ 114 114 115 pd = (struct page_specifier *) dba;115 pd = (struct page_specifier *) PA2KA(dba); 116 116 117 117 if (!pd[pde].present) { … … 127 127 } 128 128 129 pt = (struct page_specifier *) (pd[pde].frame_address << 12);129 pt = (struct page_specifier *) PA2KA((pd[pde].frame_address << 12)); 130 130 131 131 pt[pte].frame_address = frame >> 12; -
arch/ia32/src/pm.c
rb0bf501 ra7a10630 132 132 void pm_init(void) 133 133 { 134 struct descriptor *gdt_p = (struct descriptor *) gdtr.base;134 struct descriptor *gdt_p = (struct descriptor *) PA2KA(gdtr.base); 135 135 136 136 /* -
arch/ia32/src/smp/ap.S
rb0bf501 ra7a10630 64 64 movl $(ctx-0x80000000),%eax # KA2PA((__address) &ctx) 65 65 movl (%eax),%esp 66 subl $0x80000000,%esp # KA2PA(ctx.sp) 66 67 67 68 lidt idtr -
arch/ia32/src/smp/mps.c
rb0bf501 ra7a10630 393 393 } 394 394 395 395 396 /* 396 397 * Kernel thread for bringing up application processors. It becomes clear … … 415 416 416 417 /* 417 * Grab a frame and map its address to page 0. This is a hack which 418 * accesses data in frame 0. Note that page 0 is not present because 419 * of nil reference bug catching. 420 */ 421 frame = frame_alloc(FRAME_KA); 418 * We need to access data in frame 0. 419 */ 420 frame = frame_alloc(0); 422 421 map_page_to_frame(frame,0,PAGE_CACHEABLE,0); 423 422 … … 474 473 memcopy(gdt, gdt_new, GDT_ITEMS*sizeof(struct descriptor)); 475 474 gdtr.base = KA2PA((__address) gdt_new); 476 475 477 476 if (l_apic_send_init_ipi(pr[i].l_apic_id)) { 478 477 /*
Note:
See TracChangeset
for help on using the changeset viewer.