Commit 19adc6b
[crypto/alert] Connect alert management to cryptolib
The cryptolib resets the alert manager's CSRs upon init and reads the
registers upon execution of any API.
In case an alert was raised, the cryptolib now returns a fatal error.
Important is that init is only called at startup where the init function
can be provided the priviledge of setting registers.
The cryptolib requires read access to the alert manager range of
addresses during function but no write access.
This protects the cryptolib to provide a bad status in case even a
recoverable alert is raised.
Signed-off-by: Siemen Dhooghe <sdhooghe@google.com>1 parent 87b102f commit 19adc6b
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
47 | 55 | | |
48 | 56 | | |
0 commit comments