Date: Wed, 25 Jan 2017 00:49:18 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ppc@FreeBSD.org Subject: [Bug 205458] 11.0-CURRENT/10-STABLE powerpc64: a PowerMac G5 specific sys/powerpc/ofw/ofw_machdep.c change for reliable PowerMac G5 booting (with lots of RAM) Message-ID: <bug-205458-21-br80ld2cCr@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-205458-21@https.bugs.freebsd.org/bugzilla/> References: <bug-205458-21@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205458 --- Comment #12 from Mark Millard <markmi@dsl-only.net> --- Comment on attachment 179258 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179258 Corrected test patch As for the result of the corrected test patch. . . It appears that: static __inline void ofw_sprg_prepare(void) . . . static __inline void ofw_sprg_restore(void) . . . are only defined under an earlier: #ifdef AIM extern register_t ofmsr[5]; extern void *openfirmware_entry; char save_trap_init[0x2f00]; /* EXC_LAST */ char save_trap_of[0x2f00]; /* EXC_LAST */ int ofwcall(void *); static int openfirmware(void *args); . . . (ofw_sprg_<?>'s defined in here) . . . #ifndef __powerpc64__ __asm __volatile("mtsprg0 %0" :: "r"(ofw_sprg0_save)); #endif } #endif (Matching the ifdef AIM if I checked right.) But of following parts are outside any AIM definition requirement: static int openfirmware_core(void *args) { . . . ofw_sprg_prepare(); . . . ofw_sprg_restore(); . . . } So without AIM defined the code looks like it would not compile. (I have AIM defined for my context.) --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205458-21-br80ld2cCr>