diff options
| author | Valery Ushakov <uwe@stderr.spb.ru> | 2020-12-29 20:10:33 +0300 |
|---|---|---|
| committer | Valery Ushakov <uwe@stderr.spb.ru> | 2020-12-29 20:10:33 +0300 |
| commit | e89e8a1559693b91fd201d2a0368a8561c1473b7 (patch) | |
| tree | 470c0f822788924826a62e04e5b913797af46fdf /NetBSD/arm/include/emu.h | |
| parent | a93f6c888f6d530420fbb54e2f7fa4572cdc5208 (diff) | |
NetBSD/arm: initial support
This is more or less mechanical merge of existing NetBSD code and
ARM-specific bits from Linux/arm files.
Diffstat (limited to 'NetBSD/arm/include/emu.h')
| -rw-r--r-- | NetBSD/arm/include/emu.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/NetBSD/arm/include/emu.h b/NetBSD/arm/include/emu.h new file mode 100644 index 00000000..07e3fad7 --- /dev/null +++ b/NetBSD/arm/include/emu.h @@ -0,0 +1,22 @@ +/* + * 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[28]; +}; + +#define KSTACK (32 * 1024) + +extern Proc* getup(void); +#define up (getup()) + +typedef sigjmp_buf osjmpbuf; +#define ossetjmp(buf) sigsetjmp(buf, 1) |
