Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jan 2008 03:45:16 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 132364 for review
Message-ID:  <200801030345.m033jGqG042251@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132364

Change 132364 by imp@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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801030345.m033jGqG042251>