Home
last modified time | relevance | path

Searched refs:frame_addr (Results 1 – 25 of 35) sorted by relevance

12

/openbmc/qemu/linux-user/sh4/
H A Dsignal.c179 abi_ulong frame_addr; in setup_frame() local
184 frame_addr = get_sigframe(ka, regs->gregs[15], sizeof(*frame)); in setup_frame()
185 trace_user_setup_frame(regs, frame_addr); in setup_frame()
186 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_frame()
205 regs->gregs[15] = frame_addr; in setup_frame()
208 regs->gregs[6] = frame_addr += offsetof(typeof(*frame), sc); in setup_frame()
212 unlock_user_struct(frame, frame_addr, 1); in setup_frame()
216 unlock_user_struct(frame, frame_addr, 1); in setup_frame()
225 abi_ulong frame_addr; in setup_rt_frame() local
230 frame_addr = get_sigframe(ka, regs->gregs[15], sizeof(*frame)); in setup_rt_frame()
[all …]
/openbmc/qemu/linux-user/alpha/
H A Dsignal.c70 abi_ulong frame_addr, target_sigset_t *set) in setup_sigcontext() argument
74 __put_user(on_sig_stack(frame_addr), &sc->sc_onstack); in setup_sigcontext()
128 abi_ulong frame_addr, r26; in setup_frame() local
132 frame_addr = get_sigframe(ka, env, sizeof(*frame)); in setup_frame()
133 trace_user_setup_frame(env, frame_addr); in setup_frame()
134 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_frame()
138 setup_sigcontext(&frame->sc, env, frame_addr, set); in setup_frame()
146 unlock_user_struct(frame, frame_addr, 1); in setup_frame()
158 env->ir[IR_A2] = frame_addr + offsetof(struct target_sigframe, sc); in setup_frame()
159 env->ir[IR_SP] = frame_addr; in setup_frame()
[all …]
/openbmc/qemu/linux-user/mips/
H A Dsignal.c203 abi_ulong frame_addr; in setup_frame() local
206 frame_addr = get_sigframe(ka, regs, sizeof(*frame)); in setup_frame()
207 trace_user_setup_frame(regs, frame_addr); in setup_frame()
208 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_frame()
230 regs->active_tc.gpr[ 6] = frame_addr + offsetof(struct sigframe, sf_sc); in setup_frame()
231 regs->active_tc.gpr[29] = frame_addr; in setup_frame()
238 unlock_user_struct(frame, frame_addr, 1); in setup_frame()
248 abi_ulong frame_addr; in do_sigreturn() local
253 frame_addr = regs->active_tc.gpr[29]; in do_sigreturn()
254 trace_user_do_sigreturn(regs, frame_addr); in do_sigreturn()
[all …]
/openbmc/qemu/linux-user/m68k/
H A Dsignal.c130 abi_ulong frame_addr; in setup_frame() local
134 frame_addr = get_sigframe(ka, env, sizeof *frame); in setup_frame()
135 trace_user_setup_frame(env, frame_addr); in setup_frame()
136 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_frame()
142 sc_addr = frame_addr + offsetof(struct target_sigframe, sc); in setup_frame()
154 env->aregs[7] = frame_addr; in setup_frame()
157 unlock_user_struct(frame, frame_addr, 1); in setup_frame()
278 abi_ulong frame_addr; in setup_rt_frame() local
284 frame_addr = get_sigframe(ka, env, sizeof *frame); in setup_rt_frame()
285 trace_user_setup_rt_frame(env, frame_addr); in setup_rt_frame()
[all …]
/openbmc/qemu/linux-user/s390x/
H A Dsignal.c176 abi_ulong frame_addr; in setup_frame() local
179 frame_addr = get_sigframe(ka, env, sizeof(*frame)); in setup_frame()
180 trace_user_setup_frame(env, frame_addr); in setup_frame()
181 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_frame()
193 __put_user(frame_addr + offsetof(sigframe, sregs), &frame->sc.sregs); in setup_frame()
220 env->regs[15] = frame_addr; in setup_frame()
227 env->regs[3] = frame_addr + offsetof(typeof(*frame), sc); in setup_frame()
237 unlock_user_struct(frame, frame_addr, 1); in setup_frame()
245 abi_ulong frame_addr; in setup_rt_frame() local
249 frame_addr = get_sigframe(ka, env, sizeof *frame); in setup_rt_frame()
[all …]
/openbmc/qemu/linux-user/openrisc/
H A Dsignal.c95 abi_ulong frame_addr; in setup_rt_frame() local
99 frame_addr = get_sigframe(ka, env, sizeof(*frame)); in setup_rt_frame()
100 trace_user_setup_rt_frame(env, frame_addr); in setup_rt_frame()
101 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame()
121 cpu_set_gpr(env, 4, frame_addr + offsetof(target_rt_sigframe, info)); in setup_rt_frame()
122 cpu_set_gpr(env, 5, frame_addr + offsetof(target_rt_sigframe, uc)); in setup_rt_frame()
123 cpu_set_gpr(env, 1, frame_addr); in setup_rt_frame()
133 unlock_user_struct(frame, frame_addr, 1); in setup_rt_frame()
139 abi_ulong frame_addr = get_sp_from_cpustate(env); in do_rt_sigreturn() local
144 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_rt_sigreturn()
[all …]
/openbmc/qemu/linux-user/riscv/
H A Dsignal.c117 abi_ulong frame_addr; in setup_rt_frame() local
120 frame_addr = get_sigframe(ka, env, sizeof(*frame)); in setup_rt_frame()
121 trace_user_setup_rt_frame(env, frame_addr); in setup_rt_frame()
123 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame()
131 env->gpr[xSP] = frame_addr; in setup_rt_frame()
133 env->gpr[xA1] = frame_addr + offsetof(struct target_rt_sigframe, info); in setup_rt_frame()
134 env->gpr[xA2] = frame_addr + offsetof(struct target_rt_sigframe, uc); in setup_rt_frame()
140 unlock_user_struct(frame, frame_addr, 1); in setup_rt_frame()
185 abi_ulong frame_addr; in do_rt_sigreturn() local
187 frame_addr = env->gpr[xSP]; in do_rt_sigreturn()
[all …]
/openbmc/qemu/bsd-user/
H A Dtrace-events4 user_setup_frame(void *env, uint64_t frame_addr) "env=%p frame_addr=0x%"PRIx64
5 user_setup_rt_frame(void *env, uint64_t frame_addr) "env=%p frame_addr=0x%"PRIx64
6 user_do_rt_sigreturn(void *env, uint64_t frame_addr) "env=%p frame_addr=0x%"PRIx64
7 user_do_sigreturn(void *env, uint64_t frame_addr) "env=%p frame_addr=0x%"PRIx64
/openbmc/linux/drivers/net/ethernet/microsoft/mana/
H A Dshm_channel.c144 u64 frame_addr = 0; in mana_smc_setup_hwc() local
187 frame_addr = MANA_PFN(eq_addr); in mana_smc_setup_hwc()
188 *shmem = frame_addr & PAGE_FRAME_L48_MASK; in mana_smc_setup_hwc()
189 all_addr_h4bits |= (frame_addr >> PAGE_FRAME_L48_WIDTH_BITS) << in mana_smc_setup_hwc()
195 frame_addr = MANA_PFN(cq_addr); in mana_smc_setup_hwc()
196 *shmem = frame_addr & PAGE_FRAME_L48_MASK; in mana_smc_setup_hwc()
197 all_addr_h4bits |= (frame_addr >> PAGE_FRAME_L48_WIDTH_BITS) << in mana_smc_setup_hwc()
203 frame_addr = MANA_PFN(rq_addr); in mana_smc_setup_hwc()
204 *shmem = frame_addr & PAGE_FRAME_L48_MASK; in mana_smc_setup_hwc()
205 all_addr_h4bits |= (frame_addr >> PAGE_FRAME_L48_WIDTH_BITS) << in mana_smc_setup_hwc()
[all …]
/openbmc/qemu/linux-user/arm/
H A Dsignal.c325 abi_ulong frame_addr = get_sigframe(ka, regs, sizeof(*frame)); in setup_frame() local
327 trace_user_setup_frame(regs, frame_addr); in setup_frame()
328 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_frame()
334 if (setup_return(regs, ka, usig, frame, frame_addr)) { in setup_frame()
338 unlock_user_struct(frame, frame_addr, 1); in setup_frame()
341 unlock_user_struct(frame, frame_addr, 1); in setup_frame()
350 abi_ulong frame_addr = get_sigframe(ka, env, sizeof(*frame)); in setup_rt_frame() local
353 trace_user_setup_rt_frame(env, frame_addr); in setup_rt_frame()
354 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame()
358 info_addr = frame_addr + offsetof(struct rt_sigframe, info); in setup_rt_frame()
[all …]
/openbmc/qemu/linux-user/loongarch64/
H A Dsignal.c355 abi_ptr frame_addr; in setup_rt_frame() local
358 frame_addr = get_sigframe(ka, env, &extctx); in setup_rt_frame()
359 trace_user_setup_rt_frame(env, frame_addr); in setup_rt_frame()
361 frame = lock_user(VERIFY_WRITE, frame_addr, in setup_rt_frame()
369 extctx.lasx.haddr = (void *)frame + (extctx.lasx.gaddr - frame_addr); in setup_rt_frame()
370 extctx.end.haddr = (void *)frame + (extctx.end.gaddr - frame_addr); in setup_rt_frame()
372 extctx.lsx.haddr = (void *)frame + (extctx.lsx.gaddr - frame_addr); in setup_rt_frame()
373 extctx.end.haddr = (void *)frame + (extctx.end.gaddr - frame_addr); in setup_rt_frame()
375 extctx.fpu.haddr = (void *)frame + (extctx.fpu.gaddr - frame_addr); in setup_rt_frame()
376 extctx.end.haddr = (void *)frame + (extctx.end.gaddr - frame_addr); in setup_rt_frame()
[all …]
/openbmc/qemu/linux-user/xtensa/
H A Dsignal.c158 abi_ulong frame_addr; in setup_rt_frame() local
168 frame_addr = get_sigframe(ka, env, sizeof(*frame)); in setup_rt_frame()
169 trace_user_setup_rt_frame(env, frame_addr); in setup_rt_frame()
182 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame()
194 unlock_user_struct(frame, frame_addr, 0); in setup_rt_frame()
204 unlock_user_struct(frame, frame_addr, 0); in setup_rt_frame()
217 env->regs[1] = frame_addr; in setup_rt_frame()
233 env->regs[base + 3] = frame_addr + offsetof(struct target_rt_sigframe, in setup_rt_frame()
235 env->regs[base + 4] = frame_addr + offsetof(struct target_rt_sigframe, uc); in setup_rt_frame()
239 unlock_user_struct(frame, frame_addr, 1); in setup_rt_frame()
[all …]
/openbmc/qemu/linux-user/
H A Dtrace-events8 user_setup_frame(void *env, uint64_t frame_addr) "env=%p frame_addr=0x%"PRIx64
9 user_setup_rt_frame(void *env, uint64_t frame_addr) "env=%p frame_addr=0x%"PRIx64
10 user_do_rt_sigreturn(void *env, uint64_t frame_addr) "env=%p frame_addr=0x%"PRIx64
11 user_do_sigreturn(void *env, uint64_t frame_addr) "env=%p frame_addr=0x%"PRIx64
/openbmc/qemu/linux-user/i386/
H A Dsignal.c445 abi_ptr frame_addr, fpstate_addr, fxstate_addr, fpend_addr; in setup_frame() local
453 frame_addr = get_sigframe(ka, env, sizeof(struct sigframe), fpkind, in setup_frame()
455 trace_user_setup_frame(env, frame_addr); in setup_frame()
457 total_size = fpend_addr - frame_addr; in setup_frame()
458 frame = lock_user(VERIFY_WRITE, frame_addr, total_size, 0); in setup_frame()
464 fxstate = (void *)frame + (fxstate_addr - frame_addr); in setup_frame()
468 fpstate = (void *)frame + (fpstate_addr - frame_addr); in setup_frame()
487 unlock_user(frame, frame_addr, total_size); in setup_frame()
490 env->regs[R_ESP] = frame_addr; in setup_frame()
513 abi_ptr frame_addr, fpstate_addr, fxstate_addr, fpend_addr; in setup_rt_frame() local
[all …]
/openbmc/qemu/linux-user/microblaze/
H A Dsignal.c140 abi_ulong frame_addr; in setup_rt_frame() local
142 frame_addr = get_sigframe(ka, env, sizeof *frame); in setup_rt_frame()
143 trace_user_setup_rt_frame(env, frame_addr); in setup_rt_frame()
145 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame()
171 env->regs[1] = frame_addr; in setup_rt_frame()
175 env->regs[6] = frame_addr + offsetof(struct target_rt_sigframe, info); in setup_rt_frame()
176 env->regs[7] = frame_addr + offsetof(struct target_rt_sigframe, uc); in setup_rt_frame()
181 unlock_user_struct(frame, frame_addr, 1); in setup_rt_frame()
193 abi_ulong frame_addr = env->regs[1]; in do_rt_sigreturn() local
196 trace_user_do_rt_sigreturn(env, frame_addr); in do_rt_sigreturn()
[all …]
/openbmc/qemu/linux-user/hppa/
H A Dsignal.c114 abi_ulong frame_addr, sp, haddr; in setup_rt_frame() local
123 frame_addr = QEMU_ALIGN_UP(sp, SIGFRAME); in setup_rt_frame()
124 sp = frame_addr + PARISC_RT_SIGFRAME_SIZE32; in setup_rt_frame()
126 trace_user_setup_rt_frame(env, frame_addr); in setup_rt_frame()
128 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame()
144 unlock_user_struct(frame, frame_addr, 1); in setup_rt_frame()
178 abi_ulong frame_addr = env->gr[30] - PARISC_RT_SIGFRAME_SIZE32; in do_rt_sigreturn() local
182 trace_user_do_rt_sigreturn(env, frame_addr); in do_rt_sigreturn()
183 if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { in do_rt_sigreturn()
192 unlock_user_struct(frame, frame_addr, 0); in do_rt_sigreturn()
/openbmc/qemu/bsd-user/arm/
H A Dsignal.c29 abi_ulong frame_addr, in set_sigtramp_args() argument
44 env->regs[1] = frame_addr + in set_sigtramp_args()
46 env->regs[2] = frame_addr + in set_sigtramp_args()
50 env->regs[5] = frame_addr + in set_sigtramp_args()
53 env->regs[TARGET_REG_SP] = frame_addr; in set_sigtramp_args()
63 static abi_long get_vfpcontext(CPUARMState *env, abi_ulong frame_addr, in get_vfpcontext() argument
76 mcp->mc_vfp_ptr = tswap32(frame_addr + ((uintptr_t)vfp - (uintptr_t)frame)); in get_vfpcontext()
129 abi_long setup_sigframe_arch(CPUARMState *env, abi_ulong frame_addr, in setup_sigframe_arch() argument
135 get_vfpcontext(env, frame_addr, frame); in setup_sigframe_arch()
/openbmc/qemu/linux-user/hexagon/
H A Dsignal.c154 abi_ulong frame_addr; in setup_rt_frame() local
157 frame_addr = get_sigframe(ka, env, sizeof(*frame)); in setup_rt_frame()
158 trace_user_setup_rt_frame(env, frame_addr); in setup_rt_frame()
160 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0)) { in setup_rt_frame()
174 env->gpr[HEX_REG_SP] = frame_addr; in setup_rt_frame()
177 frame_addr + offsetof(struct target_rt_sigframe, info); in setup_rt_frame()
179 frame_addr + offsetof(struct target_rt_sigframe, uc); in setup_rt_frame()
185 unlock_user_struct(frame, frame_addr, 1); in setup_rt_frame()
264 abi_ulong frame_addr; in do_rt_sigreturn() local
266 frame_addr = env->gpr[HEX_REG_SP]; in do_rt_sigreturn()
[all …]
/openbmc/qemu/linux-user/aarch64/
H A Dsignal.c575 abi_ulong frame_addr, return_addr; in target_setup_frame() local
625 frame_addr = get_sigframe(ka, env, layout.total_size); in target_setup_frame()
626 trace_user_setup_frame(env, frame_addr); in target_setup_frame()
627 frame = lock_user(VERIFY_WRITE, frame_addr, layout.total_size, 0); in target_setup_frame()
637 frame_addr + layout.extra_base, in target_setup_frame()
659 env->xregs[29] = frame_addr + fr_ofs; in target_setup_frame()
661 env->xregs[31] = frame_addr; in target_setup_frame()
674 env->xregs[1] = frame_addr + offsetof(struct target_rt_sigframe, info); in target_setup_frame()
675 env->xregs[2] = frame_addr + offsetof(struct target_rt_sigframe, uc); in target_setup_frame()
678 unlock_user(frame, frame_addr, layout.total_size); in target_setup_frame()
[all …]
/openbmc/qemu/bsd-user/aarch64/
H A Dsignal.c29 abi_ulong frame_addr, in set_sigtramp_args() argument
43 regs->xregs[1] = frame_addr + in set_sigtramp_args()
45 regs->xregs[2] = frame_addr + in set_sigtramp_args()
49 regs->xregs[TARGET_REG_SP] = frame_addr; in set_sigtramp_args()
89 abi_long setup_sigframe_arch(CPUARMState *env, abi_ulong frame_addr, in setup_sigframe_arch() argument
/openbmc/qemu/bsd-user/riscv/
H A Dsignal.c29 abi_ulong frame_addr, struct target_sigaction *ka) in set_sigtramp_args() argument
42 regs->gpr[xA1] = frame_addr + in set_sigtramp_args()
44 regs->gpr[xA2] = frame_addr + in set_sigtramp_args()
47 regs->gpr[xSP] = frame_addr; in set_sigtramp_args()
56 abi_long setup_sigframe_arch(CPURISCVState *env, abi_ulong frame_addr, in setup_sigframe_arch() argument
/openbmc/qemu/bsd-user/i386/
H A Dsignal.c29 abi_ulong frame_addr, in set_sigtramp_args() argument
40 abi_long setup_sigframe_arch(CPUX86State *env, abi_ulong frame_addr, in setup_sigframe_arch() argument
/openbmc/qemu/bsd-user/x86_64/
H A Dsignal.c27 int sig, struct target_sigframe *frame, abi_ulong frame_addr, in set_sigtramp_args() argument
38 abi_long setup_sigframe_arch(CPUX86State *env, abi_ulong frame_addr, in setup_sigframe_arch() argument
/openbmc/qemu/linux-user/ppc/
H A Dsignal.c431 target_ulong frame_addr, newsp; in setup_frame() local
434 frame_addr = get_sigframe(ka, env, sizeof(*frame)); in setup_frame()
435 trace_user_setup_frame(env, frame_addr); in setup_frame()
436 if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 1)) in setup_frame()
455 newsp = frame_addr - SIGNAL_FRAMESIZE; in setup_frame()
464 env->gpr[4] = frame_addr + offsetof(struct target_sigframe, sctx); in setup_frame()
471 unlock_user_struct(frame, frame_addr, 1); in setup_frame()
475 unlock_user_struct(frame, frame_addr, 1); in setup_frame()
/openbmc/qemu/hw/audio/
H A Des1370.c255 uint32_t frame_addr; member
500 d->frame_addr = val; in es1370_write()
501 trace_es1370_frame_address_wr(d - &s->chan[0], d->frame_addr); in es1370_write()
583 trace_es1370_frame_address_rd(d - &s->chan[0], d->frame_addr); in es1370_read()
584 val = d->frame_addr; in es1370_read()
609 uint32_t addr = d->frame_addr; in es1370_transfer_audio()
772 VMSTATE_UINT32 (frame_addr, struct chan),

12