Changeset da74747 in mainline for kernel/arch/sparc64/src/mm/page.c
- Timestamp:
- 2006-08-09T12:24:58Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 287920f
- Parents:
- e2882a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/mm/page.c
re2882a7 rda74747 47 47 } 48 48 49 /** Map memory-mapped device into virtual memory. 50 * 51 * So far, only DTLB is used to map devices into memory. 52 * Chances are that there will be only a limited amount of 53 * devices that the kernel itself needs to lock in DTLB. 54 * 55 * @param physaddr Physical address of the page where the 56 * device is located. Must be at least 57 * page-aligned. 58 * @param size Size of the device's registers. Must not 59 * exceed 4M and must include extra space 60 * caused by the alignment. 61 * 62 * @return Virtual address of the page where the device is 63 * mapped. 64 */ 49 65 uintptr_t hw_map(uintptr_t physaddr, size_t size) 50 66 { … … 69 85 }; 70 86 87 ASSERT(ALIGN_UP(physaddr, PAGE_SIZE) == physaddr); 71 88 ASSERT(size <= 4*1024*1024); 72 89
Note:
See TracChangeset
for help on using the changeset viewer.