summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2009-02-12 22:55:39 +0000
committercognet <cognet@FreeBSD.org>2009-02-12 22:55:39 +0000
commitfd95932030a1e694173ce5b6c7d417ad5938b302 (patch)
tree94a3b473c6c0836ccbbc6ee80dff3c1de67c7df6 /sys
parent5f01e5bab2e9a05b3efaf2026939c23b475d929b (diff)
downloadFreeBSD-src-fd95932030a1e694173ce5b6c7d417ad5938b302.zip
FreeBSD-src-fd95932030a1e694173ce5b6c7d417ad5938b302.tar.gz
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
Diffstat (limited to 'sys')
-rw-r--r--sys/arm/arm/machdep.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/arm/arm/machdep.c b/sys/arm/arm/machdep.c
index 4bd7886..0f574c1 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);
OpenPOWER on IntegriCloud