We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca66c01 + 233ccdd commit 73bd80bCopy full SHA for 73bd80b
kernel/src/fs/file.rs
@@ -146,7 +146,7 @@ impl FileHandle {
146
}
147
148
pub fn fcntl(&mut self, cmd: usize, arg: usize) -> Result<()> {
149
- if arg == 2048 && cmd == 4 {
+ if arg & 0x800 > 0 && cmd == 4 {
150
self.options.nonblock = true;
151
152
Ok(())
kernel/src/syscall/mem.rs
@@ -60,7 +60,7 @@ impl Syscall<'_> {
60
#[cfg(feature = "board_raspi3")]
61
let attr = attr.mmio(crate::arch::paging::MMIOType::NormalNonCacheable as u8);
62
63
- if let Some(fb) = FRAME_BUFFER.lock().as_mut() {
+ if let Some(fb) = FRAME_BUFFER.lock().as_ref() {
64
self.vm().push(
65
addr,
66
addr + len,
0 commit comments