fix: kernel concurrency, interrupt context, and user VA safety
This commit is contained in:
@@ -241,6 +241,15 @@ namespace Kt {
|
||||
g_suppressKernelLog = true;
|
||||
}
|
||||
|
||||
void EnablePanicOutput() {
|
||||
// Once the graphical desktop starts, ordinary console writes are
|
||||
// suppressed to avoid painting over it. A kernel panic is different:
|
||||
// leaving suppression enabled makes the halted system look like a
|
||||
// frozen desktop. Do not acquire g_termLock here; panic may have
|
||||
// interrupted its owner on this or another CPU.
|
||||
g_suppressKernelLog = false;
|
||||
}
|
||||
|
||||
int64_t ReadKernelLog(char* buf, uint64_t size) {
|
||||
if (buf == nullptr || size == 0) return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user