Changeset e3ce39b in mainline
- Timestamp:
- 2010-05-31T19:08:26Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6e2bf29
- Parents:
- a820bf7
- Location:
- kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/mm/page.c
ra820bf7 re3ce39b 61 61 * PA2KA(identity) mapping for all frames until last_frame. 62 62 */ 63 page_table_lock(AS_KERNEL, true); 63 64 for (cur = 0; cur < last_frame; cur += FRAME_SIZE) { 64 65 flags = PAGE_CACHEABLE | PAGE_WRITE; … … 67 68 page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags); 68 69 } 70 page_table_unlock(AS_KERNEL, true); 69 71 70 72 exc_register(14, "page_fault", (iroutine) page_fault); … … 84 86 uintptr_t virtaddr = PA2KA(last_frame); 85 87 pfn_t i; 88 page_table_lock(AS_KERNEL, true); 86 89 for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++) { 87 90 uintptr_t addr = PFN2ADDR(i); 88 91 page_mapping_insert(AS_KERNEL, virtaddr + addr, physaddr + addr, PAGE_NOT_CACHEABLE | PAGE_WRITE); 89 92 } 93 page_table_unlock(AS_KERNEL, true); 90 94 91 95 last_frame = ALIGN_UP(last_frame + size, FRAME_SIZE); -
kernel/arch/ia32/src/smp/smp.c
ra820bf7 re3ce39b 83 83 panic("Cannot allocate address for io_apic."); 84 84 85 if (config.cpu_count > 1) { 85 if (config.cpu_count > 1) { 86 page_table_lock(AS_KERNEL, true); 86 87 page_mapping_insert(AS_KERNEL, l_apic_address, 87 88 (uintptr_t) l_apic, PAGE_NOT_CACHEABLE | PAGE_WRITE); 88 89 page_mapping_insert(AS_KERNEL, io_apic_address, 89 90 (uintptr_t) io_apic, PAGE_NOT_CACHEABLE | PAGE_WRITE); 91 page_table_unlock(AS_KERNEL, true); 90 92 91 93 l_apic = (uint32_t *) l_apic_address; -
kernel/genarch/src/acpi/acpi.c
ra820bf7 re3ce39b 99 99 static void map_sdt(struct acpi_sdt_header *sdt) 100 100 { 101 page_table_lock(AS_KERNEL, true); 101 102 page_mapping_insert(AS_KERNEL, (uintptr_t) sdt, (uintptr_t) sdt, PAGE_NOT_CACHEABLE | PAGE_WRITE); 102 103 map_structure((uintptr_t) sdt, sdt->length); 104 page_table_unlock(AS_KERNEL, true); 103 105 } 104 106
Note:
See TracChangeset
for help on using the changeset viewer.