Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2009 22:55:39 +0000 (UTC)
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188539 - head/sys/arm/arm
Message-ID:  <200902122255.n1CMtdJm069188@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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