svn commit: r353902 - head/sys/arm/arm
Kyle Evans
kevans at FreeBSD.org
Tue Oct 22 21:46:04 UTC 2019
Author: kevans
Date: Tue Oct 22 21:46:03 2019
New Revision: 353902
URL: https://svnweb.freebsd.org/changeset/base/353902
Log:
arm: correct kernelstack allocation size
This appears to be a copy-pasto from previous lines that propagated to v6
over the years. Indeed, nothing references kernelstack beyond
USPACE_SVC_STACK_TOP and it would be odd if anything did.
Noticed by: markj
Modified:
head/sys/arm/arm/machdep.c
Modified: head/sys/arm/arm/machdep.c
==============================================================================
--- head/sys/arm/arm/machdep.c Tue Oct 22 21:24:48 2019 (r353901)
+++ head/sys/arm/arm/machdep.c Tue Oct 22 21:46:03 2019 (r353902)
@@ -943,7 +943,7 @@ initarm(struct arm_boot_params *abp)
valloc_pages(irqstack, IRQ_STACK_SIZE * MAXCPU);
valloc_pages(abtstack, ABT_STACK_SIZE * MAXCPU);
valloc_pages(undstack, UND_STACK_SIZE * MAXCPU);
- valloc_pages(kernelstack, kstack_pages * MAXCPU);
+ valloc_pages(kernelstack, kstack_pages);
valloc_pages(msgbufpv, round_page(msgbufsize) / PAGE_SIZE);
/*
@@ -1208,7 +1208,7 @@ initarm(struct arm_boot_params *abp)
irqstack = pmap_preboot_get_vpages(IRQ_STACK_SIZE * MAXCPU);
abtstack = pmap_preboot_get_vpages(ABT_STACK_SIZE * MAXCPU);
undstack = pmap_preboot_get_vpages(UND_STACK_SIZE * MAXCPU );
- kernelstack = pmap_preboot_get_vpages(kstack_pages * MAXCPU);
+ kernelstack = pmap_preboot_get_vpages(kstack_pages);
/* Allocate message buffer. */
msgbufp = (void *)pmap_preboot_get_vpages(
More information about the svn-src-all
mailing list