Changes in uspace/srv/hid/fb/port/kchar.c [7c014d1:446ac2a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/fb/port/kchar.c
r7c014d1 r446ac2a 48 48 static void kchar_putchar(wchar_t ch) 49 49 { 50 if ( (ch >= 0) && (ch < 128))50 if (ascii_check(ch)) 51 51 *kchar.addr = ch; 52 52 else … … 83 83 return rc; 84 84 85 kchar.addr = as_get_mappable_page(1); 86 if (kchar.addr == NULL) 87 return ENOMEM; 88 89 rc = physmem_map((void *) paddr, kchar.addr, 90 ALIGN_UP(1, PAGE_SIZE) >> PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE); 85 rc = physmem_map((void *) paddr, 86 ALIGN_UP(1, PAGE_SIZE) >> PAGE_WIDTH, 87 AS_AREA_READ | AS_AREA_WRITE, (void *) &kchar.addr); 91 88 if (rc != EOK) 92 89 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.