All of lore.kernel.org
 help / color / mirror / Atom feed
* [Adeos-main] ppc64 switch_domain problem
@ 2005-03-08 17:27 Reynolds, Terry (Contractor-SIMTECH)
  2005-03-08 17:54 ` Philippe Gerum
  0 siblings, 1 reply; 3+ messages in thread
From: Reynolds, Terry (Contractor-SIMTECH) @ 2005-03-08 17:27 UTC (permalink / raw)
  To: adeos-main

Hi All,
 
Are there any ppc64 gurus lurking out there?  My port to ppc64 has a severe problem.  When attempting to register a new domain, as in the RTAI testsuite's latency example, the switch to the new domain fails on the branch to rthal_domain_entry.  It suffers an "unrecoverable FP unavailable exception 800 at 0xd0000..." which is the location of the attr.entry for the link to that function.
 
The code has no floating point code in it, so it must be pulling up some garbage instruction that isn't actually at that location.  I made a new function rthal_domain_entry2 which is included in the kernel, it's in the same file as the __adeos_init_domain function (/adeos/ppc64.c for my port).  It's address is a kernel code 'like' 0xc0000...  The switch domain to that function works fine!
 
I think the branch to lr works for the kernel address, but not the loaded module one because of some problem with the SLB.  The ppc64 _switch function does modify the memory management hardware if the ESID is different for the task being switched to.
 
Anyone have an idea on how to correct this problem?
 
 
TIA!
 
Terry Reynolds.
 
 


^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: [Adeos-main] ppc64 switch_domain problem
@ 2005-03-08 19:01 Reynolds, Terry (Contractor-SIMTECH)
  0 siblings, 0 replies; 3+ messages in thread
From: Reynolds, Terry (Contractor-SIMTECH) @ 2005-03-08 19:01 UTC (permalink / raw)
  To: adeos-main

I don't think the stack is the problem, the same stack is used for both the case that works and the one that doesn't!  I only changed the attr.entry function pointer, the stack created is independent of which routine is about to be called.  
 
 
Terry

________________________________

From: adeos-main-admin@domain.hid on behalf of Philippe Gerum
Sent: Tue 3/8/2005 11:54 AM
To: Reynolds, Terry (Contractor-SIMTECH)
Cc: adeos-main@gna.org
Subject: Re: [Adeos-main] ppc64 switch_domain problem



Reynolds, Terry (Contractor-SIMTECH) wrote:
> Hi All,
> 
> Are there any ppc64 gurus lurking out there?  My port to ppc64 has a severe problem.  When attempting to register a new domain, as in the RTAI testsuite's latency example, the switch to the new domain fails on the branch to rthal_domain_entry.  It suffers an "unrecoverable FP unavailable exception 800 at 0xd0000..." which is the location of the attr.entry for the link to that function.
> 
> The code has no floating point code in it, so it must be pulling up some garbage instruction that isn't actually at that location.  I made a new function rthal_domain_entry2 which is included in the kernel, it's in the same file as the __adeos_init_domain function (/adeos/ppc64.c for my port).  It's address is a kernel code 'like' 0xc0000...  The switch domain to that function works fine!
> 
> I think the branch to lr works for the kernel address, but not the loaded module one because of some problem with the SLB.  The ppc64 _switch function does modify the memory management hardware if the ESID is different for the task being switched to.
> 
> Anyone have an idea on how to correct this problem?
> 

Since it switches stacks, __adeos_switch_domain() should probably be
updated to switch the SLB appropriately then.

> 
> TIA!
> 
> Terry Reynolds.
> 
> 
>
> _______________________________________________
> Adeos-main mailing list
> Adeos-main@domain.hid
> https://mail.gna.org/listinfo/adeos-main


--

Philippe.

_______________________________________________
Adeos-main mailing list
Adeos-main@domain.hid
https://mail.gna.org/listinfo/adeos-main




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-08 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-08 17:27 [Adeos-main] ppc64 switch_domain problem Reynolds, Terry (Contractor-SIMTECH)
2005-03-08 17:54 ` Philippe Gerum
  -- strict thread matches above, loose matches on Subject: below --
2005-03-08 19:01 Reynolds, Terry (Contractor-SIMTECH)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.