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:
parent
5c07a1719c
commit
b2e1580e4d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user