Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2019 18:38:44 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r354197 - stable/12/sys/arm/arm
Message-ID:  <201910301838.x9UIcicf006956@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Oct 30 18:38:44 2019
New Revision: 354197
URL: https://svnweb.freebsd.org/changeset/base/354197

Log:
  MFC r353894:
  Initialize thread0.td_kstack_pages on arm.

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

Modified: stable/12/sys/arm/arm/machdep.c
==============================================================================
--- stable/12/sys/arm/arm/machdep.c	Wed Oct 30 18:36:49 2019	(r354196)
+++ stable/12/sys/arm/arm/machdep.c	Wed Oct 30 18:38:44 2019	(r354197)
@@ -770,8 +770,9 @@ init_proc0(vm_offset_t kstack)
 {
 	proc_linkup0(&proc0, &thread0);
 	thread0.td_kstack = kstack;
-	thread0.td_pcb = (struct pcb *)
-		(thread0.td_kstack + kstack_pages * PAGE_SIZE) - 1;
+	thread0.td_kstack_pages = kstack_pages;
+	thread0.td_pcb = (struct pcb *)(thread0.td_kstack +
+	    thread0.td_kstack_pages * PAGE_SIZE) - 1;
 	thread0.td_pcb->pcb_flags = 0;
 	thread0.td_pcb->pcb_vfpcpu = -1;
 	thread0.td_pcb->pcb_vfpstate.fpscr = VFPSCR_DN;



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