Changeset 7f1c620 in mainline for arch/ppc32/src/mm/page.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/src/mm/page.c
r991779c5 r7f1c620 46 46 47 47 48 __address hw_map(__addressphysaddr, size_t size)48 uintptr_t hw_map(uintptr_t physaddr, size_t size) 49 49 { 50 50 if (last_frame + ALIGN_UP(size, PAGE_SIZE) > KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH)) 51 51 panic("Unable to map physical memory %p (%d bytes)", physaddr, size) 52 52 53 __addressvirtaddr = PA2KA(last_frame);53 uintptr_t virtaddr = PA2KA(last_frame); 54 54 pfn_t i; 55 55 for (i = 0; i < ADDR2PFN(ALIGN_UP(size, PAGE_SIZE)); i++)
Note:
See TracChangeset
for help on using the changeset viewer.