Rev 2071 | Rev 2116 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2071 | Rev 2107 | ||
---|---|---|---|
Line 232... | Line 232... | ||
232 | * @param pages Number of pages |
232 | * @param pages Number of pages |
233 | * @param flags Flags of newly mapped pages |
233 | * @param flags Flags of newly mapped pages |
234 | * |
234 | * |
235 | * @return 0 on success, otherwise it returns error code found in errno.h |
235 | * @return 0 on success, otherwise it returns error code found in errno.h |
236 | */ |
236 | */ |
237 | unative_t sys_physmem_map(unative_t phys_base, unative_t virt_base, unative_t |
237 | unative_t sys_physmem_map(unative_t phys_base, unative_t virt_base, |
238 | pages, unative_t flags) |
238 | unative_t pages, unative_t flags) |
239 | { |
239 | { |
240 | return (unative_t) ddi_physmem_map(ALIGN_DOWN((uintptr_t) phys_base, |
240 | return (unative_t) ddi_physmem_map(ALIGN_DOWN((uintptr_t) phys_base, |
241 | FRAME_SIZE), ALIGN_DOWN((uintptr_t) virt_base, PAGE_SIZE), |
241 | FRAME_SIZE), ALIGN_DOWN((uintptr_t) virt_base, PAGE_SIZE), |
242 | (count_t) pages, (int) flags); |
242 | (count_t) pages, (int) flags); |
243 | } |
243 | } |