Enhance logging and task management; enable trace facility, add scheduler state logging, and improve shutdown handling
This commit is contained in:
+2
-1
@@ -4,7 +4,8 @@ pub fn main() void {
|
||||
_ = add(1, 2);
|
||||
while (true) {
|
||||
nova64.log("Hello from Zig!");
|
||||
// nova64.yield(1000);
|
||||
// nova64.yield();
|
||||
// nova64.sleep(1000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+5
-1
@@ -5,6 +5,10 @@ pub fn log(message: []const u8) void {
|
||||
nova64_log(message.ptr);
|
||||
}
|
||||
|
||||
pub fn yield(timeout_ms: u32) void {
|
||||
pub fn sleep(timeout_ms: u32) void {
|
||||
nova64_yield(timeout_ms);
|
||||
}
|
||||
|
||||
pub fn yield() void {
|
||||
nova64_yield(0);
|
||||
}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
extern "nova64" fn log(message: [*]const u8) void;
|
||||
|
||||
pub fn main() void {
|
||||
log(&"Hello from Zig!"[0]);
|
||||
}
|
||||
Reference in New Issue
Block a user