diff options
author | marcel <marcel@FreeBSD.org> | 2003-06-06 23:44:05 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-06-06 23:44:05 +0000 |
commit | 8f82b3111ed84cef05772596e15511672f90e5a3 (patch) | |
tree | de10670e31a16949fcc73d4201a9d7640364bf57 /sys/ia64 | |
parent | 2b4b90c0c22f8066d91300be25789305c111a12e (diff) | |
download | FreeBSD-src-8f82b3111ed84cef05772596e15511672f90e5a3.zip FreeBSD-src-8f82b3111ed84cef05772596e15511672f90e5a3.tar.gz |
Use TRAPF_USERMODE() to replace an equivalent check in trap(). While
here, amend the related comment.
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/trap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/ia64/ia64/trap.c b/sys/ia64/ia64/trap.c index 2fedb8f..8626641 100644 --- a/sys/ia64/ia64/trap.c +++ b/sys/ia64/ia64/trap.c @@ -699,10 +699,9 @@ trap(int vector, struct trapframe *framep) /* * Additionally check the privilege level. We don't want to * panic when we're in the gateway page, running at user - * level. + * level. This happens for the signal trampolines. */ - if (!user && (framep->tf_special.psr & IA64_PSR_CPL) - == IA64_PSR_CPL_KERN) { + if (!TRAPF_USERMODE(framep)) { /* Check for copyin/copyout fault. */ if (td != NULL && td->td_pcb->pcb_onfault != 0) { framep->tf_special.iip = |