svn commit: r354197 - stable/12/sys/arm/arm

Mark Johnston markj at FreeBSD.org
Wed Oct 30 18:38:45 UTC 2019


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;


More information about the svn-src-all mailing list