Skip to contentSkip to conversation

Fix compliation with iBook (750FX) 2.6.0-test9

PATCH New Ian Wienand 1 participant 1 message Nov 12, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compliation with iBook (750FX) 2.6.0-test9

Hi,

This change

http://ppc.bkbits.net:8080/linuxppc-2.5-benh/[email protected]?nav=index.html

gave me an error

Error: unsupported relocation against SPRN_HID2

Google tells me this was hit in 2.4 as well when some changes were made. Attached patch makes it work for me.

-i
[email protected]
http://www.gelato.unsw.edu.au

===== include/asm-ppc/reg.h 1.8 vs edited =====

include/asm-ppc/reg.h +1 -0
@@ -177,6 +177,7 @@
 #define HID0_NOPTI	(1<<0)		/* No-op dcbt and dcbst instr. */
 
 #define SPRN_HID1	0x3F1		/* Hardware Implementation Register 1 */
+#define SPRN_HID2	0x3F8		/* Hardware Implementation Register 2 */
 #define HID1_EMCP	(1<<31)		/* 7450 Machine Check Pin Enable */
 #define HID1_PC0	(1<<16)		/* 7450 PLL_CFG[0] */
 #define HID1_PC1	(1<<15)		/* 7450 PLL_CFG[1] */