Searched refs:__greg_t (Results 1 - 25 of 51) sorted by relevance

123

/netbsd-6-1-5-RELEASE/lib/libc/arch/hppa/gen/
H A D_lwp.c49 __greg_t *gr;
50 __greg_t *gp;
51 __greg_t fp;
61 fp = (__greg_t)start;
63 gp = (__greg_t *)(fp & ~3);
69 gr[_REG_RP] = (__greg_t) _lwp_exit;
70 gr[_REG_ARG0] = (__greg_t) arg;
71 gr[_REG_SP] = (__greg_t) sp;
72 gr[_REG_CR27] = (__greg_t) private;
H A Dmakecontext.c52 __greg_t *gr = ucp->uc_mcontext.__gregs;
53 __greg_t *gp, rp, fp;
54 register __greg_t dp __asm("r27");
68 gr[_REG_SP] = (__greg_t)sp;
69 rp = (__greg_t)__resumecontext;
71 gp = (__greg_t *)(rp & ~3);
76 fp = (__greg_t)func;
78 gp = (__greg_t *)(fp & ~3);
/netbsd-6-1-5-RELEASE/lib/libc/arch/mips/gen/
H A Dmakecontext.c49 __greg_t *gr = ucp->uc_mcontext.__gregs;
50 __greg_t *sp;
55 sp = (__greg_t *)
60 sp = (__greg_t *)
64 sp = (__greg_t *)
78 /* LINTED __greg_t is safe */
79 gr[_REG_A0 + i] = va_arg(ap, __greg_t);
86 /* LINTED __greg_t is safe */
87 gr[_REG_A0 + i] = va_arg(ap, __greg_t);
93 *sp++ = va_arg(ap, __greg_t);
[all...]
/netbsd-6-1-5-RELEASE/lib/libc/arch/alpha/gen/
H A Dmakecontext.c49 __greg_t *gr = ucp->uc_mcontext.__gregs;
60 gr[_REG_SP] = (__greg_t)sp;
62 gr[_REG_RA] = (__greg_t)__resumecontext;
63 gr[_REG_PC] = (__greg_t)func;
64 gr[_REG_PV] = (__greg_t)func;
/netbsd-6-1-5-RELEASE/lib/libc/arch/sh3/gen/
H A D_lwp.c63 u->uc_mcontext.__gregs[_REG_R4] = (__greg_t) arg;
64 u->uc_mcontext.__gregs[_REG_SP] = ((__greg_t) sp) & ~3;
65 u->uc_mcontext.__gregs[_REG_PR] = (__greg_t) _lwp_exit;
66 u->uc_mcontext.__gregs[_REG_PC] = (__greg_t) start;
67 u->uc_mcontext.__gregs[_REG_GBR] = (__greg_t) private;
H A Dmakecontext.c47 __greg_t *gr = ucp->uc_mcontext.__gregs;
58 gr[_REG_SP] = (__greg_t)sp;
60 gr[_REG_PR] = (__greg_t)_resumecontext;
61 gr[_REG_PC] = (__greg_t)func;
/netbsd-6-1-5-RELEASE/lib/libc/arch/sparc/gen/
H A Dmakecontext.c47 __greg_t *gr = ucp->uc_mcontext.__gregs;
62 gr[_REG_O6] = (__greg_t)sp;
63 gr[_REG_PC] = (__greg_t)func;
64 gr[_REG_nPC] = (__greg_t)func + 4;
65 gr[_REG_O7] = (__greg_t)_resumecontext - 8;
/netbsd-6-1-5-RELEASE/lib/libc/arch/vax/gen/
H A Dmakecontext.c47 __greg_t *gr = ucp->uc_mcontext.__gregs;
74 gr[_REG_AP] = (__greg_t)(sp + 5);
75 gr[_REG_SP] = (__greg_t)sp;
76 gr[_REG_FP] = (__greg_t)sp;
77 gr[_REG_PC] = (__greg_t)func+2;
H A D_lwp.c48 __greg_t *gr = u->uc_mcontext.__gregs;
75 gr[_REG_AP] = (__greg_t)(sp + 5);
76 gr[_REG_SP] = (__greg_t)sp;
77 gr[_REG_FP] = (__greg_t)sp;
78 gr[_REG_PC] = (__greg_t)start + 2;
85 gr[_REG_SP] = (__greg_t)sp;
/netbsd-6-1-5-RELEASE/lib/libc/arch/powerpc64/gen/
H A Dmakecontext.c51 __greg_t *gr = ucp->uc_mcontext.__gregs;
52 __greg_t sp, *spp;
56 sp = (__greg_t) ((uintptr_t)ucp->uc_stack.ss_sp
59 sp = (__greg_t) ((uintptr_t)sp & ~0xf);
66 gr[_REG_LR] = (__greg_t)_resumecontext;
67 gr[_REG_PC] = (__greg_t)func; // XXX -- this is the descriptor address!
70 spp = (__greg_t *)sp;
H A D_lwp.c63 u->uc_mcontext.__gregs[3] = (__greg_t) arg; /* arg1 */
64 u->uc_mcontext.__gregs[1] = ((__greg_t) sp) - 112; /* stack */
65 u->uc_mcontext.__gregs[33] = (__greg_t) _lwp_exit; /* LR */
66 u->uc_mcontext.__gregs[34] = (__greg_t) start; /* PC */
/netbsd-6-1-5-RELEASE/lib/libc/arch/arm/gen/
H A D_lwp.c67 u->uc_mcontext.__gregs[_REG_R0] = (__greg_t) arg;
68 u->uc_mcontext.__gregs[_REG_SP] = ((__greg_t) sp) & ~7;
69 u->uc_mcontext.__gregs[_REG_LR] = (__greg_t) _lwp_exit;
70 u->uc_mcontext.__gregs[_REG_PC] = (__greg_t) start;
H A Dmakecontext.c47 __greg_t *gr = ucp->uc_mcontext.__gregs;
58 gr[_REG_SP] = (__greg_t)sp;
62 gr[_REG_LR] = (__greg_t)_resumecontext;
63 gr[_REG_PC] = (__greg_t)func;
/netbsd-6-1-5-RELEASE/lib/libc/arch/powerpc/gen/
H A Dmakecontext.c51 __greg_t *gr = ucp->uc_mcontext.__gregs;
68 gr[_REG_R1] = (__greg_t)sp;
69 gr[_REG_LR] = (__greg_t)_resumecontext;
70 gr[_REG_PC] = (__greg_t)func;
/netbsd-6-1-5-RELEASE/lib/libc/arch/sparc64/gen/
H A Dmakecontext.c48 __greg_t *gr = ucp->uc_mcontext.__gregs;
76 gr[_REG_O6] = (__greg_t)sp;
77 gr[_REG_PC] = (__greg_t)func;
78 gr[_REG_nPC] = (__greg_t)func + 4;
79 gr[_REG_O7] = (__greg_t)_resumecontext - 8;
H A Dlongjmp.c46 __greg_t g3;
47 __greg_t g6;
48 __greg_t g7;
49 __greg_t dummy;
50 __greg_t save_mask;
/netbsd-6-1-5-RELEASE/lib/libc/arch/x86_64/gen/
H A Dmakecontext.c50 __greg_t *gr = ucp->uc_mcontext.__gregs;
57 /* LINTED __greg_t is safe */
58 gr[_REG_RIP] = (__greg_t)func;
69 /* LINTED __greg_t is safe */
70 gr[_REG_RSP] = (__greg_t)sp;
71 gr[_REG_RBP] = (__greg_t)0; /* Wipe out frame pointer. */
87 /* LINTED __greg_t is safe */
88 gr[i] = va_arg(ap, __greg_t);
H A D_lwp.c48 __greg_t *gr = u->uc_mcontext.__gregs;
62 /* LINTED __greg_t is safe */
63 gr[_REG_RDI] = (__greg_t)arg;
/netbsd-6-1-5-RELEASE/sys/arch/mips/include/
H A Dmcontext.h84 typedef long long __greg_t; typedef
86 typedef long __greg_t; typedef
89 typedef __greg_t __gregset_t[_NGREG];
97 typedef __greg_t __freg_t;
107 __greg_t __fp_csr;
128 __greg_t _mc_tlsbase;
130 __greg_t __mc_unused;
148 __greg_t _mc_tlsbase;
/netbsd-6-1-5-RELEASE/lib/libc/arch/i386/gen/
H A Dmakecontext.c60 __greg_t *gr = ucp->uc_mcontext.__gregs;
64 /* LINTED __greg_t is safe */
65 gr[_REG_EIP] = (__greg_t)func;
74 /* LINTED __greg_t is safe */
75 gr[_REG_UESP] = (__greg_t)sp;
76 gr[_REG_EBP] = (__greg_t)0; /* Wipe out frame pointer. */
/netbsd-6-1-5-RELEASE/sys/arch/sparc/include/
H A Dmcontext.h48 typedef long int __greg_t; typedef
49 typedef __greg_t __gregset_t[_NGREG];
80 __greg_t __rw_local[8]; /* %l0-7 */
81 __greg_t __rw_in[8]; /* %i0-7 */
87 __greg_t * __spbuf[_SPARC_MAXREGWINDOW];
/netbsd-6-1-5-RELEASE/lib/libc/arch/m68k/gen/
H A Dmakecontext.c51 mcp->__gregs[_REG_PC] = (__greg_t)func;
56 mcp->__gregs[_REG_A7] = (__greg_t)sp;
/netbsd-6-1-5-RELEASE/sys/arch/vax/include/
H A Dmcontext.h42 typedef int __greg_t; typedef
43 typedef __greg_t __gregset_t[_NGREG];
/netbsd-6-1-5-RELEASE/sys/arch/sh3/include/
H A Dmcontext.h40 typedef int __greg_t; typedef
41 typedef __greg_t __gregset_t[_NGREG];
/netbsd-6-1-5-RELEASE/sys/arch/hppa/include/
H A Dmcontext.h33 typedef unsigned long __greg_t; typedef
34 typedef __greg_t __gregset_t[_NGREG];

Completed in 223 milliseconds

123