diff --git a/Titanix-rootfs b/Titanix-rootfs index a079840..a884b42 160000 --- a/Titanix-rootfs +++ b/Titanix-rootfs @@ -1 +1 @@ -Subproject commit a079840f8e0347f48e5e4b09a58bc821281aefa7 +Subproject commit a884b42b77b7ce2902c35c3bc9075693256c4def diff --git a/kernel/src/fs/devfs/tty.rs b/kernel/src/fs/devfs/tty.rs index ef0141b..5749efc 100644 --- a/kernel/src/fs/devfs/tty.rs +++ b/kernel/src/fs/devfs/tty.rs @@ -350,7 +350,7 @@ impl File for TtyFile { } #[cfg(all(not(feature = "submit"), feature = "board_u740"))] { - if self.buf.load(Ordering::Acquire) != 255 { + if self.buf.lock().top() != 255 { return Ok(true); } let _sum_guard = SumGuard::new(); @@ -371,7 +371,7 @@ impl File for TtyFile { } return Ok(false); } else { - self.buf.store(c as u8, Ordering::Release); + self.buf.lock().push(c as u8); return Ok(true); } }