Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/bouyer-xenpvh]: src/sys/arch/amd64/amd64 Fix a second place where %eax i...
details: https://anonhg.NetBSD.org/src/rev/4b6f72a9e457
branches: bouyer-xenpvh
changeset: 982911:4b6f72a9e457
user: bouyer <bouyer%NetBSD.org@localhost>
date: Thu Apr 09 21:01:33 2020 +0000
description:
Fix a second place where %eax is used with the wrong value.
diffstat:
sys/arch/amd64/amd64/spl.S | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 75d575340b4a -r 4b6f72a9e457 sys/arch/amd64/amd64/spl.S
--- a/sys/arch/amd64/amd64/spl.S Thu Apr 09 16:51:00 2020 +0000
+++ b/sys/arch/amd64/amd64/spl.S Thu Apr 09 21:01:33 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spl.S,v 1.43.4.1 2020/04/09 16:51:00 bouyer Exp $ */
+/* $NetBSD: spl.S,v 1.43.4.2 2020/04/09 21:01:33 bouyer Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -322,8 +322,9 @@
pushq %r12
movl %edi,%ebx
leaq 1f(%rip),%r13 /* address to resume loop at */
-1: movl %ebx,%eax /* get cpl */
+1:
#if !defined(XENPV)
+ movl %ebx,%eax /* get cpl */
movl CPUVAR(IUNMASK)(,%rax,4),%eax
CLI(si)
andl CPUVAR(IPENDING),%eax /* any non-masked bits left? */
@@ -335,6 +336,7 @@
#endif
2:
#if defined(XEN)
+ movl %ebx,%eax /* get cpl */
movl CPUVAR(XUNMASK)(,%rax,4),%eax
CLI(si)
andl CPUVAR(XPENDING),%eax /* any non-masked bits left? */
Home |
Main Index |
Thread Index |
Old Index