| 1 | /* user.h (emx+gcc) */
|
|---|
| 2 |
|
|---|
| 3 | #ifndef _SYS_USER_H
|
|---|
| 4 | #define _SYS_USER_H
|
|---|
| 5 |
|
|---|
| 6 | #define UMAGIC 0x10f
|
|---|
| 7 |
|
|---|
| 8 | struct fpstate
|
|---|
| 9 | {
|
|---|
| 10 | unsigned long state[27];
|
|---|
| 11 | unsigned long status;
|
|---|
| 12 | };
|
|---|
| 13 |
|
|---|
| 14 | struct user
|
|---|
| 15 | {
|
|---|
| 16 | unsigned short u_magic;
|
|---|
| 17 | unsigned short u_reserved1;
|
|---|
| 18 | unsigned long u_data_base;
|
|---|
| 19 | unsigned long u_data_end;
|
|---|
| 20 | unsigned long u_data_off;
|
|---|
| 21 | unsigned long u_heap_base;
|
|---|
| 22 | unsigned long u_heap_end;
|
|---|
| 23 | unsigned long u_heap_off;
|
|---|
| 24 | unsigned long u_heap_brk;
|
|---|
| 25 | unsigned long u_stack_base;
|
|---|
| 26 | unsigned long u_stack_end;
|
|---|
| 27 | unsigned long u_stack_off;
|
|---|
| 28 | unsigned long u_stack_low;
|
|---|
| 29 | int * u_ar0;
|
|---|
| 30 | char u_fpvalid;
|
|---|
| 31 | char u_reserved2[3];
|
|---|
| 32 | struct fpstate u_fpstate;
|
|---|
| 33 | char u_module[8];
|
|---|
| 34 | unsigned long u_heapobjs_off;
|
|---|
| 35 | unsigned long u_reserved3[20];
|
|---|
| 36 | unsigned long u_regs[19];
|
|---|
| 37 | };
|
|---|
| 38 |
|
|---|
| 39 | struct _user_heapobj
|
|---|
| 40 | {
|
|---|
| 41 | unsigned long u_base;
|
|---|
|
|---|