Rev 2005 | Rev 2015 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2005 | Rev 2012 | ||
---|---|---|---|
Line 77... | Line 77... | ||
77 | if (rd_size == 0) |
77 | if (rd_size == 0) |
78 | return false; |
78 | return false; |
79 | 79 | ||
80 | void * rd_addr = as_get_mappable_page(rd_size); |
80 | void * rd_addr = as_get_mappable_page(rd_size); |
81 | 81 | ||
82 | map_physmem(rd_ph_addr, rd_addr, ALIGN_UP(rd_size, PAGE_SIZE) >> PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE); |
82 | physmem_map(rd_ph_addr, rd_addr, ALIGN_UP(rd_size, PAGE_SIZE) >> PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE); |
83 | 83 | ||
84 | return true; |
84 | return true; |
85 | } |
85 | } |
86 | 86 | ||
87 | 87 |