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
This commit is contained in:
Olivier Houchard 2009-02-12 22:55:39 +00:00
parent 5c07a1719c
commit b2e1580e4d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188539

View file

@ -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);