[Bug 219589] head -r317820 (e.g.); stable/11: TARGET_ARCH=powerpc needs a (somewhat dynamic) variant of powerpc64's 205458 fix if PowerMac G5's are to be supported

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 27 08:29:38 UTC 2017


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

--- Comment #2 from Mark Millard <markmi at dsl-only.net> ---
(In reply to Mark Millard from comment #1)

It helps to type all my ()'s. Trying
again, using idiom from elsewhere in
the file:

# 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))
+               __asm __volatile("mtsprg0 %0" :: "r"(ofw_sprg0_save));
 #endif
 }
 #endif

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list