Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Make sure the start stacks are covered by...
details: https://anonhg.NetBSD.org/src/rev/5c5ee81744f1
branches: trunk
changeset: 448659:5c5ee81744f1
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Feb 06 13:28:08 2019 +0000
description:
Make sure the start stacks are covered by the new translation tables.
They *might* get placed after ARM_BOOTSTRAP_LxPT by the linker.
AP startup uses VA sp in cpu_init_secondary_processor
diffstat:
sys/arch/arm/arm32/arm32_kvminit.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 35390c3fa879 -r 5c5ee81744f1 sys/arch/arm/arm32/arm32_kvminit.c
--- a/sys/arch/arm/arm32/arm32_kvminit.c Wed Feb 06 13:22:54 2019 +0000
+++ b/sys/arch/arm/arm32/arm32_kvminit.c Wed Feb 06 13:28:08 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arm32_kvminit.c,v 1.51 2019/02/06 13:22:54 skrll Exp $ */
+/* $NetBSD: arm32_kvminit.c,v 1.52 2019/02/06 13:28:08 skrll Exp $ */
/*
* Copyright (c) 2002, 2003, 2005 Genetec Corporation. All rights reserved.
@@ -127,7 +127,7 @@
#include "opt_multiprocessor.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.51 2019/02/06 13:22:54 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.52 2019/02/06 13:28:08 skrll Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -190,12 +190,12 @@
*/
#if defined(__HAVE_GENERIC_START)
extern char KERNEL_BASE_virt[];
- extern char ARM_BOOTSTRAP_LxPT[];
+ extern char const __stop__init_memory[];
VPRINTF("%s: kern_vtopdiff=%#lx\n", __func__, kern_vtopdiff);
vaddr_t kstartva = trunc_page((vaddr_t)KERNEL_BASE_virt);
- vaddr_t kendva = round_page((vaddr_t)ARM_BOOTSTRAP_LxPT + L1_TABLE_SIZE);
+ vaddr_t kendva = round_page((vaddr_t)__stop__init_memory);
kernelstart = KERN_VTOPHYS(kstartva);
Home |
Main Index |
Thread Index |
Old Index