Date: Wed, 19 Mar 2014 22:13:25 -0700 From: Justin Hibbits <chmeeedalf@gmail.com> To: FreeBSD PowerPC ML <freebsd-ppc@freebsd.org> Subject: set_mcontext()/grab_mcontext() Message-ID: <20140319221325.13f4b7c2@zhabar.att.net>
next in thread | raw e-mail | index | archive | help
Running into problems with X exiting during a sigreturn(2) on my G4 PowerBooks, it seems sometimes bit 10 is set in the mc_srr1 field, which, from the documentation, can only be set by hardware on an external interrupt. Looking at the references closer, bits 1-4, 10-15 (ppc32), also numbered as bits 33-36, 42-47 (ppc64) are for exception-specific information only. I'm wondering if it makes sense to mask these off when setting and getting the context, as those bits are useless upon an rfi. I know this is probably simply a band-aid for possible corruption in X, but to me it makes sense, as the context data is useful only when entering the interrupt context, not when context is restored (bits are localized, not restored to MSR). - Justin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140319221325.13f4b7c2>