diff options
-rw-r--r-- | pk/mentry.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pk/mentry.S b/pk/mentry.S index 7f0fc61..2fc7ae3 100644 --- a/pk/mentry.S +++ b/pk/mentry.S @@ -179,6 +179,9 @@ mentry: j init_first_hart .LmultiHart: +#ifndef PK_ENABLE_ATOMICS + j .LmultiHart +#else # make sure our hart id is within a valid range li a1, MAX_HARTS bgeu a0, a1, .LmultiHart @@ -196,6 +199,7 @@ mentry: beqz sp, 1b j init_other_hart +#endif .Linterrupt: sll a0, a0, 1 # discard MSB |