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>
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
typedef long gpreg_t;
|
||||
typedef void *vaddr_t;
|
||||
|
||||
#define REG_TO_VA (vaddr_t)
|
||||
#define VA_TO_REG (gpreg_t)
|
||||
|
||||
int mips_dsemul(struct pt_regs *regs, mips_instruction ir, gpreg_t cpc);
|
||||
int do_dsemulret(struct pt_regs *xcp);
|
||||
extern int mips_dsemul(struct pt_regs *regs, mips_instruction ir, unsigned long cpc);
|
||||
extern int do_dsemulret(struct pt_regs *xcp);
|
||||
|
||||
/* Instruction which will always cause an address error */
|
||||
#define AdELOAD 0x8c000001 /* lw $0,1($0) */
|
||||
|
Reference in New Issue
Block a user