aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2022-08-08 12:23:32 -0400
committerBrian Cully <bjc@kublai.com>2022-08-08 12:23:32 -0400
commitcb0d9c9c38945404272b89c3c6d8166c194a01f8 (patch)
treec4aa944a59c189c0b6a0e33b93d4eacc88e0890b /src
parentcabe5b42cfe408c7bbde8b4bd40ce0282eb7e58c (diff)
downloadluchie-cb0d9c9c38945404272b89c3c6d8166c194a01f8.tar.gz
luchie-cb0d9c9c38945404272b89c3c6d8166c194a01f8.zip
mark logging functions as unsafe
these are writing to ‘static mut’ variables.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index a711398..48fffea 100755
--- a/src/main.rs
+++ b/src/main.rs
@@ -54,13 +54,13 @@ fn main(_hartid: usize) -> ! {
&mut rcu,
);
let (tx, _rx) = serial.split();
- log::new(tx);
+ unsafe { log::new(tx) };
loop {
let mut can_sleep = true;
can_sleep &= blink.poll() == PollResult::WouldBlock;
- log::log("hi\r\n");
+ unsafe { log::log("hi\r\n") };
if can_sleep {
unsafe { wfi() };