Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2019 21:46:04 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r353902 - head/sys/arm/arm
Message-ID:  <201910222146.x9MLk4BU054800@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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(



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910222146.x9MLk4BU054800>