diff options
| author | Radim Krčmář <[email protected]> | 2025-04-29 16:25:48 +0200 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2025-04-30 10:14:26 +0530 |
| commit | dac15cb91058f324df909dba4bfcb52f42ff9224 (patch) | |
| tree | 86efee5228a8070b2e36349fd8a6919360836528 /lib/utils | |
| parent | 8c814b5c9b03aac0d6bb2366e3c8fbce132ca4d9 (diff) | |
lib: sbi_hart: reset mstateen0
The current logic clears some bits based on SBI known extensions.
Be safe and do not leave enabled anything that SBI doesn't control.
This is not a breaking change, because the register must be initialized
to 0 by the ISA on reset, but it is better to not depend on it when we
don't need to.
Reviewed-by: Anup Patel <[email protected]>
Signed-off-by: Radim Krčmář <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils')
0 files changed, 0 insertions, 0 deletions
