summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/unaligned.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-03-25 23:40:36 +0000
committer <ralf@linux-mips.org>1997-03-25 23:40:36 +0000
commit7206675c40394c78a90e74812bbdbf8cf3cca1be (patch)
tree251895cf5a0008e2b4ce438cb01ad4d55fb5b97b /arch/mips/kernel/unaligned.c
parentbeb116954b9b7f3bb56412b2494b562f02b864b1 (diff)
Import of Linux/MIPS 2.1.14.2
Diffstat (limited to 'arch/mips/kernel/unaligned.c')
-rw-r--r--arch/mips/kernel/unaligned.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/mips/kernel/unaligned.c b/arch/mips/kernel/unaligned.c
index 8bf2ad9b7..ba3a612fa 100644
--- a/arch/mips/kernel/unaligned.c
+++ b/arch/mips/kernel/unaligned.c
@@ -96,6 +96,8 @@
#define STR(x) __STR(x)
#define __STR(x) #x
+typedef unsigned long register_t;
+
/*
* User code may only access USEG; kernel code may access the
* entire address space.
@@ -104,11 +106,11 @@
if ((long)(~(pc) & ((a) | ((a)+(s)))) < 0) \
goto sigbus;
-static __inline__ void
+static inline void
emulate_load_store_insn(struct pt_regs *regs, unsigned long addr, unsigned long pc)
{
union mips_instruction insn;
- __register_t value;
+ register_t value;
regs->regs[0] = 0;
/*
@@ -369,7 +371,7 @@ sigbus:
unsigned long unaligned_instructions;
-static __inline__ void
+static inline void
fix_ade(struct pt_regs *regs, unsigned long pc)
{
/*
@@ -400,8 +402,8 @@ fix_ade(struct pt_regs *regs, unsigned long pc)
asmlinkage void
do_ade(struct pt_regs *regs)
{
- __register_t pc = regs->cp0_epc;
- __register_t badvaddr __attribute__ ((unused)) = regs->cp0_badvaddr;
+ register_t pc = regs->cp0_epc;
+ register_t badvaddr __attribute__ ((unused)) = regs->cp0_badvaddr;
char *adels;
adels = (((regs->cp0_cause & CAUSEF_EXCCODE) >>
@@ -426,7 +428,7 @@ do_ade(struct pt_regs *regs)
#ifdef CONF_LOG_UNALIGNED_ACCESSES
if (current->tss.mflags & MF_LOGADE) {
- __register_t logpc = pc;
+ register_t logpc = pc;
if (regs->cp0_cause & CAUSEF_BD)
logpc += 4;
#ifdef __mips64