From abe476d08385731c3f5b0475f55c9fe2a6d4a1cf Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Thu, 31 Oct 2019 14:22:54 +0000 Subject: [PATCH] Fix a typo in r353895. Reported by: andrew MFC after: 3 days Sponsored by: The FreeBSD Foundation --- sys/arm64/arm64/machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm64/arm64/machdep.c b/sys/arm64/arm64/machdep.c index 18badf109fa5..db481e2e9e0c 100644 --- a/sys/arm64/arm64/machdep.c +++ b/sys/arm64/arm64/machdep.c @@ -748,7 +748,7 @@ init_proc0(vm_offset_t kstack) thread0.td_kstack = kstack; thread0.td_kstack_pages = KSTACK_PAGES; thread0.td_pcb = (struct pcb *)(thread0.td_kstack + - thread0.td_kstack_pages * KSTACK_PAGES) - 1; + thread0.td_kstack_pages * PAGE_SIZE) - 1; thread0.td_pcb->pcb_fpflags = 0; thread0.td_pcb->pcb_fpusaved = &thread0.td_pcb->pcb_fpustate; thread0.td_pcb->pcb_vfpcpu = UINT_MAX;