kernel: syscall: remove warning in hosted mode

This was a function whose only purpose is useful in baremetal mode.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-06-16 17:54:55 +08:00
parent 62623f995c
commit 76b16579b0

View file

@ -30,6 +30,7 @@ enum ExecutionType {
NonBlocking,
}
#[cfg(baremetal)]
pub fn reset_switchto_caller() {
unsafe { SWITCHTO_CALLER = None };
}