mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
parent
2a9a653b2b
commit
0a2e8909ee
@ -39,7 +39,7 @@ int Platform_thread::start(void *ip, void *sp, unsigned int cpu_no)
|
||||
|
||||
/* setup thread context */
|
||||
struct exregs_data exregs;
|
||||
exregs.flags = 0;
|
||||
memset(&exregs, 0, sizeof(exregs));
|
||||
exregs_set_stack(&exregs, (unsigned long)sp);
|
||||
exregs_set_pc (&exregs, (unsigned long)ip);
|
||||
exregs_set_pager(&exregs, pager.tid);
|
||||
|
@ -67,6 +67,7 @@ inline int create_thread(unsigned space_no,
|
||||
|
||||
/* setup thread context */
|
||||
struct exregs_data exregs;
|
||||
memset(&exregs, 0, sizeof(exregs));
|
||||
exregs_set_stack(&exregs, (unsigned long)sp);
|
||||
exregs_set_pc (&exregs, (unsigned long)ip);
|
||||
exregs_set_pager(&exregs, pager_tid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user