diff options
Diffstat (limited to 'firmware/export/thread.h')
| -rw-r--r-- | firmware/export/thread.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/firmware/export/thread.h b/firmware/export/thread.h index 2915d23..19bf9e1 100644 --- a/firmware/export/thread.h +++ b/firmware/export/thread.h @@ -76,7 +76,13 @@ struct regs void *start; /* Thread start address, or NULL when started */ }; # endif - +#else +struct regs +{ + void *t; /* Simulator OS thread */ + void *c; /* Condition for blocking and sync */ + void (*start)(void); /* Start function */ +}; #endif /* !SIMULATOR */ #define STATE_RUNNING 0x00000000 @@ -97,9 +103,7 @@ struct regs #define SET_BOOST_STATE(var) (var |= STATE_BOOSTED) struct thread_entry { -#ifndef SIMULATOR struct regs context; -#endif const char *name; void *stack; unsigned long statearg; |