Changeset ef67bab in mainline for arch/ia32/src
- Timestamp:
- 2006-02-01T00:02:16Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 071a8ae6
- Parents:
- fc1e4f6
- Location:
- arch/ia32/src
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/drivers/ega.c
rfc1e4f6 ref67bab 60 60 __u8 hi, lo; 61 61 62 page_mapping_insert(AS_KERNEL, PA2KA(VIDEORAM), VIDEORAM, PAGE_NOT_CACHEABLE , 0);62 page_mapping_insert(AS_KERNEL, PA2KA(VIDEORAM), VIDEORAM, PAGE_NOT_CACHEABLE); 63 63 outb(0x3d4,0xe); 64 64 hi = inb(0x3d5); -
arch/ia32/src/mm/page.c
rfc1e4f6 ref67bab 43 43 #include <interrupt.h> 44 44 45 static __address bootstrap_dba;46 47 45 void page_arch_init(void) 48 46 { 49 __address dba;50 47 __address cur; 51 48 … … 53 50 page_operations = &page_pt_operations; 54 51 55 dba = frame_alloc(FRAME_KA | FRAME_PANIC, ONE_FRAME, NULL);56 memsetb(dba, PAGE_SIZE, 0);57 58 bootstrap_dba = dba;59 60 52 /* 61 53 * PA2KA(identity) mapping for all frames until last_frame. 62 54 */ 63 55 for (cur = 0; cur < last_frame; cur += FRAME_SIZE) 64 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, PAGE_CACHEABLE , KA2PA(dba));56 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, PAGE_CACHEABLE); 65 57 66 58 exc_register(14, "page_fault", page_fault); 67 write_cr3( KA2PA(dba));59 write_cr3((__address) AS_KERNEL->page_table); 68 60 } 69 61 else { 70 write_cr3( KA2PA(bootstrap_dba));62 write_cr3((__address) AS_KERNEL->page_table); 71 63 } 72 64 -
arch/ia32/src/smp/smp.c
rfc1e4f6 ref67bab 67 67 if (config.cpu_count > 1) { 68 68 page_mapping_insert(AS_KERNEL, (__address) l_apic, (__address) l_apic, 69 PAGE_NOT_CACHEABLE , 0);69 PAGE_NOT_CACHEABLE); 70 70 page_mapping_insert(AS_KERNEL, (__address) io_apic, (__address) io_apic, 71 PAGE_NOT_CACHEABLE , 0);71 PAGE_NOT_CACHEABLE); 72 72 } 73 73
Note:
See TracChangeset
for help on using the changeset viewer.