[Differential] [Updated, 4 lines] D3107: Fix ARM64 stack calculation

wma_semihalf.com (Wojciech Macek) phabric-noreply at FreeBSD.org
Thu Jul 16 08:27:53 UTC 2015


wma_semihalf.com updated this revision to Diff 7002.

REPOSITORY
  rS FreeBSD src repository

CHANGES SINCE LAST UPDATE
  https://reviews.freebsd.org/D3107?vs=7001&id=7002

REVISION DETAIL
  https://reviews.freebsd.org/D3107

AFFECTED FILES
  sys/arm64/arm64/locore.S

CHANGE DETAILS
  diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S
  --- a/sys/arm64/arm64/locore.S
  +++ b/sys/arm64/arm64/locore.S
  @@ -27,6 +27,7 @@
    */
   
   #include "assym.s"
  +#include "opt_kstack_pages.h"
   
   #include <sys/syscall.h>
   #include <machine/asm.h>
  @@ -181,8 +182,7 @@
   mp_virtdone:
   	ldr	x4, =secondary_stacks
   	mov	x5, #(PAGE_SIZE * KSTACK_PAGES)
  -	sub	x1, x0, #1
  -	mul	x5, x1, x5
  +	mul	x5, x0, x5
   	add	sp, x4, x5
   
   	b	init_secondary

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: wma_semihalf.com, andoriyu_gmail.com, emaste, zbb
Cc: imp, andrew, freebsd-arm-list, emaste
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3107.7002.patch
Type: text/x-patch
Size: 447 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20150716/6de16fa5/attachment.bin>


More information about the freebsd-arm mailing list