diff options
| author | Atish Patra <[email protected]> | 2022-01-07 10:54:09 -0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-02-04 10:10:28 +0530 |
| commit | a26dc609df04ca4704873b683ac03855f20b056e (patch) | |
| tree | 47a5f435fc1385bd1302fb85a4f6c7fc5159d2d7 /lib/utils/timer | |
| parent | 3b7c204dcaa58e415ad7451c2a690bb88773abbf (diff) | |
lib: sbi: Disable interrupt and inhibit counting in M-mode during init
Currently, the mhpmevent CSRs are untouched during hart init during
cold/warm boot. Ideally, we should clear out all the bits except
overflow and MINH bit. That is required to disable overflow
interrupt and inhibit counting in M-mode to avoid any spurious
interrupts before perf start.
Signed-off-by: Atish Patra <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/timer')
0 files changed, 0 insertions, 0 deletions
