Changes in kernel/generic/src/console/console.c [d7533c7:da52547] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/console.c
rd7533c7 rda52547 160 160 klog_parea.pbase = (uintptr_t) faddr; 161 161 klog_parea.frames = SIZE2FRAMES(sizeof(klog)); 162 klog_parea.unpriv = false;163 162 ddi_parea_register(&klog_parea); 164 163 165 sysinfo_set_item_val("klog.faddr", NULL, ( sysarg_t) faddr);164 sysinfo_set_item_val("klog.faddr", NULL, (unative_t) faddr); 166 165 sysinfo_set_item_val("klog.pages", NULL, KLOG_PAGES); 167 166 … … 194 193 195 194 /** Tell kernel to get keyboard/console access again */ 196 sysarg_t sys_debug_enable_console(void)195 unative_t sys_debug_enable_console(void) 197 196 { 198 197 #ifdef CONFIG_KCONSOLE … … 205 204 206 205 /** Tell kernel to relinquish keyboard/console access */ 207 sysarg_t sys_debug_disable_console(void)206 unative_t sys_debug_disable_console(void) 208 207 { 209 208 release_console(); … … 334 333 * 335 334 */ 336 sysarg_t sys_klog(int fd, const void *buf, size_t size)335 unative_t sys_klog(int fd, const void *buf, size_t size) 337 336 { 338 337 char *data; … … 340 339 341 340 if (size > PAGE_SIZE) 342 return ( sysarg_t) ELIMIT;341 return (unative_t) ELIMIT; 343 342 344 343 if (size > 0) { 345 344 data = (char *) malloc(size + 1, 0); 346 345 if (!data) 347 return ( sysarg_t) ENOMEM;346 return (unative_t) ENOMEM; 348 347 349 348 rc = copy_from_uspace(data, buf, size); 350 349 if (rc) { 351 350 free(data); 352 return ( sysarg_t) rc;351 return (unative_t) rc; 353 352 } 354 353 data[size] = 0;
Note:
See TracChangeset
for help on using the changeset viewer.