kernel: use unsafe {} on Hosted mode

Since `MemoryRange::new()` is now unsafe, add an `unsafe {}` note when
calling this function on Hosted mode.

This fixes the build.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-06-24 17:07:41 +08:00
parent 023918082b
commit 1fb7d4ebd5

View file

@ -1596,7 +1596,7 @@ impl SystemServices {
})?;
#[cfg(not(baremetal))]
let backing = MemoryRange::new(4096, 4096).unwrap();
let backing = unsafe { MemoryRange::new(4096, 4096).unwrap() };
// println!(
// "KERNEL({}): Found a free slot for server {:?} @ {} -- allocating an entry",
// pid.get(),