/linux-4.4.14/arch/nios2/kernel/ |
H A D | asm-offsets.c | 66 /* struct switch_stack */ main() 67 OFFSET(SW_R16, switch_stack, r16); main() 68 OFFSET(SW_R17, switch_stack, r17); main() 69 OFFSET(SW_R18, switch_stack, r18); main() 70 OFFSET(SW_R19, switch_stack, r19); main() 71 OFFSET(SW_R20, switch_stack, r20); main() 72 OFFSET(SW_R21, switch_stack, r21); main() 73 OFFSET(SW_R22, switch_stack, r22); main() 74 OFFSET(SW_R23, switch_stack, r23); main() 75 OFFSET(SW_FP, switch_stack, fp); main() 76 OFFSET(SW_GP, switch_stack, gp); main() 77 OFFSET(SW_RA, switch_stack, ra); main() 78 DEFINE(SWITCH_STACK_SIZE, sizeof(struct switch_stack)); main()
|
H A D | ptrace.c | 27 const struct switch_stack *sw = (struct switch_stack *)regs - 1; genregs_get() 73 const struct switch_stack *sw = (struct switch_stack *)regs - 1; genregs_set()
|
H A D | process.c | 104 struct switch_stack *stack; copy_thread() 105 struct switch_stack *childstack = copy_thread() 106 ((struct switch_stack *)childregs) - 1; copy_thread() 110 sizeof(struct switch_stack) + sizeof(struct pt_regs)); copy_thread() 128 stack = ((struct switch_stack *) regs) - 1; copy_thread() 226 fp = ((struct switch_stack *)p->thread.ksp)->fp; /* ;dgt2 */ get_wchan()
|
H A D | misaligned.c | 45 /* struct switch_stack */ 218 /* struct switch_stack */ misaligned_calc_reg_offsets() 219 offset = -sizeof(struct switch_stack); misaligned_calc_reg_offsets()
|
H A D | signal.c | 38 struct switch_stack *sw, rt_restore_ucontext() 101 asmlinkage int do_rt_sigreturn(struct switch_stack *sw) do_rt_sigreturn() 129 struct switch_stack *sw = (struct switch_stack *)regs - 1; rt_setup_ucontext()
|
/linux-4.4.14/arch/ia64/kernel/ |
H A D | asm-offsets.c | 27 DEFINE(IA64_SWITCH_STACK_SIZE, sizeof (struct switch_stack)); foo() 131 DEFINE(IA64_SWITCH_STACK_CALLER_UNAT_OFFSET, offsetof (struct switch_stack, caller_unat)); foo() 132 DEFINE(IA64_SWITCH_STACK_AR_FPSR_OFFSET, offsetof (struct switch_stack, ar_fpsr)); foo() 133 DEFINE(IA64_SWITCH_STACK_F2_OFFSET, offsetof (struct switch_stack, f2)); foo() 134 DEFINE(IA64_SWITCH_STACK_F3_OFFSET, offsetof (struct switch_stack, f3)); foo() 135 DEFINE(IA64_SWITCH_STACK_F4_OFFSET, offsetof (struct switch_stack, f4)); foo() 136 DEFINE(IA64_SWITCH_STACK_F5_OFFSET, offsetof (struct switch_stack, f5)); foo() 137 DEFINE(IA64_SWITCH_STACK_F12_OFFSET, offsetof (struct switch_stack, f12)); foo() 138 DEFINE(IA64_SWITCH_STACK_F13_OFFSET, offsetof (struct switch_stack, f13)); foo() 139 DEFINE(IA64_SWITCH_STACK_F14_OFFSET, offsetof (struct switch_stack, f14)); foo() 140 DEFINE(IA64_SWITCH_STACK_F15_OFFSET, offsetof (struct switch_stack, f15)); foo() 141 DEFINE(IA64_SWITCH_STACK_F16_OFFSET, offsetof (struct switch_stack, f16)); foo() 142 DEFINE(IA64_SWITCH_STACK_F17_OFFSET, offsetof (struct switch_stack, f17)); foo() 143 DEFINE(IA64_SWITCH_STACK_F18_OFFSET, offsetof (struct switch_stack, f18)); foo() 144 DEFINE(IA64_SWITCH_STACK_F19_OFFSET, offsetof (struct switch_stack, f19)); foo() 145 DEFINE(IA64_SWITCH_STACK_F20_OFFSET, offsetof (struct switch_stack, f20)); foo() 146 DEFINE(IA64_SWITCH_STACK_F21_OFFSET, offsetof (struct switch_stack, f21)); foo() 147 DEFINE(IA64_SWITCH_STACK_F22_OFFSET, offsetof (struct switch_stack, f22)); foo() 148 DEFINE(IA64_SWITCH_STACK_F23_OFFSET, offsetof (struct switch_stack, f23)); foo() 149 DEFINE(IA64_SWITCH_STACK_F24_OFFSET, offsetof (struct switch_stack, f24)); foo() 150 DEFINE(IA64_SWITCH_STACK_F25_OFFSET, offsetof (struct switch_stack, f25)); foo() 151 DEFINE(IA64_SWITCH_STACK_F26_OFFSET, offsetof (struct switch_stack, f26)); foo() 152 DEFINE(IA64_SWITCH_STACK_F27_OFFSET, offsetof (struct switch_stack, f27)); foo() 153 DEFINE(IA64_SWITCH_STACK_F28_OFFSET, offsetof (struct switch_stack, f28)); foo() 154 DEFINE(IA64_SWITCH_STACK_F29_OFFSET, offsetof (struct switch_stack, f29)); foo() 155 DEFINE(IA64_SWITCH_STACK_F30_OFFSET, offsetof (struct switch_stack, f30)); foo() 156 DEFINE(IA64_SWITCH_STACK_F31_OFFSET, offsetof (struct switch_stack, f31)); foo() 157 DEFINE(IA64_SWITCH_STACK_R4_OFFSET, offsetof (struct switch_stack, r4)); foo() 158 DEFINE(IA64_SWITCH_STACK_R5_OFFSET, offsetof (struct switch_stack, r5)); foo() 159 DEFINE(IA64_SWITCH_STACK_R6_OFFSET, offsetof (struct switch_stack, r6)); foo() 160 DEFINE(IA64_SWITCH_STACK_R7_OFFSET, offsetof (struct switch_stack, r7)); foo() 161 DEFINE(IA64_SWITCH_STACK_B0_OFFSET, offsetof (struct switch_stack, b0)); foo() 162 DEFINE(IA64_SWITCH_STACK_B1_OFFSET, offsetof (struct switch_stack, b1)); foo() 163 DEFINE(IA64_SWITCH_STACK_B2_OFFSET, offsetof (struct switch_stack, b2)); foo() 164 DEFINE(IA64_SWITCH_STACK_B3_OFFSET, offsetof (struct switch_stack, b3)); foo() 165 DEFINE(IA64_SWITCH_STACK_B4_OFFSET, offsetof (struct switch_stack, b4)); foo() 166 DEFINE(IA64_SWITCH_STACK_B5_OFFSET, offsetof (struct switch_stack, b5)); foo() 167 DEFINE(IA64_SWITCH_STACK_AR_PFS_OFFSET, offsetof (struct switch_stack, ar_pfs)); foo() 168 DEFINE(IA64_SWITCH_STACK_AR_LC_OFFSET, offsetof (struct switch_stack, ar_lc)); foo() 169 DEFINE(IA64_SWITCH_STACK_AR_UNAT_OFFSET, offsetof (struct switch_stack, ar_unat)); foo() 170 DEFINE(IA64_SWITCH_STACK_AR_RNAT_OFFSET, offsetof (struct switch_stack, ar_rnat)); foo() 171 DEFINE(IA64_SWITCH_STACK_AR_BSPSTORE_OFFSET, offsetof (struct switch_stack, ar_bspstore)); foo() 172 DEFINE(IA64_SWITCH_STACK_PR_OFFSET, offsetof (struct switch_stack, pr)); foo()
|
H A D | unaligned.c | 189 * We use bit 0 to indicate switch_stack or pt_regs. 193 * In case the calling convention changes (and thus pt_regs/switch_stack) 198 #define RSO(x) ((size_t) &((struct switch_stack *)0)->x) 307 struct switch_stack *sw = (struct switch_stack *) regs - 1; set_rse_reg() 380 struct switch_stack *sw = (struct switch_stack *) regs - 1; get_rse_reg() 453 struct switch_stack *sw = (struct switch_stack *) regs - 1; setreg() 481 DPRINT("tmp_base=%lx switch_stack=%s offset=%d\n", setreg() 519 struct switch_stack *sw = (struct switch_stack *)regs - 1; setfpreg() 538 * pt_regs or switch_stack ? setfpreg() 580 struct switch_stack *sw = (struct switch_stack *) regs - 1; getfpreg() 609 * pt_regs or switch_stack ? getfpreg() 627 struct switch_stack *sw = (struct switch_stack *) regs - 1; getreg() 1084 * destination (pt_regs, switch_stack or thread structure). emulate_load_floatpair() 1180 * destination (pt_regs, switch_stack or thread structure). emulate_load_float()
|
H A D | process.c | 319 * | struct switch_stack | 326 * Observe that we copy the unat values that are in pt_regs and switch_stack. Spilling an 339 struct switch_stack *child_stack, *stack; copy_thread() 346 child_stack = (struct switch_stack *) child_ptregs - 1; copy_thread() 409 stack = ((struct switch_stack *) regs) - 1; copy_thread() 410 /* copy parent's switch_stack & pt_regs to child: */ copy_thread()
|
H A D | mca.c | 954 * also contains a partial pt_regs and switch_stack, the rest of the data is in 965 const struct switch_stack *sw, ia64_mca_modify_original_stack() 975 struct switch_stack *old_sw; ia64_mca_modify_original_stack() 977 sizeof(struct switch_stack) + 16; ia64_mca_modify_original_stack() 1091 /* Next stack a struct switch_stack. mca_asm.S built a partial ia64_mca_modify_original_stack() 1092 * switch_stack, copy it and fill in the blanks using pt_regs and ia64_mca_modify_original_stack() 1095 * In the synthesized switch_stack, b0 points to ia64_leave_kernel, ia64_mca_modify_original_stack() 1102 * switch_stack on the original stack so it will unwind correctly when ia64_mca_modify_original_stack() 1105 * thread.ksp is updated to point to the synthesized switch_stack. ia64_mca_modify_original_stack() 1107 p -= sizeof(struct switch_stack); ia64_mca_modify_original_stack() 1108 old_sw = (struct switch_stack *)p; ia64_mca_modify_original_stack() 1282 ia64_mca_handler(struct pt_regs *regs, struct switch_stack *sw, ia64_mca_handler() 1664 ia64_init_handler(struct pt_regs *regs, struct switch_stack *sw, ia64_init_handler()
|
H A D | mca_asm.S | 446 // registers that appear in struct pt_regs and struct switch_stack, 448 // results in a partial pt_regs and switch_stack, the C code copies the 449 // remaining registers from PAL minstate to pt_regs and switch_stack. The 562 // Save the switch_stack data that is not in minstate nor pt_regs. The 711 // registers that appear in struct pt_regs and struct switch_stack, 717 // Restore the switch_stack data that is not in minstate nor pt_regs. 779 // left regs at switch_stack.
|
H A D | ptrace.c | 249 get_rnat (struct task_struct *task, struct switch_stack *sw, get_rnat() 309 put_rnat (struct task_struct *task, struct switch_stack *sw, put_rnat() 402 ia64_peek (struct task_struct *child, struct switch_stack *child_stack, ia64_peek() 464 ia64_poke (struct task_struct *child, struct switch_stack *child_stack, ia64_poke() 530 * the switch_stack and pt_regs structures, respectively. 535 ia64_sync_user_rbs (struct task_struct *child, struct switch_stack *sw, ia64_sync_user_rbs() 554 ia64_sync_kernel_rbs (struct task_struct *child, struct switch_stack *sw, ia64_sync_kernel_rbs() 573 typedef long (*syncfunc_t)(struct task_struct *, struct switch_stack *, 827 struct switch_stack *sw; ptrace_getregs() 837 sw = (struct switch_stack *) (child->thread.ksp + 16); ptrace_getregs() 970 struct switch_stack *sw; ptrace_setregs() 982 sw = (struct switch_stack *) (child->thread.ksp + 16); ptrace_setregs()
|
H A D | unwind.c | 94 /* maps a preserved register index (preg_index) to corresponding switch_stack offset: */ 1825 if (off >= offsetof(struct switch_stack, r4) && off <= offsetof(struct switch_stack, r7)) run_script() 1831 s[val+1] = (offsetof(struct switch_stack, ar_unat) - off) | UNW_NAT_MEMSTK; 2004 struct switch_stack *sw, unsigned long stktop) init_frame_info() 2012 * Subtle stuff here: we _could_ unwind through the switch_stack frame but we init_frame_info() 2015 * start the unwind process at the function that created the switch_stack frame. init_frame_info() 2016 * When a preserved value in switch_stack needs to be accessed, run_script() will init_frame_info() 2054 unw_init_frame_info (struct unw_frame_info *info, struct task_struct *t, struct switch_stack *sw) unw_init_frame_info() 2076 struct switch_stack *sw = (struct switch_stack *) (t->thread.ksp + 16); unw_init_from_blocked_task()
|
H A D | entry.S | 1327 adds out2=16+EXTRA_FRAME_SIZE,sp // &switch_stack
|
/linux-4.4.14/arch/ia64/include/asm/ |
H A D | ptrace.h | 10 * 12/07/98 S. Eranian added pt_regs & switch_stack 12 * 6/17/99 D. Mosberger added second unat member to "struct switch_stack" 119 extern long ia64_peek (struct task_struct *, struct switch_stack *, unsigned long, 121 extern long ia64_poke (struct task_struct *, struct switch_stack *, unsigned long, 126 extern long ia64_sync_user_rbs (struct task_struct *, struct switch_stack *,
|
H A D | unwind.h | 17 struct switch_stack; /* forward declaration */ 68 struct switch_stack *sw; 118 struct switch_stack *sw);
|
H A D | mca.h | 94 * switch_stack. Because MCA/INIT can occur when interrupts are 152 struct switch_stack *,
|
H A D | mca_asm.h | 216 * stacks, except that the SAL/OS state and a switch_stack are stored near the 224 * | switch_stack |
|
/linux-4.4.14/arch/cris/include/uapi/asm/ |
H A D | ptrace_v10.h | 85 /* switch_stack is the extra stuff pushed onto the stack in _resume (entry.S) 91 * switch_stack and the TSS are used to keep thread stuff when switching in 95 struct switch_stack { struct
|
H A D | ptrace_v32.h | 85 /* switch_stack is the extra stuff pushed onto the stack in _resume (entry.S) 91 * switch_stack and the TSS are used to keep thread stuff when switching in 95 struct switch_stack { struct
|
/linux-4.4.14/arch/cris/arch-v10/kernel/ |
H A D | process.c | 86 /* setup the child's kernel stack with a pt_regs and switch_stack on it. 101 struct switch_stack *swstack = ((struct switch_stack *)childregs) - 1; copy_thread() 109 sizeof(struct switch_stack) + sizeof(struct pt_regs)); copy_thread()
|
/linux-4.4.14/arch/cris/arch-v32/kernel/ |
H A D | process.c | 93 * Setup the child's kernel stack with a pt_regs and call switch_stack() on it. 109 struct switch_stack *swstack = ((struct switch_stack *) childregs) - 1; copy_thread() 118 sizeof(struct switch_stack) + sizeof(struct pt_regs)); copy_thread()
|
/linux-4.4.14/arch/ia64/oprofile/ |
H A D | backtrace.c | 20 * the struct pt_regs and a synthetic struct switch_stack in place 73 struct switch_stack *sw; do_ia64_backtrace() 77 sw = (struct switch_stack *)(info+1); do_ia64_backtrace() 79 sw = (struct switch_stack *)(((unsigned long)sw + 15) & ~15); do_ia64_backtrace()
|
/linux-4.4.14/arch/alpha/kernel/ |
H A D | process.c | 252 struct switch_stack *childstack, *stack; copy_thread() 254 childstack = ((struct switch_stack *) childregs) - 1; copy_thread() 261 sizeof(struct switch_stack) + sizeof(struct pt_regs)); copy_thread() 282 stack = ((struct switch_stack *) regs) - 1; copy_thread() 295 struct switch_stack * sw = ((struct switch_stack *) pt) - 1; dump_elf_thread() 348 struct switch_stack *sw = (struct switch_stack *)task_pt_regs(task) - 1; dump_elf_task_fp()
|
H A D | ptrace.c | 58 * | frame saved by do_switch_stack | | struct switch_stack 78 (PAGE_SIZE*2 - sizeof(struct pt_regs) - sizeof(struct switch_stack) \ 79 + offsetof(struct switch_stack, reg))
|
H A D | signal.c | 150 struct switch_stack *sw = (struct switch_stack *)regs - 1; restore_sigcontext() 284 struct switch_stack *sw = (struct switch_stack *)regs - 1; setup_sigcontext()
|
H A D | entry.S | 798 * have to play switch_stack games or in some way use the pt_regs struct.
|
/linux-4.4.14/arch/m68k/include/asm/ |
H A D | a.out-core.h | 25 struct switch_stack *sw; aout_dump_thread() 41 sw = ((struct switch_stack *)regs) - 1; aout_dump_thread()
|
H A D | elf.h | 96 struct switch_stack *sw = ((struct switch_stack *)regs) - 1; \
|
/linux-4.4.14/arch/ia64/include/uapi/asm/ |
H A D | ptrace.h | 10 * 12/07/98 S. Eranian added pt_regs & switch_stack 12 * 6/17/99 D. Mosberger added second unat member to "struct switch_stack" 34 * | struct switch_stack | | 53 * Note that ar.ec is not saved explicitly in pt_reg or switch_stack. 156 struct switch_stack { struct
|
/linux-4.4.14/arch/alpha/include/asm/ |
H A D | a.out-core.h | 25 struct switch_stack * sw = ((struct switch_stack *) pt) - 1; aout_dump_thread()
|
/linux-4.4.14/arch/nios2/include/asm/ |
H A D | elf.h | 75 struct switch_stack *sw = ((struct switch_stack *)regs) - 1; \
|
H A D | ptrace.h | 52 struct switch_stack { struct
|
/linux-4.4.14/arch/alpha/include/uapi/asm/ |
H A D | ptrace.h | 57 struct switch_stack { struct
|
/linux-4.4.14/arch/m68k/include/uapi/asm/ |
H A D | ptrace.h | 58 struct switch_stack { struct
|
/linux-4.4.14/arch/m68k/kernel/ |
H A D | process.c | 46 struct switch_stack *sw = (struct switch_stack *)tsk->thread.ksp; thread_saved_pc() 136 struct switch_stack sw; copy_thread() 266 fp = ((struct switch_stack *)p->thread.ksp)->a6; get_wchan()
|
H A D | signal.c | 216 ((struct switch_stack *)regs - 1)->a5 = current->mm->start_data; adjustformat() 226 sc->sc_a5 = ((struct switch_stack *)regs - 1)->a5; save_a5_state() 611 struct switch_stack *sw = (struct switch_stack *)regs - 1; mangle_kernel_stack() 621 #define frame_offset (sizeof(struct pt_regs)+sizeof(struct switch_stack)) mangle_kernel_stack() 630 /* move switch_stack and pt_regs */ mangle_kernel_stack() 687 rt_restore_ucontext(struct pt_regs *regs, struct switch_stack *sw, rt_restore_ucontext() 742 struct switch_stack *sw = (struct switch_stack *) &__unused; do_sigreturn() 769 struct switch_stack *sw = (struct switch_stack *) &__unused; do_rt_sigreturn() 809 struct switch_stack *sw = (struct switch_stack *)regs - 1; rt_setup_ucontext()
|
H A D | ptrace.c | 44 #define SW_REG(reg) ((long)&((struct switch_stack *)0)->reg \ 45 - sizeof(struct switch_stack))
|