svn commit: r256493 - head/sys/mips/mips
Warner Losh
imp at FreeBSD.org
Tue Oct 15 04:32:07 UTC 2013
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.
*/
More information about the svn-src-all
mailing list