Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2013 04:32:06 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256493 - head/sys/mips/mips
Message-ID:  <201310150432.r9F4W6Ch090036@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Tue Oct 15 04:32:06 2013
New Revision: 256493
URL: http://svnweb.freebsd.org/changeset/base/256493

Log:
  Move DO_AST into pcb.h where it should have been all along. Move some
  common macros for saving/restoring registers into pcb.h as well.
  
  Reviewed by:	jmallet@

Modified:
  head/sys/mips/mips/exception.S
  head/sys/mips/mips/swtch.S

Modified: head/sys/mips/mips/exception.S
==============================================================================
--- head/sys/mips/mips/exception.S	Tue Oct 15 03:55:42 2013	(r256492)
+++ head/sys/mips/mips/exception.S	Tue Oct 15 04:32:06 2013	(r256493)
@@ -61,6 +61,7 @@
 #include <machine/regnum.h>
 #include <machine/cpuregs.h>
 #include <machine/pte.h>
+#include <machine/pcb.h>
 
 #include "assym.s"
 
@@ -411,12 +412,6 @@ NNON_LEAF(MipsKernGenException, KERN_EXC
 END(MipsKernGenException)
 
 
-#define	SAVE_U_PCB_REG(reg, offs, base) \
-	REG_S	reg, U_PCB_REGS + (SZREG * offs) (base)
-
-#define	RESTORE_U_PCB_REG(reg, offs, base) \
-	REG_L	reg, U_PCB_REGS + (SZREG * offs) (base)
-
 /*----------------------------------------------------------------------------
  *
  * MipsUserGenException --

Modified: head/sys/mips/mips/swtch.S
==============================================================================
--- head/sys/mips/mips/swtch.S	Tue Oct 15 03:55:42 2013	(r256492)
+++ head/sys/mips/mips/swtch.S	Tue Oct 15 04:32:06 2013	(r256493)
@@ -68,31 +68,6 @@
 
 	.set	noreorder			# Noreorder is default style!
 
-#define	SAVE_U_PCB_REG(reg, offs, base) \
-	REG_S	reg, U_PCB_REGS + (SZREG * offs) (base)
-
-#define	RESTORE_U_PCB_REG(reg, offs, base) \
-	REG_L	reg, U_PCB_REGS + (SZREG * offs) (base)
-
-#define	SAVE_U_PCB_FPREG(reg, offs, base) \
-	FP_S	reg, U_PCB_FPREGS + (SZFPREG * offs) (base)
-
-#define	RESTORE_U_PCB_FPREG(reg, offs, base) \
-	FP_L	reg, U_PCB_FPREGS + (SZFPREG * offs) (base)
-
-#define	SAVE_U_PCB_FPSR(reg, offs, base) \
-	REG_S	reg, U_PCB_FPREGS + (SZFPREG * offs) (base)
-
-#define	RESTORE_U_PCB_FPSR(reg, offs, base) \
-	REG_L	reg, U_PCB_FPREGS + (SZFPREG * offs) (base)
-
-#define	SAVE_U_PCB_CONTEXT(reg, offs, base) \
-	REG_S	reg, U_PCB_CONTEXT + (SZREG * offs) (base)
-
-#define	RESTORE_U_PCB_CONTEXT(reg, offs, base) \
-	REG_L	reg, U_PCB_CONTEXT + (SZREG * offs) (base)
-
-
 /*
  * Setup for and return to user.
  */



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