switch_stack
DEFINE(SWITCH_STACK_SIZE, sizeof(struct switch_stack));
struct switch_stack *childstack, *stack;
childstack = ((struct switch_stack *) childregs) - 1;
sizeof(struct switch_stack) + sizeof(struct pt_regs));
stack = ((struct switch_stack *) regs) - 1;
struct switch_stack * sw = ((struct switch_stack *) pt) - 1;
(PAGE_SIZE*2 - sizeof(struct pt_regs) - sizeof(struct switch_stack) \
+ offsetof(struct switch_stack, reg))
struct switch_stack *sw = (struct switch_stack *)regs - 1;
struct switch_stack *sw = (struct switch_stack *)regs - 1;
((unsigned long)(((struct switch_stack *)(tsk->thread.sp))->r8))
((unsigned long)(((struct switch_stack *)(tsk->thread.sp))->r15))
struct switch_stack *childstack;
childstack = ((struct switch_stack *) childregs) - 1;
memset(childstack, 0, sizeof(struct switch_stack));
struct switch_stack *sw = ((struct switch_stack *)regs) - 1; \
struct switch_stack sw;
fp = ((struct switch_stack *)p->thread.ksp)->a6;
#define SW_REG(reg) ((long)&((struct switch_stack *)0)->reg \
- sizeof(struct switch_stack))
sc->sc_a5 = ((struct switch_stack *)regs - 1)->a5;
void *p = (struct switch_stack *)regs - 1;
int size = sizeof(struct pt_regs)+sizeof(struct switch_stack);
rt_restore_ucontext(struct pt_regs *regs, struct switch_stack *sw,
asmlinkage void *do_sigreturn(struct pt_regs *regs, struct switch_stack *sw)
asmlinkage void *do_rt_sigreturn(struct pt_regs *regs, struct switch_stack *sw)
struct switch_stack *sw = (struct switch_stack *)regs - 1;
asmlinkage void *do_sigreturn(struct pt_regs *regs, struct switch_stack *sw);
asmlinkage void *do_rt_sigreturn(struct pt_regs *regs, struct switch_stack *sw);
struct switch_stack *sw = ((struct switch_stack *)regs) - 1; \
OFFSET(SW_R16, switch_stack, r16);
OFFSET(SW_R17, switch_stack, r17);
OFFSET(SW_R18, switch_stack, r18);
OFFSET(SW_R19, switch_stack, r19);
OFFSET(SW_R20, switch_stack, r20);
OFFSET(SW_R21, switch_stack, r21);
OFFSET(SW_R22, switch_stack, r22);
OFFSET(SW_R23, switch_stack, r23);
OFFSET(SW_FP, switch_stack, fp);
OFFSET(SW_GP, switch_stack, gp);
OFFSET(SW_RA, switch_stack, ra);
DEFINE(SWITCH_STACK_SIZE, sizeof(struct switch_stack));
offset = -sizeof(struct switch_stack);
struct switch_stack *stack;
struct switch_stack *childstack =
((struct switch_stack *)childregs) - 1;
sizeof(struct switch_stack) + sizeof(struct pt_regs));
stack = ((struct switch_stack *) regs) - 1;
fp = ((struct switch_stack *)p->thread.ksp)->fp; /* ;dgt2 */
const struct switch_stack *sw = (struct switch_stack *)regs - 1;
const struct switch_stack *sw = (struct switch_stack *)regs - 1;
asmlinkage int do_rt_sigreturn(struct switch_stack *sw)
struct switch_stack *sw = (struct switch_stack *)regs - 1;
struct switch_stack *sw,