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 Add #ifndef XEN, xen doesn't have specu...



details:   https://anonhg.NetBSD.org/src/rev/fef4c93d3c42
branches:  trunk
changeset: 321666:fef4c93d3c42
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Mar 30 09:53:08 2018 +0000

description:
Add #ifndef XEN, xen doesn't have speculation_barrier.

diffstat:

 sys/arch/amd64/amd64/locore.S |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 6c94f464a4b5 -r fef4c93d3c42 sys/arch/amd64/amd64/locore.S
--- a/sys/arch/amd64/amd64/locore.S     Fri Mar 30 09:30:56 2018 +0000
+++ b/sys/arch/amd64/amd64/locore.S     Fri Mar 30 09:53:08 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.162 2018/03/29 07:21:24 maxv Exp $        */
+/*     $NetBSD: locore.S,v 1.163 2018/03/30 09:53:08 maxv Exp $        */
 
 /*
  * Copyright-o-rama!
@@ -1102,9 +1102,11 @@
        movq    %r12,%rsi
 #endif
 
+#ifndef XEN
        pushq   %rdx
        callq   _C_LABEL(speculation_barrier)
        popq    %rdx
+#endif
 
        /* Switch to newlwp's stack. */
        movq    L_PCB(%r12),%r14



Home | Main Index | Thread Index | Old Index