From owner-freebsd-ppc Mon Jan 28 16: 0:23 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from mail.jeamland.net (rafe.jeamland.net [203.18.243.114]) by hub.freebsd.org (Postfix) with ESMTP id 0784837B419 for ; Mon, 28 Jan 2002 16:00:17 -0800 (PST) Received: from [192.168.9.151] (rtr1.snc.schools.net.au [203.2.135.22]) by mail.jeamland.net (Postfix) with ESMTP id AEC0A70617; Tue, 29 Jan 2002 11:00:10 +1100 (EST) Subject: Re: compiler problems? From: Benno Rice To: Andrew Gallatin Cc: freebsd-ppc@freebsd.org In-Reply-To: <15441.44292.152925.217766@grasshopper.cs.duke.edu> References: <15441.43775.191953.219307@grasshopper.cs.duke.edu> <001401c1a5d2$d96bcb40$03e2cbd8@server> <15441.44292.152925.217766@grasshopper.cs.duke.edu> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-QfWRbqz+8qKOmCvZOXah" X-Mailer: Evolution/1.0.1 Date: 29 Jan 2002 12:23:07 +1200 Message-Id: <1012263788.366.3.camel@ratchet.jeamland.net> Mime-Version: 1.0 Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-QfWRbqz+8qKOmCvZOXah Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2002-01-26 at 07:07, Andrew Gallatin wrote: >=20 > Server Admin writes: > > Is CRITICAL_FORK defined in the scope of that function ? I'm not fami= liar > > with the code, but I figured that might be a possibility. > >=20 >=20 > Ah.. Duh! Thanks for making me hunt down the define of CRITICAL_FORK. > I was assuming it was constant & gcc was complaining about assigning > into td->td_savecrit. But CRITICAL_FORK is defined like this: >=20 > cpufunc.h:#define CRITICAL_FORK (mfmsr() |=3D PSL_EE) >=20 > And gcc is correctly complaining about |=3D'ing a function return. >=20 > Now I need to learn something about ppc so I know what the heck > mfmsr is ;) mfmsr stands for Move From Machine Status Register. PSL_EE is a constant that represents the Exception Enable bit in the Machine Status Register. That bit's used for enabling things like external interrupts, so what that's doing is returning the current MSR state but with interrupts enabled. Thanks for finding that one by the way. =3D) --=20 Benno Rice benno@FreeBSD.org --=-QfWRbqz+8qKOmCvZOXah Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEABECAAYFAjxV62sACgkQXjRwWofFmQnJAgCeOwNoCShma9FHfVY3JKmpKbj2 in0An1AxoDH4BG5WzRHPUO+pTXnPq61m =bRN2 -----END PGP SIGNATURE----- --=-QfWRbqz+8qKOmCvZOXah-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message