sched: Set all required process registers
This commit is contained in:
parent
570f036752
commit
e0c7a11f6e
1 changed files with 3 additions and 1 deletions
|
@ -64,6 +64,8 @@ void arch_sched_process_init(struct process *process, void (*entry)(void))
|
|||
|
||||
memset(regs, 0, sizeof(*regs));
|
||||
regs->hw.pc = entry;
|
||||
regs->hw.psr = 0x01000000;
|
||||
regs->sw.lr = 0xFFFFFFF9;
|
||||
}
|
||||
|
||||
void sched_switch_early(enum proc_state state)
|
||||
|
|
Loading…
Reference in a new issue