- Timestamp:
- 2006-01-31T00:44:08Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ef67bab
- Parents:
- 6a3c9a7
- Location:
- arch
- Files:
-
- 5 edited
-
amd64/src/mm/page.c (modified) (2 diffs)
-
ia32/src/drivers/ega.c (modified) (2 diffs)
-
ia32/src/mm/page.c (modified) (2 diffs)
-
ia32/src/smp/smp.c (modified) (2 diffs)
-
mips32/src/mm/tlb.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/mm/page.c
r6a3c9a7 rfc1e4f6 32 32 #include <mm/page.h> 33 33 #include <mm/frame.h> 34 #include <mm/as id.h>34 #include <mm/as.h> 35 35 #include <arch/interrupt.h> 36 36 #include <arch/asm.h> … … 58 58 */ 59 59 for (cur = 0; cur < last_frame; cur += FRAME_SIZE) { 60 page_mapping_insert( PA2KA(cur), ASID_KERNEL, cur, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba));60 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba)); 61 61 } 62 62 -
arch/ia32/src/drivers/ega.c
r6a3c9a7 rfc1e4f6 30 30 #include <putchar.h> 31 31 #include <mm/page.h> 32 #include <mm/as id.h>32 #include <mm/as.h> 33 33 #include <arch/mm/page.h> 34 34 #include <synch/spinlock.h> … … 60 60 __u8 hi, lo; 61 61 62 page_mapping_insert( PA2KA(VIDEORAM), ASID_KERNEL, VIDEORAM, PAGE_NOT_CACHEABLE, 0);62 page_mapping_insert(AS_KERNEL, PA2KA(VIDEORAM), VIDEORAM, PAGE_NOT_CACHEABLE, 0); 63 63 outb(0x3d4,0xe); 64 64 hi = inb(0x3d5); -
arch/ia32/src/mm/page.c
r6a3c9a7 rfc1e4f6 32 32 #include <mm/frame.h> 33 33 #include <mm/page.h> 34 #include <mm/as id.h>34 #include <mm/as.h> 35 35 #include <arch/types.h> 36 36 #include <config.h> … … 62 62 */ 63 63 for (cur = 0; cur < last_frame; cur += FRAME_SIZE) 64 page_mapping_insert( PA2KA(cur), ASID_KERNEL, cur, PAGE_CACHEABLE, KA2PA(dba));64 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, PAGE_CACHEABLE, KA2PA(dba)); 65 65 66 66 exc_register(14, "page_fault", page_fault); -
arch/ia32/src/smp/smp.c
r6a3c9a7 rfc1e4f6 45 45 #include <mm/page.h> 46 46 #include <mm/heap.h> 47 #include <mm/as id.h>47 #include <mm/as.h> 48 48 #include <print.h> 49 49 #include <memstr.h> … … 66 66 67 67 if (config.cpu_count > 1) { 68 page_mapping_insert( (__address)l_apic, ASID_KERNEL, (__address)l_apic,68 page_mapping_insert(AS_KERNEL, (__address) l_apic, (__address) l_apic, 69 69 PAGE_NOT_CACHEABLE, 0); 70 page_mapping_insert((__address) io_apic, ASID_KERNEL, 71 (__address) io_apic, 70 page_mapping_insert(AS_KERNEL, (__address) io_apic, (__address) io_apic, 72 71 PAGE_NOT_CACHEABLE, 0); 73 72 } -
arch/mips32/src/mm/tlb.c
r6a3c9a7 rfc1e4f6 340 340 * Check if the mapping exists in page tables. 341 341 */ 342 pte = page_mapping_find( badvaddr, AS->asid, 0);342 pte = page_mapping_find(AS, badvaddr, 0); 343 343 if (pte && pte->lo.v) { 344 344 /* … … 357 357 * The mapping ought to be in place. 358 358 */ 359 pte = page_mapping_find( badvaddr, AS->asid, 0);359 pte = page_mapping_find(AS, badvaddr, 0); 360 360 ASSERT(pte && pte->lo.v); 361 361 return pte;
Note:
See TracChangeset
for help on using the changeset viewer.
