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

Tim Kientzle kientzle at FreeBSD.org
Sat Feb 9 21:36:15 UTC 2013


Author: kientzle
Date: Sat Feb  9 21:36:14 2013
New Revision: 246601
URL: http://svnweb.freebsd.org/changeset/base/246601

Log:
  Fix breakage introduced in r246318.

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

Modified: head/sys/arm/arm/vm_machdep.c
==============================================================================
--- head/sys/arm/arm/vm_machdep.c	Sat Feb  9 18:14:26 2013	(r246600)
+++ head/sys/arm/arm/vm_machdep.c	Sat Feb  9 21:36:14 2013	(r246601)
@@ -402,7 +402,8 @@ cpu_thread_alloc(struct thread *td)
 	 * the ARM EABI.
 	 */
 	td->td_frame = (struct trapframe *)STACKALIGN((u_int)td->td_kstack +
-	    USPACE_SVC_STACK_TOP - sizeof(struct pcb) - 1);
+	    USPACE_SVC_STACK_TOP - sizeof(struct pcb) -
+	    sizeof(struct trapframe));
 #ifdef __XSCALE__
 #ifndef CPU_XSCALE_CORE3
 	pmap_use_minicache(td->td_kstack, td->td_kstack_pages * PAGE_SIZE);


More information about the svn-src-all mailing list