--- Begin Message ---
Philippe Gerum kirjoitti:
Heikki Lindholm wrote:

Hello,
There is a problem in Fusion (PPC) that enabling ALTIVEC triggers. The problem is that fusion uses _switch from Linux, which expects to have "current" task (r2) in valid state. If I'm not horribly mistaken --- also an option, I know next to nothing about Fusion --- "current" is not valid when in other domains than root(=Linux). The attached patch should fix the problem.


Ah. Ok, I definitely thought that r2 would not be altered while switching domains. I'm going to test this patch asap (likely tomorrow) and let you know of the outcome here. Thanks.

I didn't care trace exactly where r2 gets toasted, I'd guess the first domain switch. I thought of this more generally: in a domain other than Linux, r2 could be anything, so don't trust it there. One could, of course, copy _switch function over to fusion and take out r2 references, but that doesn't seem like worth the effort.

-- Heikki Lindholm


--- End Message ---

Reply via email to