mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
[kernel] Revive the debugcon logger as a kernel thread
The debugcon logger is now separate from logger::output, and is instead a kernel-internal thread that watches for logs and prints them to the deubcon device.
This commit is contained in:
@@ -157,4 +157,14 @@ const T * read(const_buffer &b) {
|
||||
return p;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
T * at(buffer &b, size_t i) {
|
||||
return reinterpret_cast<T*>(util::offset_pointer(b.pointer, i));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
const T * at(const_buffer &b, size_t i) {
|
||||
return reinterpret_cast<const T*>(util::offset_pointer(b.pointer, i));
|
||||
}
|
||||
|
||||
} // namespace util
|
||||
|
||||
Reference in New Issue
Block a user