Skip to content
Commit 7ef25066 authored by Wayne Ren's avatar Wayne Ren Committed by ruuddw
Browse files

arch: arc: enable US bit to check user mode



Enable us bit to check user mode more efficienly.

US is read as zero in user mode. This will allow use mode sleep
instructions, and it enables a form of denial-of-service attack
by putting the processor in sleep mode, but since interrupt
level/mask can't be set from user space that's not worse than
executing a loop without yielding.

Signed-off-by: default avatarWayne Ren <wei.ren@synopsys.com>
parent 0c3aebef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment