Changeset 98000fb in mainline for kernel/generic/src/ddi/ddi.c
- Timestamp:
- 2009-06-03T19:34:45Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 301ff30
- Parents:
- 69e68e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ddi/ddi.c
r69e68e3 r98000fb 98 98 * 99 99 */ 100 static int ddi_physmem_map(uintptr_t pf, uintptr_t vp, count_t pages, int flags)100 static int ddi_physmem_map(uintptr_t pf, uintptr_t vp, size_t pages, int flags) 101 101 { 102 102 ASSERT(TASK); … … 119 119 /* Find the zone of the physical memory */ 120 120 spinlock_lock(&zones.lock); 121 count_t znum = find_zone(ADDR2PFN(pf), pages, 0);122 123 if (znum == ( count_t) -1) {121 size_t znum = find_zone(ADDR2PFN(pf), pages, 0); 122 123 if (znum == (size_t) -1) { 124 124 /* Frames not found in any zones 125 125 * -> assume it is hardware device and allow mapping … … 243 243 return (unative_t) ddi_physmem_map(ALIGN_DOWN((uintptr_t) phys_base, 244 244 FRAME_SIZE), ALIGN_DOWN((uintptr_t) virt_base, PAGE_SIZE), 245 ( count_t) pages, (int) flags);245 (size_t) pages, (int) flags); 246 246 } 247 247
Note:
See TracChangeset
for help on using the changeset viewer.