Module Name: src
Committed By: maxv
Date: Thu Oct 19 20:27:12 UTC 2017
Modified Files:
src/sys/arch/amd64/amd64: locore.S
Log Message:
Use cmpw.
To generate a diff of this commit:
cvs rdiff -u -r1.135 -r1.136 src/sys/arch/amd64/amd64/locore.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/amd64/amd64/locore.S
diff -u src/sys/arch/amd64/amd64/locore.S:1.135 src/sys/arch/amd64/amd64/locore.S:1.136
--- src/sys/arch/amd64/amd64/locore.S:1.135 Thu Oct 19 19:05:53 2017
+++ src/sys/arch/amd64/amd64/locore.S Thu Oct 19 20:27:12 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.135 2017/10/19 19:05:53 maxv Exp $ */
+/* $NetBSD: locore.S,v 1.136 2017/10/19 20:27:12 maxv Exp $ */
/*
* Copyright-o-rama!
@@ -1475,9 +1475,9 @@ ENTRY(intrfastexit)
INTR_RESTORE_GPRS
testq $SEL_UPL,TF_CS(%rsp) /* interrupted %cs */
jz .Lkexit
- cmpq $LSEL(LUCODE_SEL, SEL_UPL),TF_CS(%rsp)
+ cmpw $LSEL(LUCODE_SEL, SEL_UPL),TF_CS(%rsp)
je .Luexit64
- cmpq $GSEL(GUCODE_SEL, SEL_UPL),TF_CS(%rsp)
+ cmpw $GSEL(GUCODE_SEL, SEL_UPL),TF_CS(%rsp)
je .Luexit64
.Luexit32: