Skip to content
Commit a88e424f authored by Anup Patel's avatar Anup Patel
Browse files

lib: Handle traps when doing unpriv load/store in get_insn()



We can get a page/access trap when doing unpriv load/store in
get_insn() function because on a SMP system Linux swapper running
on HART A can unmap pages from page table used by HART B.

To tackle this we extend get_insn() implementation so that if
we get trap in get_insn() then we redirect it to S-mode as fetch
page/access fault.

Signed-off-by: default avatarAnup Patel <anup.patel@wdc.com>
parent 2e0f3ac7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment