Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Feb 2007 21:29:28 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 113862 for review
Message-ID:  <200702012129.l11LTSmB033792@repoman.freebsd.org>

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

Change 113862 by gonzo@gonzo_jeeves on 2007/02/01 21:28:41

	o Add storage space for $gp and $fp(AKA $s8) to trapframe struct
	o Add storage space for $gp to pcb
	o Add correspondent entries to genassym

Affected files ...

.. //depot/projects/mips2/src/sys/mips/include/frame.h#5 edit
.. //depot/projects/mips2/src/sys/mips/include/pcb.h#5 edit
.. //depot/projects/mips2/src/sys/mips/mips/genassym.c#6 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/include/frame.h#5 (text+ko) ====

@@ -74,9 +74,11 @@
 #define	TF_MULHI	28
 #define	TF_EPC		29		/* may be changed by trap() call */
 
-#define	TF_SP		30
+#define	TF_S8		30
+#define	TF_SP		31
+#define	TF_GP		32
 
-#define	TF_NREGS	31
+#define	TF_NREGS	33
 
 /* Needs to be 8-byte aligned */
 struct trapframe {

==== //depot/projects/mips2/src/sys/mips/include/pcb.h#5 (text+ko) ====

@@ -35,7 +35,7 @@
  */
 struct pcb {
 	caddr_t		pcb_onfault;
-	__register_t	pcb_regs[13];
+	__register_t	pcb_regs[14];
 };
 
 #define	PCB_REG_S0	(0)
@@ -51,6 +51,7 @@
 #define	PCB_REG_SR	(10)
 #define	PCB_REG_RA	(11)
 #define	PCB_REG_PC	(12)
+#define	PCB_REG_GP	(13)
 
 #ifdef _KERNEL
 #define	PCB_FSR(pcb)	(0)

==== //depot/projects/mips2/src/sys/mips/mips/genassym.c#6 (text+ko) ====

@@ -157,6 +157,7 @@
 ASSYM(TF_REG_MULHI, offsetof(struct trapframe, tf_regs[TF_MULHI]));
 ASSYM(TF_REG_EPC, offsetof(struct trapframe, tf_regs[TF_EPC]));
 ASSYM(TF_REG_SP, offsetof(struct trapframe, tf_regs[TF_SP]));
+ASSYM(TF_REG_GP, offsetof(struct trapframe, tf_regs[TF_GP]));
 
 ASSYM(TF_REG_S0, offsetof(struct trapframe, tf_regs[TF_S0]));
 ASSYM(TF_REG_S1, offsetof(struct trapframe, tf_regs[TF_S1]));
@@ -166,6 +167,7 @@
 ASSYM(TF_REG_S5, offsetof(struct trapframe, tf_regs[TF_S5]));
 ASSYM(TF_REG_S6, offsetof(struct trapframe, tf_regs[TF_S6]));
 ASSYM(TF_REG_S7, offsetof(struct trapframe, tf_regs[TF_S7]));
+ASSYM(TF_REG_S8, offsetof(struct trapframe, tf_regs[TF_S8]));
 
 ASSYM(TF_PPL, offsetof(struct trapframe, tf_ppl));
 
@@ -181,6 +183,7 @@
 ASSYM(PCB_REG_SP, offsetof(struct pcb, pcb_regs[PCB_REG_SP]));
 ASSYM(PCB_REG_SR, offsetof(struct pcb, pcb_regs[PCB_REG_SR]));
 ASSYM(PCB_REG_RA, offsetof(struct pcb, pcb_regs[PCB_REG_RA]));
+ASSYM(PCB_REG_GP, offsetof(struct pcb, pcb_regs[PCB_REG_GP]));
 
 ASSYM(VM_MIN_ADDRESS, VM_MIN_ADDRESS);
 ASSYM(VM_MAXUSER_ADDRESS, VM_MAXUSER_ADDRESS);



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