diff options
author | Andrew Waterman <andrew@sifive.com> | 2021-08-12 03:42:53 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2021-08-12 03:42:53 -0700 |
commit | 8e29c382bac5412dabc55933e4078ee309df5b8e (patch) | |
tree | 70723a4a66f11323ebd555d5c9f693961dc68f22 /machine | |
parent | dac6ac2a87367583bf92cf24d0aabde6c215ccb1 (diff) | |
download | riscv-pk-8e29c382bac5412dabc55933e4078ee309df5b8e.zip riscv-pk-8e29c382bac5412dabc55933e4078ee309df5b8e.tar.gz riscv-pk-8e29c382bac5412dabc55933e4078ee309df5b8e.tar.bz2 |
Fix build break from recent merge conflict
Resolves #249
Diffstat (limited to 'machine')
-rw-r--r-- | machine/minit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/machine/minit.c b/machine/minit.c index d35f9df..16cd912 100644 --- a/machine/minit.c +++ b/machine/minit.c @@ -243,7 +243,7 @@ void enter_supervisor_mode(void (*fn)(uintptr_t), uintptr_t arg0, uintptr_t arg1 write_csr(mstatus, mstatus); write_csr(mscratch, MACHINE_STACK_TOP() - MENTRY_FRAME_SIZE); #ifndef __riscv_flen - uintptr_t *p_fcsr = MACHINE_STACK_TOP() - MENTRY_FRAME_SIZE; // the x0's save slot + uintptr_t *p_fcsr = (uintptr_t*)MACHINE_STACK_TOP() - MENTRY_FRAME_SIZE; // the x0's save slot *p_fcsr = 0; #endif write_csr(mepc, fn); |