mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 14:56:13 +01:00
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
This commit is contained in:
parent
e38a50e8b6
commit
c89d4b3ce1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353902
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user