Changeset bf3dd35 in mainline
- Timestamp:
- 2012-01-31T22:03:21Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 03cdd2b
- Parents:
- 20de14d
- Location:
- kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/acpi/acpi.c
r20de14d rbf3dd35 102 102 103 103 /* Start with mapping the header only. */ 104 vhdr = (struct acpi_sdt_header *) km_map _structure((uintptr_t) psdt,104 vhdr = (struct acpi_sdt_header *) km_map((uintptr_t) psdt, 105 105 sizeof(struct acpi_sdt_header), PAGE_READ | PAGE_NOT_CACHEABLE); 106 106 107 107 /* Now we can map the entire structure. */ 108 vsdt = (struct acpi_sdt_header *) km_map _structure((uintptr_t) psdt,108 vsdt = (struct acpi_sdt_header *) km_map((uintptr_t) psdt, 109 109 vhdr->length, PAGE_WRITE | PAGE_NOT_CACHEABLE); 110 110 -
kernel/generic/include/mm/km.h
r20de14d rbf3dd35 50 50 51 51 extern uintptr_t km_map(uintptr_t, size_t, unsigned int); 52 extern uintptr_t km_map_structure(uintptr_t, size_t, unsigned int);53 52 54 53 extern uintptr_t km_temporary_page_get(uintptr_t *, frame_flags_t); -
kernel/generic/src/mm/km.c
r20de14d rbf3dd35 124 124 } 125 125 126 uintptr_t km_map(uintptr_t paddr, size_t size, unsigned int flags) 126 static uintptr_t 127 km_map_aligned(uintptr_t paddr, size_t size, unsigned int flags) 127 128 { 128 129 uintptr_t vaddr; … … 145 146 } 146 147 147 uintptr_t km_map _structure(uintptr_t paddr, size_t size, unsigned int flags)148 uintptr_t km_map(uintptr_t paddr, size_t size, unsigned int flags) 148 149 { 149 150 size_t offs = paddr - ALIGN_DOWN(paddr, FRAME_SIZE); 150 151 uintptr_t page; 151 152 152 page = km_map(ALIGN_DOWN(paddr, FRAME_SIZE), size + offs, flags); 153 page = km_map_aligned(ALIGN_DOWN(paddr, FRAME_SIZE), size + offs, 154 flags); 153 155 return page + offs; 154 156 }
Note:
See TracChangeset
for help on using the changeset viewer.