kill ptrace stuff; it's common to all m68k machines now
This commit is contained in:
parent
f5d2568734
commit
03e5891644
|
@ -1168,48 +1168,3 @@ sysarch(p, uap, retval)
|
|||
{
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
/*
|
||||
* The registers are in the frame; the frame is in the user area of
|
||||
* the process in question; when the process is active, the registers
|
||||
* are in "the kernel stack"; when it's not, they're still there, but
|
||||
* things get flipped around. So, since p->p_regs is the whole address
|
||||
* of the register set, take its offset from the kernel stack, and
|
||||
* index into the user block. Don't you just *love* virtual memory?
|
||||
* (I'm starting to think seymour is right...)
|
||||
*/
|
||||
int
|
||||
ptrace_set_pc (struct proc *p, unsigned int addr)
|
||||
{
|
||||
p->p_regs[PC] = addr;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
ptrace_single_step (struct proc *p)
|
||||
{
|
||||
struct pcb *pcb;
|
||||
void *regs = (char*)p->p_addr +
|
||||
((char*) p->p_regs - (char*) USRSTACK);
|
||||
|
||||
pcb = &p->p_addr->u_pcb;
|
||||
|
||||
pcb->pcb_ps |= PSL_T;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Copy the registers to user-space. This is tedious because
|
||||
* we essentially duplicate code for trapframe and syscframe. *sigh*
|
||||
*/
|
||||
int
|
||||
ptrace_getregs (struct proc *p, unsigned int *addr)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
ptrace_setregs (struct proc *p, unsigned int *addr)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue