Changeset babb57e in mainline
- Timestamp:
- 2012-01-28T12:36:01Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 93da799
- Parents:
- 221c9ec
- Location:
- kernel/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/mm/km.h
r221c9ec rbabb57e 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); 52 53 53 54 extern uintptr_t km_temporary_page_get(uintptr_t *, frame_flags_t); -
kernel/generic/src/mm/km.c
r221c9ec rbabb57e 145 145 } 146 146 147 uintptr_t km_map_structure(uintptr_t paddr, size_t size, unsigned int flags) 148 { 149 size_t offs = paddr - ALIGN_DOWN(paddr, FRAME_SIZE); 150 uintptr_t page; 151 152 page = km_map(ALIGN_DOWN(paddr, FRAME_SIZE), size + offs, flags); 153 return page + offs; 154 } 147 155 148 156 /** Unmap kernen non-identity page.
Note:
See TracChangeset
for help on using the changeset viewer.