Changes in uspace/app/kio/kio.c [28a5ebd:fafb8e5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/kio/kio.c
r28a5ebd rfafb8e5 56 56 link_t link; 57 57 size_t length; 58 char32_t *data;58 wchar_t *data; 59 59 } item_t; 60 60 … … 62 62 63 63 /* Pointer to kio area */ 64 static char32_t *kio = (char32_t *) AS_AREA_ANY;64 static wchar_t *kio = (wchar_t *) AS_AREA_ANY; 65 65 static size_t kio_length; 66 66 … … 77 77 * 78 78 */ 79 static void producer(size_t length, char32_t *data)79 static void producer(size_t length, wchar_t *data) 80 80 { 81 81 item_t *item = (item_t *) malloc(sizeof(item_t)); … … 83 83 return; 84 84 85 size_t sz = sizeof( char32_t) * length;86 char32_t *buf = (char32_t *) malloc(sz);85 size_t sz = sizeof(wchar_t) * length; 86 wchar_t *buf = (wchar_t *) malloc(sz); 87 87 if (buf == NULL) { 88 88 free(item); … … 121 121 122 122 for (size_t i = 0; i < item->length; i++) 123 put uchar(item->data[i]);123 putwchar(item->data[i]); 124 124 125 125 if (log != NULL) { 126 126 for (size_t i = 0; i < item->length; i++) 127 fput uc(item->data[i], log);127 fputwc(item->data[i], log); 128 128 129 129 fflush(log); … … 202 202 203 203 size_t size = pages * PAGE_SIZE; 204 kio_length = size / sizeof( char32_t);204 kio_length = size / sizeof(wchar_t); 205 205 206 206 rc = physmem_map(faddr, pages, AS_AREA_READ | AS_AREA_CACHEABLE,
Note:
See TracChangeset
for help on using the changeset viewer.