12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef _SYS_USER_H
- #define _SYS_USER_H 1
- #include <bits/uClibc_page.h>
- #include <asm/reg.h>
- struct user
- {
- unsigned long int regs[EF_SIZE / 8 + 32];
- size_t u_tsize;
- size_t u_dsize;
- size_t u_ssize;
- unsigned long int start_code;
- unsigned long int start_data;
- unsigned long int start_stack;
- long int signal;
- struct regs *u_ar0;
- unsigned long int magic;
- char u_comm[32];
- };
- #define NBPG PAGE_SIZE
- #define UPAGES 1
- #define HOST_TEXT_START_ADDR (u.start_code)
- #define HOST_DATA_START_ADDR (u.start_data)
- #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
- #endif
|