svn commit: r353894 - head/sys/arm/arm

Mark Johnston markj at FreeBSD.org
Tue Oct 22 17:21:24 UTC 2019


Author: markj
Date: Tue Oct 22 17:21:23 2019
New Revision: 353894
URL: https://svnweb.freebsd.org/changeset/base/353894

Log:
  Initialize thread0.td_kstack_pages on arm.
  
  Fix style on the line below.
  
  Reported by:	Jenkins (hardware CI lab)
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/arm/arm/machdep.c

Modified: head/sys/arm/arm/machdep.c
==============================================================================
--- head/sys/arm/arm/machdep.c	Tue Oct 22 16:52:56 2019	(r353893)
+++ head/sys/arm/arm/machdep.c	Tue Oct 22 17:21:23 2019	(r353894)
@@ -771,8 +771,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-head mailing list