OSDN Git Service

tile: don't assume user privilege is zero
authorChris Metcalf <cmetcalf@tilera.com>
Tue, 3 Sep 2013 18:45:52 +0000 (14:45 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 3 Sep 2013 18:45:52 +0000 (14:45 -0400)
commit051168df528fe4456d63f5f65b041c147c26fe97
tree789109ca42db49bf4d8c0c2794cf55659a171a39
parent309272f99f3e65b9bb5c49a2901c63a1859172f3
tile: don't assume user privilege is zero

Technically, user privilege is anything less than kernel
privilege.  We modify the existing user_mode() macro to have
this semantic (and use it in a couple of places it wasn't being
used before), and add an IS_KERNEL_EX1() macro to the assembly
code as well.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/include/asm/processor.h
arch/tile/include/asm/ptrace.h
arch/tile/kernel/intvec_64.S
arch/tile/kernel/stack.c
arch/tile/mm/fault.c