Author: kevans
Date: Tue Dec  3 18:28:39 2019
New Revision: 355346
URL: https://svnweb.freebsd.org/changeset/base/355346

Log:
  MFC rarm: 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.

Modified:
  stable/12/sys/arm/arm/machdep.c
Directory Properties:
  stable/12/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/11/sys/arm/arm/machdep.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/12/sys/arm/arm/machdep.c
==============================================================================
--- stable/12/sys/arm/arm/machdep.c     Tue Dec  3 18:25:16 2019        
(r355345)
+++ stable/12/sys/arm/arm/machdep.c     Tue Dec  3 18:28:39 2019        
(r355346)
@@ -942,7 +942,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);
 
        /*
@@ -1207,7 +1207,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(
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to