• Vineet Gupta's avatar
    ARCv2: entry: simplify return to Delay Slot via interrupt · 75370ad4
    Vineet Gupta authored
    Commit 4255b07f ("ARCv2: STAR 9000793984: Handle return
    from intr to Delay Slot") involved a complex 2 staged trampoline.
    
    Apparently this can be greatly simplified by returning from pure
    kernel mode (iso interrupt) so drop to pure kernel mdoe and execute
    the normal exception return path.
    
    Testing this was a bit of challenge as return from interrupt is rarely
    executed now after commit 4de0e528 ("ARCv2: STAR 9000814690:
    Really Re-enable interrupts to avoid deadlocks"). That fix is necessary
    evil and pct interrupts etc do exercise intr return path.
    Anyhow after a revert of above in my local test setup I was able to hit
    this case and verify the patch works.
    Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
    75370ad4
entry-arcv2.S 7.1 KB