Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 Adapt previous; put #ifdef SVS around t...
details: https://anonhg.NetBSD.org/src/rev/53848a7b5d9e
branches: trunk
changeset: 830033:53848a7b5d9e
user: maxv <maxv%NetBSD.org@localhost>
date: Thu Feb 22 14:57:11 2018 +0000
description:
Adapt previous; put #ifdef SVS around the declaration directly.
diffstat:
sys/arch/amd64/amd64/locore.S | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r a2aa08b3068e -r 53848a7b5d9e sys/arch/amd64/amd64/locore.S
--- a/sys/arch/amd64/amd64/locore.S Thu Feb 22 14:49:29 2018 +0000
+++ b/sys/arch/amd64/amd64/locore.S Thu Feb 22 14:57:11 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.154 2018/02/22 14:08:48 martin Exp $ */
+/* $NetBSD: locore.S,v 1.155 2018/02/22 14:57:11 maxv Exp $ */
/*
* Copyright-o-rama!
@@ -1378,7 +1378,6 @@
#define SP(x,reg) (x)-(TF_SS+8)(reg)
-#ifdef SVS
.if \is_svs
movq %rax,SVS_UTLS+UTLS_SCRATCH
movq SVS_UTLS+UTLS_RSP0,%rax
@@ -1393,7 +1392,6 @@
movq SVS_UTLS+UTLS_SCRATCH,%rax
.else
-#endif
movq %r15,CPUVAR(SCRATCH)
movq CPUVAR(CURLWP),%r15
movq L_PCB(%r15),%r15
@@ -1408,9 +1406,7 @@
leaq SP(0,%r15),%rsp /* %rsp now valid after frame */
movq CPUVAR(SCRATCH),%r15
-#ifdef SVS
.endif
-#endif
#undef SP
@@ -1440,7 +1436,9 @@
TEXT_USER_BEGIN
+#ifdef SVS
SYSCALL_ENTRY syscall_svs,is_svs=1
+#endif
IDTVEC(syscall32)
sysret /* go away please */
Home |
Main Index |
Thread Index |
Old Index