Files
riscv-operating-system-mooc/code
Wang Chen 992b0ba91c fixed bug for syscall example
The original logic of setting mstatus has problem.
The or directive cannot set .MPP to 0.

Optimize the original code and use csrs and csrc instead.

Note we cannot assume the default value of mstatus is zero.
rvos may not be the first one to run on the system/virt.
It just so lucky that the initial value of mstatus is zero
on QEMU/virt.

Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
2024-03-25 21:10:40 +08:00
..
2023-12-19 08:26:42 +08:00
2024-03-25 21:10:40 +08:00
2023-12-19 08:26:42 +08:00