Changes in uspace/srv/hid/fb/port/ega.c [446ac2a:7c014d1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/fb/port/ega.c
r446ac2a r7c014d1 117 117 uint8_t glyph; 118 118 119 if ( ascii_check(field->ch))119 if ((field->ch >= 0) && (field->ch < 128)) 120 120 glyph = field->ch; 121 121 else … … 280 280 281 281 ega.size = (width * height) << 1; 282 283 rc = physmem_map((void *) paddr, 284 ALIGN_UP(ega.size, PAGE_SIZE) >> PAGE_WIDTH, 285 AS_AREA_READ | AS_AREA_WRITE, (void *) &ega.addr); 282 ega.addr = as_get_mappable_page(ega.size); 283 if (ega.addr == NULL) 284 return ENOMEM; 285 286 rc = physmem_map((void *) paddr, ega.addr, 287 ALIGN_UP(ega.size, PAGE_SIZE) >> PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE); 286 288 if (rc != EOK) 287 289 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.