diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-02-28 12:55:57 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:30:46 -0400 |
commit | 333d1f6794b341df11f286f5dca123c6dc64a770 (patch) | |
tree | 65218399e74b00d17e1b86b2086d781866028d85 /arch/mips/math-emu/dsemul.h | |
parent | 0bd5d2e9ec8cc04a0225c590d35dd097e6b3a3f6 (diff) |
Gross macro abuse. Get rid of gpreg_t, vaddr_t, REG_TO_VA and
VA_TO_REG. Who ever wrote this apparently did enjoy the C Puzzle Book.
ISBN 0201604612, a little old but still fun reading for the next
blackout ;)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/dsemul.h')
-rw-r--r-- | arch/mips/math-emu/dsemul.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/mips/math-emu/dsemul.h b/arch/mips/math-emu/dsemul.h index dbd85f95268d..091f0e76730f 100644 --- a/arch/mips/math-emu/dsemul.h +++ b/arch/mips/math-emu/dsemul.h | |||
@@ -1,11 +1,5 @@ | |||
1 | typedef long gpreg_t; | 1 | extern int mips_dsemul(struct pt_regs *regs, mips_instruction ir, unsigned long cpc); |
2 | typedef void *vaddr_t; | 2 | extern int do_dsemulret(struct pt_regs *xcp); |
3 | |||
4 | #define REG_TO_VA (vaddr_t) | ||
5 | #define VA_TO_REG (gpreg_t) | ||
6 | |||
7 | int mips_dsemul(struct pt_regs *regs, mips_instruction ir, gpreg_t cpc); | ||
8 | int do_dsemulret(struct pt_regs *xcp); | ||
9 | 3 | ||
10 | /* Instruction which will always cause an address error */ | 4 | /* Instruction which will always cause an address error */ |
11 | #define AdELOAD 0x8c000001 /* lw $0,1($0) */ | 5 | #define AdELOAD 0x8c000001 /* lw $0,1($0) */ |