Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / arch / ppc / syslib / btext.c
index e3f9e8e..12fa83e 100644 (file)
@@ -53,8 +53,8 @@ extern char *klimit;
  * chrp only uses it during early boot.
  */
 #ifdef CONFIG_XMON
-#define BTEXT  __pmac
-#define BTDATA __pmacdata
+#define BTEXT
+#define BTDATA
 #else
 #define BTEXT  __init
 #define BTDATA __initdata
@@ -137,7 +137,7 @@ btext_prepare_BAT(void)
                boot_text_mapped = 0;
                return;
        }
-       if (PVR_VER(mfspr(PVR)) != 1) {
+       if (PVR_VER(mfspr(SPRN_PVR)) != 1) {
                /* 603, 604, G3, G4, ... */
                lowbits = addr & ~0xFF000000UL;
                addr &= 0xFF000000UL;
@@ -187,7 +187,7 @@ btext_setup_display(int width, int height, int depth, int pitch,
  *    changes.
  */
 
-void __openfirmware
+void
 map_boot_text(void)
 {
        unsigned long base, offset, size;