Skip to content

Commit

Permalink
Merge pull request #1012 from stlankes/syscall
Browse files Browse the repository at this point in the history
if the feature `syscall` is enabled, don't switch the stack
  • Loading branch information
stlankes authored Dec 24, 2023
2 parents 5bcf624 + b2ae2c9 commit e3b3e16
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()) => {
Expand Down Expand Up @@ -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)*)) => {{
Expand Down

0 comments on commit e3b3e16

Please sign in to comment.