Skip to content

Commit

Permalink
hv_exc: don't assume boot cpu == 0
Browse files Browse the repository at this point in the history
there used to be many more things in this commit,
but I've removed everything that isn't in #417
  • Loading branch information
mildsunrise committed Nov 2, 2024
1 parent 1c8e822 commit a0762ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hv_exc.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ void hv_exc_fiq(struct exc_info *ctx)

int interruptible_cpu = hv_pinned_cpu;
if (interruptible_cpu == -1)
interruptible_cpu = 0;
interruptible_cpu = boot_cpu_idx;

if (smp_id() != interruptible_cpu && !(mrs(ISR_EL1) & 0x40) && hv_want_cpu == -1) {
// Non-interruptible CPU and it was just a timer tick (or spurious), so just update FIQs
Expand Down

0 comments on commit a0762ea

Please sign in to comment.