123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #ifndef _SYS_USER_H
- #define _SYS_USER_H 1
- #include <bits/uClibc_page.h>
- struct user_nios2fp_struct {
- };
- struct user_regs_struct {
- long r1,r2,r3,r4,r5,r6,r7,r8;
- long r9,r10,r11,r12,r13,r14,r15;
- long r16,r17,r18,r19,r20,r21,r22,r23;
- long gp;
- long sp;
- long ra;
- long fp;
- long orig_r2;
- long estatus;
- long status_extension;
- long ea;
- };
- struct user {
- struct user_regs_struct regs;
- unsigned long int u_tsize;
- unsigned long int u_dsize;
- unsigned long int u_ssize;
- unsigned long start_code;
- unsigned long start_stack;
- long int signal;
- int reserved;
- unsigned long u_ar0;
-
- unsigned long magic;
- char u_comm[32];
- };
- #define NBPG PAGE_SIZE
- #define UPAGES 1
- #define HOST_TEXT_START_ADDR (u.start_code)
- #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
- #endif
|