Subversion Repositories HelenOS

Rev

Rev 3022 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3022 Rev 4055
Line 88... Line 88...
88
 */
88
 */
89
uintptr_t hw_map(uintptr_t physaddr, size_t size)
89
uintptr_t hw_map(uintptr_t physaddr, size_t size)
90
{
90
{
91
    if (last_frame + ALIGN_UP(size, PAGE_SIZE) >
91
    if (last_frame + ALIGN_UP(size, PAGE_SIZE) >
92
        KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH)) {
92
        KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH)) {
93
        panic("Unable to map physical memory %p (%d bytes)",
93
        panic("Unable to map physical memory %p (%d bytes).",
94
            physaddr, size)
94
            physaddr, size)
95
    }
95
    }
96
 
96
 
97
    uintptr_t virtaddr = PA2KA(last_frame);
97
    uintptr_t virtaddr = PA2KA(last_frame);
98
    pfn_t i;
98
    pfn_t i;