Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/aarch64/aarch64 need to save/restore also x1. x1 is...



details:   https://anonhg.NetBSD.org/src/rev/dceed39ebcba
branches:  trunk
changeset: 995195:dceed39ebcba
user:      ryo <ryo%NetBSD.org@localhost>
date:      Tue Dec 11 18:11:33 2018 +0000

description:
need to save/restore also x1. x1 is in-use as ipl.

diffstat:

 sys/arch/aarch64/aarch64/cpuswitch.S |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r f897619d4da8 -r dceed39ebcba sys/arch/aarch64/aarch64/cpuswitch.S
--- a/sys/arch/aarch64/aarch64/cpuswitch.S      Tue Dec 11 16:52:49 2018 +0000
+++ b/sys/arch/aarch64/aarch64/cpuswitch.S      Tue Dec 11 18:11:33 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuswitch.S,v 1.7 2018/12/07 18:27:03 ryo Exp $ */
+/* $NetBSD: cpuswitch.S,v 1.8 2018/12/11 18:11:33 ryo Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 #include "opt_ddb.h"
 #include "opt_kasan.h"
 
-RCSID("$NetBSD: cpuswitch.S,v 1.7 2018/12/07 18:27:03 ryo Exp $")
+RCSID("$NetBSD: cpuswitch.S,v 1.8 2018/12/11 18:11:33 ryo Exp $")
 
 /*
  * At IPL_SCHED:
@@ -145,9 +145,9 @@
 
 #ifdef KASAN
        /* clear the new stack */
-       stp     x0, xzr, [sp, #-16]!
+       stp     x0, x1, [sp, #-16]!
        bl      _C_LABEL(kasan_softint)
-       ldp     x0, xzr, [sp], #16
+       ldp     x0, x1, [sp], #16
 #endif
 
        /* onto new stack */



Home | Main Index | Thread Index | Old Index