From fd95932030a1e694173ce5b6c7d417ad5938b302 Mon Sep 17 00:00:00 2001 From: cognet Date: Thu, 12 Feb 2009 22:55:39 +0000 Subject: [PATCH] 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 MFC after: 1 week --- sys/arm/arm/machdep.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/arm/arm/machdep.c b/sys/arm/arm/machdep.c index 4bd78869c2c..0f574c1e46a 100644 --- a/sys/arm/arm/machdep.c +++ b/sys/arm/arm/machdep.c @@ -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); -- 2.45.0