From b2ae2c93aa239c389693d27257ea1d9773e31b53 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sun, 24 Dec 2023 08:16:55 +0100 Subject: [PATCH] if the feature `syscall` is enabled, don't switch the stack --- src/macros.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index 8110521912..2f82054138 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -74,7 +74,8 @@ macro_rules! dbg { #[allow(unused_macro_rules)] #[cfg(not(any( target_arch = "riscv64", - all(target_arch = "x86_64", feature = "newlib") + all(target_arch = "x86_64", feature = "newlib"), + feature = "syscall" )))] macro_rules! kernel_function { ($f:ident()) => { @@ -111,7 +112,8 @@ macro_rules! kernel_function { // TODO: Switch kernel stack on RISC-V #[cfg(any( target_arch = "riscv64", - all(target_arch = "x86_64", feature = "newlib") + all(target_arch = "x86_64", feature = "newlib"), + feature = "syscall" ))] macro_rules! kernel_function { ($f:ident($($x:tt)*)) => {{