commit | 7ef250661162cb81a81ab8ce3f886e3662522182 | [log] [tgz] |
---|---|---|
author | Wayne Ren <wei.ren@synopsys.com> | Fri Feb 02 14:18:35 2018 +0800 |
committer | ruuddw <Ruud.Derwig@synopsys.com> | Fri Feb 16 12:20:16 2018 +0100 |
tree | 443ea12a2ab0160985bd54b3f34f9331e4727a94 | |
parent | 0c3aebef499ce193b4b6a0fff6de2e145307f546 [diff] |
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: Wayne Ren <wei.ren@synopsys.com>