[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:
Justin C. Miller
2023-02-08 22:32:01 -08:00
parent 71069cb38b
commit f05a1d3310
11 changed files with 124 additions and 9 deletions

View File

@@ -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