Home
last modified time | relevance | path

Searched full:regs (Results 1 – 25 of 4563) sorted by relevance

12345678910>>...183

/openbmc/qemu/linux-user/microblaze/
H A Dsignal.c26 struct target_pt_regs regs; /* needs to be first */ member
53 __put_user(env->regs[0], &sc->regs.r0); in setup_sigcontext()
54 __put_user(env->regs[1], &sc->regs.r1); in setup_sigcontext()
55 __put_user(env->regs[2], &sc->regs.r2); in setup_sigcontext()
56 __put_user(env->regs[3], &sc->regs.r3); in setup_sigcontext()
57 __put_user(env->regs[4], &sc->regs.r4); in setup_sigcontext()
58 __put_user(env->regs[5], &sc->regs.r5); in setup_sigcontext()
59 __put_user(env->regs[6], &sc->regs.r6); in setup_sigcontext()
60 __put_user(env->regs[7], &sc->regs.r7); in setup_sigcontext()
61 __put_user(env->regs[8], &sc->regs.r8); in setup_sigcontext()
[all …]
H A Dcpu_loop.c43 env->regs[14] += 4; in cpu_loop()
44 env->pc = env->regs[14]; in cpu_loop()
46 env->regs[12], in cpu_loop()
47 env->regs[5], in cpu_loop()
48 env->regs[6], in cpu_loop()
49 env->regs[7], in cpu_loop()
50 env->regs[8], in cpu_loop()
51 env->regs[9], in cpu_loop()
52 env->regs[10], in cpu_loop()
58 env->regs[3] = ret; in cpu_loop()
[all …]
/openbmc/linux/arch/arm64/kernel/
H A Dentry-common.c38 static __always_inline void __enter_from_kernel_mode(struct pt_regs *regs) in __enter_from_kernel_mode() argument
40 regs->exit_rcu = false; in __enter_from_kernel_mode()
47 regs->exit_rcu = true; in __enter_from_kernel_mode()
56 static void noinstr enter_from_kernel_mode(struct pt_regs *regs) in enter_from_kernel_mode() argument
58 __enter_from_kernel_mode(regs); in enter_from_kernel_mode()
71 static __always_inline void __exit_to_kernel_mode(struct pt_regs *regs) in __exit_to_kernel_mode() argument
75 if (interrupts_enabled(regs)) { in __exit_to_kernel_mode()
76 if (regs->exit_rcu) { in __exit_to_kernel_mode()
86 if (regs->exit_rcu) in __exit_to_kernel_mode()
91 static void noinstr exit_to_kernel_mode(struct pt_regs *regs) in exit_to_kernel_mode() argument
[all …]
/openbmc/u-boot/board/cavium/thunderx/
H A Datf.c20 struct pt_regs regs; in atf_read_mmc() local
21 regs.regs[0] = THUNDERX_MMC_READ; in atf_read_mmc()
22 regs.regs[1] = offset; in atf_read_mmc()
23 regs.regs[2] = size; in atf_read_mmc()
24 regs.regs[3] = (uintptr_t)buffer; in atf_read_mmc()
26 smc_call(&regs); in atf_read_mmc()
28 return regs.regs[0]; in atf_read_mmc()
33 struct pt_regs regs; in atf_read_nor() local
34 regs.regs[0] = THUNDERX_NOR_READ; in atf_read_nor()
35 regs.regs[1] = offset; in atf_read_nor()
[all …]
/openbmc/qemu/linux-user/xtensa/
H A Dcpu_loop.c46 put_user_ual(env->regs[0], env->regs[5] - 16); in xtensa_overflow4()
47 put_user_ual(env->regs[1], env->regs[5] - 12); in xtensa_overflow4()
48 put_user_ual(env->regs[2], env->regs[5] - 8); in xtensa_overflow4()
49 put_user_ual(env->regs[3], env->regs[5] - 4); in xtensa_overflow4()
55 get_user_ual(env->regs[0], env->regs[5] - 16); in xtensa_underflow4()
56 get_user_ual(env->regs[1], env->regs[5] - 12); in xtensa_underflow4()
57 get_user_ual(env->regs[2], env->regs[5] - 8); in xtensa_underflow4()
58 get_user_ual(env->regs[3], env->regs[5] - 4); in xtensa_underflow4()
64 put_user_ual(env->regs[0], env->regs[9] - 16); in xtensa_overflow8()
65 get_user_ual(env->regs[0], env->regs[1] - 12); in xtensa_overflow8()
[all …]
/openbmc/linux/arch/riscv/kernel/
H A Dtraps.c39 static void dump_kernel_instr(const char *loglvl, struct pt_regs *regs) in dump_kernel_instr() argument
42 const u16 *insns = (u16 *)instruction_pointer(regs); in dump_kernel_instr()
60 void die(struct pt_regs *regs, const char *str) in die() argument
75 if (regs) { in die()
76 show_regs(regs); in die()
77 dump_kernel_instr(KERN_EMERG, regs); in die()
80 cause = regs ? regs->cause : -1; in die()
81 ret = notify_die(DIE_OOPS, str, regs, 0, cause, SIGSEGV); in die()
84 crash_kexec(regs); in die()
99 do_trap(struct pt_regs * regs,int signo,int code,unsigned long addr) do_trap() argument
115 do_trap_error(struct pt_regs * regs,int signo,int code,unsigned long addr,const char * str) do_trap_error() argument
154 do_trap_insn_illegal(struct pt_regs * regs) do_trap_insn_illegal() argument
193 do_trap_load_misaligned(struct pt_regs * regs) do_trap_load_misaligned() argument
214 do_trap_store_misaligned(struct pt_regs * regs) do_trap_store_misaligned() argument
252 probe_single_step_handler(struct pt_regs * regs) probe_single_step_handler() argument
259 probe_breakpoint_handler(struct pt_regs * regs) probe_breakpoint_handler() argument
266 handle_break(struct pt_regs * regs) handle_break() argument
290 do_trap_break(struct pt_regs * regs) do_trap_break() argument
307 do_trap_ecall_u(struct pt_regs * regs) do_trap_ecall_u() argument
336 do_page_fault(struct pt_regs * regs) do_page_fault() argument
348 handle_riscv_irq(struct pt_regs * regs) handle_riscv_irq() argument
359 do_irq(struct pt_regs * regs) do_irq() argument
415 handle_bad_stack(struct pt_regs * regs) handle_bad_stack() argument
[all...]
/openbmc/linux/arch/csky/kernel/probes/
H A Dsimulate-insn.c10 static inline bool csky_insn_reg_get_val(struct pt_regs *regs, in csky_insn_reg_get_val() argument
15 *ptr = *(&regs->a0 + index); in csky_insn_reg_get_val()
18 *ptr = *(&regs->exregs[0] + index - 16); in csky_insn_reg_get_val()
22 *ptr = regs->usp; in csky_insn_reg_get_val()
25 *ptr = regs->lr; in csky_insn_reg_get_val()
28 *ptr = regs->tls; in csky_insn_reg_get_val()
39 static inline bool csky_insn_reg_set_val(struct pt_regs *regs, in csky_insn_reg_set_val() argument
44 *(&regs->a0 + index) = val; in csky_insn_reg_set_val()
47 *(&regs->exregs[0] + index - 16) = val; in csky_insn_reg_set_val()
51 regs->usp = val; in csky_insn_reg_set_val()
[all …]
/openbmc/linux/drivers/media/platform/samsung/s5p-jpeg/
H A Djpeg-hw-s5p.c14 #include "jpeg-regs.h"
17 void s5p_jpeg_reset(void __iomem *regs) in s5p_jpeg_reset() argument
21 writel(1, regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
22 reg = readl(regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
26 reg = readl(regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
30 void s5p_jpeg_poweron(void __iomem *regs) in s5p_jpeg_poweron() argument
32 writel(S5P_POWER_ON, regs + S5P_JPGCLKCON); in s5p_jpeg_poweron()
35 void s5p_jpeg_input_raw_mode(void __iomem *regs, unsigned long mode) in s5p_jpeg_input_raw_mode() argument
45 reg = readl(regs + S5P_JPGCMOD); in s5p_jpeg_input_raw_mode()
48 writel(reg, regs + S5P_JPGCMOD); in s5p_jpeg_input_raw_mode()
[all …]
H A Djpeg-hw-exynos3250.c15 #include "jpeg-regs.h"
18 void exynos3250_jpeg_reset(void __iomem *regs) in exynos3250_jpeg_reset() argument
23 writel(1, regs + EXYNOS3250_SW_RESET); in exynos3250_jpeg_reset()
28 reg = readl(regs + EXYNOS3250_SW_RESET); in exynos3250_jpeg_reset()
35 writel(1, regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_reset()
38 reg = readl(regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_reset()
41 writel(0, regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_reset()
44 void exynos3250_jpeg_poweron(void __iomem *regs) in exynos3250_jpeg_poweron() argument
46 writel(EXYNOS3250_POWER_ON, regs + EXYNOS3250_JPGCLKCON); in exynos3250_jpeg_poweron()
49 void exynos3250_jpeg_set_dma_num(void __iomem *regs) in exynos3250_jpeg_set_dma_num() argument
[all …]
/openbmc/linux/arch/hexagon/kernel/
H A Dvm_events.c16 * @regs: pointer to pt_regs
22 void show_regs(struct pt_regs *regs) in show_regs() argument
27 regs->restart_r0, regs->syscall_nr); in show_regs()
28 printk(KERN_EMERG "preds: \t\t0x%08lx\n", regs->preds); in show_regs()
30 regs->lc0, regs->sa0, regs->m0); in show_regs()
32 regs->lc1, regs->sa1, regs->m1); in show_regs()
34 regs->gp, regs->ugp, regs->usr); in show_regs()
36 regs->cs0, regs->cs1); in show_regs()
37 printk(KERN_EMERG "r0: \t0x%08lx %08lx %08lx %08lx\n", regs->r00, in show_regs()
38 regs->r01, in show_regs()
[all …]
H A Dsignal.c27 static void __user *get_sigframe(struct ksignal *ksig, struct pt_regs *regs, in get_sigframe() argument
30 unsigned long sp = sigsp(regs->r29, ksig); in get_sigframe()
35 static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in setup_sigcontext() argument
40 err |= copy_to_user(&sc->sc_regs.r0, &regs->r00, in setup_sigcontext()
43 err |= __put_user(regs->sa0, &sc->sc_regs.sa0); in setup_sigcontext()
44 err |= __put_user(regs->lc0, &sc->sc_regs.lc0); in setup_sigcontext()
45 err |= __put_user(regs->sa1, &sc->sc_regs.sa1); in setup_sigcontext()
46 err |= __put_user(regs->lc1, &sc->sc_regs.lc1); in setup_sigcontext()
47 err |= __put_user(regs->m0, &sc->sc_regs.m0); in setup_sigcontext()
48 err |= __put_user(regs->m1, &sc->sc_regs.m1); in setup_sigcontext()
[all …]
/openbmc/linux/arch/riscv/include/asm/
H A Dcompat.h56 struct pt_regs *regs) in regs_to_cregs() argument
58 cregs->pc = (compat_ulong_t) regs->epc; in regs_to_cregs()
59 cregs->ra = (compat_ulong_t) regs->ra; in regs_to_cregs()
60 cregs->sp = (compat_ulong_t) regs->sp; in regs_to_cregs()
61 cregs->gp = (compat_ulong_t) regs->gp; in regs_to_cregs()
62 cregs->tp = (compat_ulong_t) regs->tp; in regs_to_cregs()
63 cregs->t0 = (compat_ulong_t) regs->t0; in regs_to_cregs()
64 cregs->t1 = (compat_ulong_t) regs->t1; in regs_to_cregs()
65 cregs->t2 = (compat_ulong_t) regs->t2; in regs_to_cregs()
66 cregs->s0 = (compat_ulong_t) regs->s0; in regs_to_cregs()
[all …]
/openbmc/linux/arch/csky/abiv2/inc/abi/
H A Delf.h7 #define ELF_CORE_COPY_REGS(pr_reg, regs) do { \ argument
8 pr_reg[0] = regs->pc; \
9 pr_reg[1] = regs->a1; \
10 pr_reg[2] = regs->a0; \
11 pr_reg[3] = regs->sr; \
12 pr_reg[4] = regs->a2; \
13 pr_reg[5] = regs->a3; \
14 pr_reg[6] = regs->regs[0]; \
15 pr_reg[7] = regs->regs[1]; \
16 pr_reg[8] = regs->regs[2]; \
[all …]
/openbmc/linux/arch/parisc/kernel/
H A Dkgdb.c28 struct pt_regs *regs = args->regs; in __kgdb_notify() local
30 if (kgdb_handle_exception(1, args->signr, cmd, regs)) in __kgdb_notify()
63 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) in pt_regs_to_gdb_regs() argument
69 memcpy(gr->gpr, regs->gr, sizeof(gr->gpr)); in pt_regs_to_gdb_regs()
70 memcpy(gr->fr, regs->fr, sizeof(gr->fr)); in pt_regs_to_gdb_regs()
72 gr->sr0 = regs->sr[0]; in pt_regs_to_gdb_regs()
73 gr->sr1 = regs->sr[1]; in pt_regs_to_gdb_regs()
74 gr->sr2 = regs->sr[2]; in pt_regs_to_gdb_regs()
75 gr->sr3 = regs->sr[3]; in pt_regs_to_gdb_regs()
76 gr->sr4 = regs->sr[4]; in pt_regs_to_gdb_regs()
[all …]
/openbmc/linux/arch/parisc/include/asm/
H A Dassembly.h209 .macro save_general regs
210 STREG %r1, PT_GR1 (\regs)
211 STREG %r2, PT_GR2 (\regs)
212 STREG %r3, PT_GR3 (\regs)
213 STREG %r4, PT_GR4 (\regs)
214 STREG %r5, PT_GR5 (\regs)
215 STREG %r6, PT_GR6 (\regs)
216 STREG %r7, PT_GR7 (\regs)
217 STREG %r8, PT_GR8 (\regs)
218 STREG %r9, PT_GR9 (\regs)
[all …]
/openbmc/linux/arch/openrisc/kernel/
H A Dtraps.c42 asmlinkage void unhandled_exception(struct pt_regs *regs, int ea, int vector);
43 asmlinkage void do_trap(struct pt_regs *regs, unsigned long address);
44 asmlinkage void do_fpe_trap(struct pt_regs *regs, unsigned long address);
45 asmlinkage void do_unaligned_access(struct pt_regs *regs, unsigned long address);
46 asmlinkage void do_bus_fault(struct pt_regs *regs, unsigned long address);
47 asmlinkage void do_illegal_instruction(struct pt_regs *regs,
76 void show_registers(struct pt_regs *regs) in show_registers() argument
82 esp = (unsigned long)(regs->sp); in show_registers()
83 if (user_mode(regs)) in show_registers()
88 smp_processor_id(), regs->pc, regs->sr, regs->sp, in show_registers()
[all …]
/openbmc/linux/arch/arc/kernel/
H A Dsignal.c23 * -In stash_usr_regs( ) and restore_usr_regs( ), save/restore of user regs
65 static int save_arcv2_regs(struct sigcontext __user *mctx, struct pt_regs *regs) in save_arcv2_regs() argument
71 v2abi.r30 = regs->r30; in save_arcv2_regs()
73 v2abi.r58 = regs->r58; in save_arcv2_regs()
74 v2abi.r59 = regs->r59; in save_arcv2_regs()
83 static int restore_arcv2_regs(struct sigcontext __user *mctx, struct pt_regs *regs) in restore_arcv2_regs() argument
91 regs->r30 = v2abi.r30; in restore_arcv2_regs()
93 regs->r58 = v2abi.r58; in restore_arcv2_regs()
94 regs->r59 = v2abi.r59; in restore_arcv2_regs()
101 stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs *regs, in stash_usr_regs() argument
[all …]
/openbmc/linux/arch/arm64/include/asm/
H A Dptrace.h128 #define compat_usr(x) regs[(x)]
129 #define compat_fp regs[11]
130 #define compat_sp regs[13]
131 #define compat_lr regs[14]
132 #define compat_sp_hyp regs[15]
133 #define compat_lr_irq regs[16]
134 #define compat_sp_irq regs[17]
135 #define compat_lr_svc regs[18]
136 #define compat_sp_svc regs[19]
137 #define compat_lr_abt regs[20]
[all …]
H A Dexception.h29 asmlinkage void __noreturn handle_bad_stack(struct pt_regs *regs);
31 asmlinkage void el1t_64_sync_handler(struct pt_regs *regs);
32 asmlinkage void el1t_64_irq_handler(struct pt_regs *regs);
33 asmlinkage void el1t_64_fiq_handler(struct pt_regs *regs);
34 asmlinkage void el1t_64_error_handler(struct pt_regs *regs);
36 asmlinkage void el1h_64_sync_handler(struct pt_regs *regs);
37 asmlinkage void el1h_64_irq_handler(struct pt_regs *regs);
38 asmlinkage void el1h_64_fiq_handler(struct pt_regs *regs);
39 asmlinkage void el1h_64_error_handler(struct pt_regs *regs);
41 asmlinkage void el0t_64_sync_handler(struct pt_regs *regs);
[all …]
/openbmc/linux/tools/testing/selftests/kvm/lib/riscv/
H A Dprocessor.c212 vcpu_get_reg(vcpu, RISCV_CORE_REG(regs.pc), &core.regs.pc); in vcpu_arch_dump()
213 vcpu_get_reg(vcpu, RISCV_CORE_REG(regs.ra), &core.regs.ra); in vcpu_arch_dump()
214 vcpu_get_reg(vcpu, RISCV_CORE_REG(regs.sp), &core.regs.sp); in vcpu_arch_dump()
215 vcpu_get_reg(vcpu, RISCV_CORE_REG(regs.gp), &core.regs.gp); in vcpu_arch_dump()
216 vcpu_get_reg(vcpu, RISCV_CORE_REG(regs.tp), &core.regs.tp); in vcpu_arch_dump()
217 vcpu_get_reg(vcpu, RISCV_CORE_REG(regs.t0), &core.regs.t0); in vcpu_arch_dump()
218 vcpu_get_reg(vcpu, RISCV_CORE_REG(regs.t1), &core.regs.t1); in vcpu_arch_dump()
219 vcpu_get_reg(vcpu, RISCV_CORE_REG(regs.t2), &core.regs.t2); in vcpu_arch_dump()
220 vcpu_get_reg(vcpu, RISCV_CORE_REG(regs.s0), &core.regs.s0); in vcpu_arch_dump()
221 vcpu_get_reg(vcpu, RISCV_CORE_REG(regs.s1), &core.regs.s1); in vcpu_arch_dump()
[all …]
/openbmc/linux/arch/sh/kernel/
H A Dsignal_32.c90 struct pt_regs *regs) in save_sigcontext_fpu() argument
108 unlazy_fpu(tsk, regs); in save_sigcontext_fpu()
115 restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, int *r0_p) in restore_sigcontext() argument
118 unsigned int sr = regs->sr & ~SR_USER_MASK; in restore_sigcontext()
120 #define COPY(x) err |= __get_user(regs->x, &sc->sc_##x) in restore_sigcontext()
121 COPY(regs[1]); in restore_sigcontext()
122 COPY(regs[2]); COPY(regs[3]); in restore_sigcontext()
123 COPY(regs[4]); COPY(regs[5]); in restore_sigcontext()
124 COPY(regs[6]); COPY(regs[7]); in restore_sigcontext()
125 COPY(regs[8]); COPY(regs[9]); in restore_sigcontext()
[all …]
/openbmc/qemu/bsd-user/x86_64/
H A Dtarget_arch_reg.h61 static inline void target_copy_regs(target_reg_t *regs, const CPUX86State *env) in target_copy_regs() argument
64 regs->r_r15 = env->regs[15]; in target_copy_regs()
65 regs->r_r14 = env->regs[14]; in target_copy_regs()
66 regs->r_r13 = env->regs[13]; in target_copy_regs()
67 regs->r_r12 = env->regs[12]; in target_copy_regs()
68 regs->r_r11 = env->regs[11]; in target_copy_regs()
69 regs->r_r10 = env->regs[10]; in target_copy_regs()
70 regs->r_r9 = env->regs[9]; in target_copy_regs()
71 regs->r_r8 = env->regs[8]; in target_copy_regs()
72 regs->r_rdi = env->regs[R_EDI]; in target_copy_regs()
[all …]
/openbmc/qemu/hw/display/
H A Dati_2d.c29 switch (s->regs.dp_datatype & 0xf) { in ati_bpp_from_datatype()
41 s->regs.dp_datatype & 0xf); in ati_bpp_from_datatype()
46 #define DEFAULT_CNTL (s->regs.dp_gui_master_cntl & GMC_DST_PITCH_OFFSET_CNTL)
56 (s->regs.dp_mix & GMC_ROP3_MASK) >> 16); in ati_2d_blt()
57 unsigned dst_x = (s->regs.dp_cntl & DST_X_LEFT_TO_RIGHT ? in ati_2d_blt()
58 s->regs.dst_x : s->regs.dst_x + 1 - s->regs.dst_width); in ati_2d_blt()
59 unsigned dst_y = (s->regs.dp_cntl & DST_Y_TOP_TO_BOTTOM ? in ati_2d_blt()
60 s->regs.dst_y : s->regs.dst_y + 1 - s->regs.dst_height); in ati_2d_blt()
66 int dst_stride = DEFAULT_CNTL ? s->regs.dst_pitch : s->regs.default_pitch; in ati_2d_blt()
72 s->regs.dst_offset : s->regs.default_offset); in ati_2d_blt()
[all …]
/openbmc/linux/tools/testing/selftests/x86/
H A Dptrace_syscall.c53 * Helper to invoke int80 with controlled regs and capture the final regs.
75 * controlled regs and capture the final regs. This is so nasty that it
152 printf("[FAIL]\tgetpid() failed to preserve regs\n"); in test_sys32_regs()
155 printf("[OK]\tgetpid() preserves regs\n"); in test_sys32_regs()
167 printf("[FAIL]\tkill(getpid(), SIGUSR1) failed to preserve regs\n"); in test_sys32_regs()
170 printf("[OK]\tkill(getpid(), SIGUSR1) preserves regs\n"); in test_sys32_regs()
201 struct user_regs_struct regs; in test_ptrace_syscall_restart() local
208 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
211 if (regs.user_syscall_nr != SYS_gettid || in test_ptrace_syscall_restart()
212 regs.user_arg0 != 10 || regs.user_arg1 != 11 || in test_ptrace_syscall_restart()
[all …]
/openbmc/qemu/bsd-user/riscv/
H A Dsignal.c28 set_sigtramp_args(CPURISCVState *regs, int sig, struct target_sigframe *frame, in set_sigtramp_args() argument
41 regs->gpr[xA0] = sig; in set_sigtramp_args()
42 regs->gpr[xA1] = frame_addr + in set_sigtramp_args()
44 regs->gpr[xA2] = frame_addr + in set_sigtramp_args()
46 regs->pc = ka->_sa_handler; in set_sigtramp_args()
47 regs->gpr[xSP] = frame_addr; in set_sigtramp_args()
48 regs->gpr[xRA] = TARGET_PS_STRINGS - TARGET_SZSIGCODE; in set_sigtramp_args()
69 abi_long get_mcontext(CPURISCVState *regs, target_mcontext_t *mcp, in get_mcontext() argument
73 mcp->mc_gpregs.gp_t[0] = tswap64(regs->gpr[5]); in get_mcontext()
74 mcp->mc_gpregs.gp_t[1] = tswap64(regs->gpr[6]); in get_mcontext()
[all …]

12345678910>>...183