summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-07-17 15:37:59 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-07-17 15:37:59 +0000
commit18ec88febe9af1a8fd8bc7fd30198cac425b08bb (patch)
tree0024ef603899e8c6a6e79408b15bad5b983adfc6 /sys/arch/amd64/include
parent0775f2f1858827d4faf1a9b34de8f074e079c024 (diff)
Consistently use SEL_RPL as the mask when testing selector privilege level
Diffstat (limited to 'sys/arch/amd64/include')
-rw-r--r--sys/arch/amd64/include/frameasm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/frameasm.h b/sys/arch/amd64/include/frameasm.h
index b06d1bffb35..b3ec74e7365 100644
--- a/sys/arch/amd64/include/frameasm.h
+++ b/sys/arch/amd64/include/frameasm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: frameasm.h,v 1.8 2015/05/18 19:59:27 guenther Exp $ */
+/* $OpenBSD: frameasm.h,v 1.9 2015/07/17 15:37:58 guenther Exp $ */
/* $NetBSD: frameasm.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $ */
#ifndef _AMD64_MACHINE_FRAMEASM_H
@@ -32,7 +32,7 @@
#define INTRENTRY \
subq $32,%rsp ; \
- testq $SEL_UPL,56(%rsp) ; \
+ testq $SEL_RPL,56(%rsp) ; \
je 98f ; \
swapgs ; \
98: INTR_SAVE_GPRS