https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219589

--- Comment #1 from Mark Millard <[email protected]> ---
(In reply to Mark Millard from comment #0)

I expect that the following patch would
fix the problem:

# svnlite diff /usr/src/sys/powerpc/ofw/ofw_machdep.c
Index: /usr/src/sys/powerpc/ofw/ofw_machdep.c
===================================================================
--- /usr/src/sys/powerpc/ofw/ofw_machdep.c      (revision 317820)
+++ /usr/src/sys/powerpc/ofw/ofw_machdep.c      (working copy)
@@ -147,7 +147,8 @@
         * PCPU data cannot be used until this routine is called !
         */
 #ifndef __powerpc64__
-       __asm __volatile("mtsprg0 %0" :: "r"(ofw_sprg0_save));
+       if (cpu_features & PPC_FEATURE_64 != PPC_FEATURE_64)
+               __asm __volatile("mtsprg0 %0" :: "r"(ofw_sprg0_save));
 #endif
 }
 #endif

This is based oncpu_features already having had
PPC_FEATURE_64 masked in before this if things
are running on a PowerMac G5 or other powerpc64.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to