mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-01 15:48:21 +00:00
fix(ke): acquire debug lock at high IPL
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ pub fn log(
|
|||||||
// which would consume the ringbuffer from multiple consoles in a separate thread.
|
// which would consume the ringbuffer from multiple consoles in a separate thread.
|
||||||
var writer = DebugWriter.init();
|
var writer = DebugWriter.init();
|
||||||
|
|
||||||
const ipl = out_lock.acquire();
|
const ipl = out_lock.acquire_at(.High);
|
||||||
defer out_lock.release(ipl);
|
defer out_lock.release(ipl);
|
||||||
|
|
||||||
writer.interface.print("[{:>5}.{:06}] ", .{ res.info.timestamp / std.time.ns_per_s, res.info.timestamp / std.time.ns_per_us }) catch return;
|
writer.interface.print("[{:>5}.{:06}] ", .{ res.info.timestamp / std.time.ns_per_s, res.info.timestamp / std.time.ns_per_us }) catch return;
|
||||||
|
|||||||
Reference in New Issue
Block a user