PERFORCE change 132364 for review
Warner Losh
imp at FreeBSD.org
Wed Jan 2 19:45:18 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=132364
Change 132364 by imp at imp_paco-paco on 2008/01/03 03:44:50
Get stack_machdep.c building. This was never in the jnpr port,
so we needed to translate the differing trapframe format between
that port and the mips2 port.
Affected files ...
.. //depot/projects/mips2-jnpr/src/sys/mips/mips/stack_machdep.c#2 edit
Differences ...
==== //depot/projects/mips2-jnpr/src/sys/mips/mips/stack_machdep.c#2 (text+ko) ====
@@ -27,6 +27,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <sys/types.h>
#include <sys/systm.h>
#include <sys/param.h>
#include <sys/proc.h>
@@ -38,8 +39,6 @@
#include <machine/pcb.h>
#include <machine/regnum.h>
-extern char btext[];
-
static u_register_t
stack_register_fetch(u_register_t sp, u_register_t stack_pos)
{
@@ -135,8 +134,8 @@
if (TD_IS_RUNNING(td))
panic("stack_save_td: running");
- pc = td->td_pcb->pcb_regs[PCB_REG_PC];
- sp = td->td_pcb->pcb_regs[PCB_REG_SP];
+ pc = td->td_pcb->pcb_regs.pc;
+ sp = td->td_pcb->pcb_regs.sp;
stack_capture(st, pc, sp);
}
@@ -148,7 +147,7 @@
if (curthread == NULL)
panic("stack_save: curthread == NULL)");
- pc = curthread->td_pcb->pcb_regs[PCB_REG_PC];
- sp = curthread->td_pcb->pcb_regs[PCB_REG_SP];
+ pc = curthread->td_pcb->pcb_regs.pc;
+ sp = curthread->td_pcb->pcb_regs.sp;
stack_capture(st, pc, sp);
}
More information about the p4-projects
mailing list