diff options
| author | Valery Ushakov <uwe@stderr.spb.ru> | 2019-03-10 03:44:16 +0200 |
|---|---|---|
| committer | Valery Ushakov <uwe@stderr.spb.ru> | 2019-03-10 03:44:16 +0200 |
| commit | 594bd56378a3a707845dd8813881c427a3a8d16e (patch) | |
| tree | 5f18116b77d615f40c50d449a332dafd21347c05 /AIX/power/include/emu.h | |
| parent | 9b7850d511c2c910abfb42ece20650b97fba5a72 (diff) | |
| parent | 55520626f59983d296c98c008af92f7c5c27bf5f (diff) | |
Merged default into NetBSD/pthreads
Diffstat (limited to 'AIX/power/include/emu.h')
| -rw-r--r-- | AIX/power/include/emu.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/AIX/power/include/emu.h b/AIX/power/include/emu.h new file mode 100644 index 00000000..94053840 --- /dev/null +++ b/AIX/power/include/emu.h @@ -0,0 +1,25 @@ +/* + * system- and machine-specific declarations for emu: + * floating-point save and restore, signal handling primitive, and + * implementation of the current-process variable `up'. + */ + +/* + * This structure must agree with FPsave and FPrestore asm routines + */ +typedef struct FPU FPU; +struct FPU +{ + uchar env[18*8]; +}; + +#define KSTACK (32 * 1024) + +extern Proc* getup(void); + +#define up (getup()) + +typedef sigjmp_buf osjmpbuf; +#define ossetjmp(buf) sigsetjmp(buf, 1) + +#define pthread_yield sched_yield |
