summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorInochi Amaoto <[email protected]>2023-09-15 17:39:36 +0800
committerAnup Patel <[email protected]>2023-10-04 18:59:54 +0530
commit3669153e06cbae66da28b685c29c8e622d547263 (patch)
treec6fbce1adc6f521c17dd922e9e5748d7012afd6b /lib/utils
parentb7e9d34edf4f728bb02d11f73a2f9f79ad4acce4 (diff)
platform: generic: thead: fix stale TLB entries for th1520/sg2042
The TLB entries remain functional all the time once added in T-HEAD th1520 and Sophgo sg2042 (even if the MMU is then disabled afterwards). If there are some stale TLB entries that contains the address of SBI, it will cause unexpected memory access and issue a illegal instruction error. To avoid this, a TLB flush is needed to drop these TLB entries before any memory access in the trap handler. To handle this workaroud, add a custom trap handler with executing TLB flush first in the T-HEAD platform to fix affected socs. Signed-off-by: Inochi Amaoto <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils')
0 files changed, 0 insertions, 0 deletions