fix: kernel concurrency, interrupt context, and user VA safety

This commit is contained in:
2026-08-01 15:43:38 +02:00
parent f222bf1f04
commit b1c55073c7
71 changed files with 2654 additions and 1092 deletions
+9
View File
@@ -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;