Skip to contentSkip to conversation

wrong EF_CP0_CAUSE offset

PATCH In review Jun Sun 2 participants 2 messages Nov 8, 2001 – Nov 11, 2001 MIPS

lore
Share & tools
lore

Jun Sun

author
#0 lore raw

PATCH 1/1 wrong EF_CP0_CAUSE offset

reg.h has the wrong offset EF_CP0_CAUSE and the wrong pt_regs size.

This seems to be a problem only for mips (32bit) tree.

Drow found this bug, BTW.

Jun

include/asm-mips/reg.h renamed from include/asm-mips/reg.h.orig +2 -2
diff -Nru linux/include/asm-mips/reg.h.orig linux/include/asm-mips/reg.h
@@ -59,8 +59,8 @@
 #define EF_CP0_EPC		40
 #define EF_CP0_BADVADDR		41
 #define EF_CP0_STATUS		42
-#define EF_CP0_CAUSE		44
+#define EF_CP0_CAUSE		43
 
-#define EF_SIZE			180	/* size in bytes */
+#define EF_SIZE			176	/* size in bytes */
 
 #endif /* __ASM_MIPS_REG_H */
#1 lore raw
Quoted 5 lines · Jun Sun

reg.h has the wrong offset EF_CP0_CAUSE and the wrong pt_regs size.

This seems to be a problem only for mips (32bit) tree.

Drow found this bug, BTW.

Thanks, patch applied to both 2.2 and 2.4. Fortunately the consequences of this bug should hardly bite any user.

Ralf