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

Olivier Houchard cognet at FreeBSD.org
Thu Feb 12 14:55:41 PST 2009


Author: cognet
Date: Thu Feb 12 22:55:39 2009
New Revision: 188539
URL: http://svn.freebsd.org/changeset/base/188539

Log:
  Do not set thread0.td_frame to a bogus value, as it's going to overwrite the
  thread0 pcb, while the board-dependant code already set a good trapframe.
  
  Reported by:	Mark Tinguely <tinguely at casselton d0t net>
  
  MFC after:	1 week

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

Modified: head/sys/arm/arm/machdep.c
==============================================================================
--- head/sys/arm/arm/machdep.c	Thu Feb 12 21:49:59 2009	(r188538)
+++ head/sys/arm/arm/machdep.c	Thu Feb 12 22:55:39 2009	(r188539)
@@ -304,7 +304,6 @@ cpu_startup(void *dummy)
 	    USPACE_SVC_STACK_TOP;
 	vector_page_setprot(VM_PROT_READ);
 	pmap_set_pcb_pagedir(pmap_kernel(), pcb);
-	thread0.td_frame = (struct trapframe *)pcb->un_32.pcb32_sp - 1;
 	pmap_postinit();
 #ifdef ARM_CACHE_LOCK_ENABLE
 	pmap_kenter_user(ARM_TP_ADDRESS, ARM_TP_ADDRESS);


More information about the svn-src-head mailing list