mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
move architecture dependent part into x86/include/asm/tasks_types.h
This commit is contained in:
parent
58d96cee2a
commit
74bc5a2fcf
2 changed files with 9 additions and 6 deletions
|
@ -124,6 +124,13 @@ typedef struct {
|
|||
uint16_t unused5;
|
||||
} fenv_t;
|
||||
|
||||
typedef struct ucontext {
|
||||
mregs_t uc_mregs;
|
||||
fenv_t uc_fenv;
|
||||
struct ucontext *uc_link;
|
||||
stack_t uc_stack;
|
||||
} ucontext_t;
|
||||
|
||||
typedef void (*handle_fpu_state)(union fpu_state* state);
|
||||
|
||||
extern handle_fpu_state save_fpu_state;
|
||||
|
|
|
@ -93,12 +93,8 @@ void sys_yield(void);
|
|||
int sys_kill(tid_t dest, int signum);
|
||||
int sys_signal(signal_handler_t handler);
|
||||
|
||||
typedef struct ucontext {
|
||||
mregs_t uc_mregs;
|
||||
fenv_t uc_fenv;
|
||||
struct ucontext *uc_link;
|
||||
stack_t uc_stack;
|
||||
} ucontext_t;
|
||||
struct ucontext;
|
||||
typedef struct ucontext ucontext_t;
|
||||
|
||||
void makecontext(ucontext_t *ucp, void (*func)(), int argc, ...);
|
||||
int swapcontext(ucontext_t *oucp, const ucontext_t *ucp);
|
||||
|
|
Loading…
Add table
Reference in a new issue