Module Name: src Committed By: ryo Date: Tue Dec 11 18:11:33 UTC 2018
Modified Files: src/sys/arch/aarch64/aarch64: cpuswitch.S Log Message: need to save/restore also x1. x1 is in-use as ipl. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/aarch64/aarch64/cpuswitch.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/aarch64/aarch64/cpuswitch.S diff -u src/sys/arch/aarch64/aarch64/cpuswitch.S:1.7 src/sys/arch/aarch64/aarch64/cpuswitch.S:1.8 --- src/sys/arch/aarch64/aarch64/cpuswitch.S:1.7 Fri Dec 7 18:27:03 2018 +++ src/sys/arch/aarch64/aarch64/cpuswitch.S Tue Dec 11 18:11:33 2018 @@ -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 @@ ENTRY_NP(cpu_switchto_softint) #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 */