diff options
| author | Evgeny Voevodin <[email protected]> | 2026-05-07 18:08:06 +0000 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2026-05-09 12:59:43 +0530 |
| commit | 0cfd6c0b5ec0f7394c4537c288a948c49894dcc6 (patch) | |
| tree | a9ae3f905e8d435dd91e29089192bc21fdec4ceb /scripts | |
| parent | 882b8b081c05516d40eb2e3727721469deff3ee6 (diff) | |
lib: sbi: Move Zkr entropy initialization from fw_base.S to init_coldboot
Current placement of entropy initialization via Zkr extension requires a
trap-based mechanism to handle absent Zkr extension case. In presence of
Smrnmi extension no trap-based mechanisms should be used before Smrnmi is
detected and enabled otherwise trap will jump to undefined location.
Move stack guard initialization into init_coldboot function body after
device tree has been parsed so we know if Zkr extension is implemented by
the platform which helps to avoid trap-based discovery.
init_coldboot() is a safe place to initialize entropy because it doesn't
return so no check of __stack_chk_guard against value on entry
will be done.
Signed-off-by: Evgeny Voevodin <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Link: https://lore.kernel.org/r/acd52b0f3468758bc5f09e6a45662341b31d4d87.1778176768.git.evvoevod@tenstorrent.com
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
