Changeset f8ddd17 in mainline for uspace/rd/rd.c
- Timestamp:
- 2006-12-09T20:20:50Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b82a13c
- Parents:
- 9ab9c2ec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/rd/rd.c
r9ab9c2ec rf8ddd17 74 74 size_t rd_size = sysinfo_value("rd.size"); 75 75 void * rd_ph_addr = (void *) sysinfo_value("rd.address.physical"); 76 int rd_color = (int) sysinfo_value("rd.address.color"); 76 77 77 78 if (rd_size == 0) 78 79 return false; 79 80 80 void * rd_addr = as_get_mappable_page(rd_size );81 void * rd_addr = as_get_mappable_page(rd_size, rd_color); 81 82 82 83 physmem_map(rd_ph_addr, rd_addr, ALIGN_UP(rd_size, PAGE_SIZE) >> PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE);
Note:
See TracChangeset
for help on using the changeset viewer.