-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Labels
area: Memory ProtectionbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bugMedium impact/importance bug
Milestone
Description
We currently have the printk/stdout/stdin hook registration mechanism which, among other things, doesn't have a good place to implement system calls.
We put something together specific to printk(), but we need to do this for various C library functions as well that emit to the console in both newlib and minimal libc.
A first attempt added syscalls to the C libraries (see #6815 ) but it would be MUCH better if there was a dedicated syscall layer independent of the C library, or specific device drivers. A subsystem like other drivers have, with perhaps some optimizations since we know it is a singleton.
This is both a bug and a feature since the underlying issue is that user threads calling printf(), or newlib read/write, crash.
Metadata
Metadata
Assignees
Labels
area: Memory ProtectionbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bugMedium impact/importance bug