version 1.18, 2021/05/30 05:40:56 |
version 1.19, 2021/09/23 15:19:03 |
|
|
netbsd32_setregs(struct lwp *l, struct exec_package *pack, vaddr_t stack) |
netbsd32_setregs(struct lwp *l, struct exec_package *pack, vaddr_t stack) |
{ |
{ |
struct proc * const p = l->l_proc; |
struct proc * const p = l->l_proc; |
struct trapframe * const tf = l->l_md.md_utf; |
struct trapframe * const tf = lwp_trapframe(l); |
|
|
netbsd32_adjust_limits(p); |
netbsd32_adjust_limits(p); |
|
|
|
|
netbsd32_process_read_regs(struct lwp *l, struct reg32 *regs) |
netbsd32_process_read_regs(struct lwp *l, struct reg32 *regs) |
{ |
{ |
struct proc * const p = l->l_proc; |
struct proc * const p = l->l_proc; |
struct trapframe *tf = l->l_md.md_utf; |
struct trapframe *tf = lwp_trapframe(l); |
int i; |
int i; |
|
|
if ((p->p_flag & PK_32) == 0) |
if ((p->p_flag & PK_32) == 0) |
|
|
netbsd32_process_write_regs(struct lwp *l, const struct reg32 *regs) |
netbsd32_process_write_regs(struct lwp *l, const struct reg32 *regs) |
{ |
{ |
struct proc * const p = l->l_proc; |
struct proc * const p = l->l_proc; |
struct trapframe *tf = l->l_md.md_utf; |
struct trapframe *tf = lwp_trapframe(l); |
int i; |
int i; |
|
|
if ((p->p_flag & PK_32) == 0) |
if ((p->p_flag & PK_32) == 0) |
Line 305 netbsd32_sendsig_siginfo(const ksiginfo_ |
|
Line 305 netbsd32_sendsig_siginfo(const ksiginfo_ |
|
{ |
{ |
struct lwp * const l = curlwp; |
struct lwp * const l = curlwp; |
struct proc * const p = l->l_proc; |
struct proc * const p = l->l_proc; |
struct trapframe * const tf = l->l_md.md_utf; |
struct trapframe * const tf = lwp_trapframe(l); |
struct sigaltstack * const ss = &l->l_sigstk; |
struct sigaltstack * const ss = &l->l_sigstk; |
const int signo = ksi->ksi_signo; |
const int signo = ksi->ksi_signo; |
const struct sigaction * const sa = &SIGACTION(p, signo); |
const struct sigaction * const sa = &SIGACTION(p, signo); |
Line 434 cpu_mcontext32_validate(struct lwp *l, c |
|
Line 434 cpu_mcontext32_validate(struct lwp *l, c |
|
void |
void |
cpu_getmcontext32(struct lwp *l, mcontext32_t *mcp, unsigned int *flagsp) |
cpu_getmcontext32(struct lwp *l, mcontext32_t *mcp, unsigned int *flagsp) |
{ |
{ |
struct trapframe * const tf = l->l_md.md_utf; |
struct trapframe * const tf = lwp_trapframe(l); |
__greg32_t *gr = mcp->__gregs; |
__greg32_t *gr = mcp->__gregs; |
__greg32_t ras_pc; |
__greg32_t ras_pc; |
|
|
Line 498 cpu_getmcontext32(struct lwp *l, mcontex |
|
Line 498 cpu_getmcontext32(struct lwp *l, mcontex |
|
int |
int |
cpu_setmcontext32(struct lwp *l, const mcontext32_t *mcp, unsigned int flags) |
cpu_setmcontext32(struct lwp *l, const mcontext32_t *mcp, unsigned int flags) |
{ |
{ |
struct trapframe * const tf = l->l_md.md_utf; |
struct trapframe * const tf = lwp_trapframe(l); |
const __greg32_t * const gr = mcp->__gregs; |
const __greg32_t * const gr = mcp->__gregs; |
struct proc * const p = l->l_proc; |
struct proc * const p = l->l_proc; |
int error, i, j; |
int error, i, j; |