Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm Change to the KVA stack address straight af...
details: https://anonhg.NetBSD.org/src/rev/f5794aee033a
branches: trunk
changeset: 975404:f5794aee033a
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Aug 28 13:00:29 2020 +0000
description:
Change to the KVA stack address straight after the MMU is turned on
diffstat:
sys/arch/arm/arm/armv6_start.S | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r b15b1e41ead0 -r f5794aee033a sys/arch/arm/arm/armv6_start.S
--- a/sys/arch/arm/arm/armv6_start.S Fri Aug 28 12:59:36 2020 +0000
+++ b/sys/arch/arm/arm/armv6_start.S Fri Aug 28 13:00:29 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: armv6_start.S,v 1.24 2020/08/28 12:56:19 skrll Exp $ */
+/* $NetBSD: armv6_start.S,v 1.25 2020/08/28 13:00:29 skrll Exp $ */
/*-
* Copyright (c) 2012, 2017, 2018 The NetBSD Foundation, Inc.
@@ -467,6 +467,9 @@
b armv7_mmuinit
generic_vstartv7:
+ // Stack to KVA address
+ add sp, sp, R_VTOPDIFF
+
VPRINTF("virtual\n\r")
#if defined(KASAN)
@@ -521,6 +524,9 @@
b armv6_mmuinit
generic_vstartv6:
+ // Stack to KVA address
+ add sp, sp, R_VTOPDIFF
+
VPRINTF("virtual\n\r")
#if defined(KASAN)
@@ -882,7 +888,7 @@
* Now running with real kernel VA via bootstrap tables
*/
armv7_mpcontinuation:
- // Adjust stack back to KVA address
+ // Stack to KVA address
add sp, sp, R_VTOPDIFF
VPRINTF("virtual\n\r")
Home |
Main Index |
Thread Index |
Old Index