All of lore.kernel.org
 help / color / mirror / Atom feed
* [Adeos-main] Porting question
@ 2005-02-23 18:18 Reynolds, Terry (Contractor-SIMTECH)
  2005-02-23 18:32 ` Philippe Gerum
  0 siblings, 1 reply; 3+ messages in thread
From: Reynolds, Terry (Contractor-SIMTECH) @ 2005-02-23 18:18 UTC (permalink / raw)
  To: adeos

My apologies for being vague!  I'd never looked at the 2.4 tree & didn't know there was a ppc port there, I'm working on a ppc64, 2.6 port.
 
I have a newfound appreciation for everyone porting ppc drivers to ppc64, the differences are huge.
 
My specific problem is in using the RTAI sample test (latency), via the adeos/generic.c implementation.   In adeos_register_domain, when the root domain (linux) calls the adeos_switch_to function, the link register value stored for the RTAI_hal domain isn't set up properly to return to the register_domain function.
 
At least I assume that's what's happening, since my system crashes in the adeos_switch_domain function, or in returning from there.
 
This would be much easier to work on if there was a kdb available for ppc64!  Printk statements, with the kernel crashing every time I run the program is very time consuming.
 
My question is: in the process of registering a domain, when does it's stack get setup so that a call to switch domain will pull up the correct value to place in the link register so that the switch function will know where to return to?
 
 
Thanks,
 
 
Terry


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

* Re: [Adeos-main] Porting question
  2005-02-23 18:18 [Adeos-main] Porting question Reynolds, Terry (Contractor-SIMTECH)
@ 2005-02-23 18:32 ` Philippe Gerum
  0 siblings, 0 replies; 3+ messages in thread
From: Philippe Gerum @ 2005-02-23 18:32 UTC (permalink / raw)
  To: Reynolds, Terry (Contractor-SIMTECH); +Cc: adeos

Reynolds, Terry (Contractor-SIMTECH) wrote:
> My apologies for being vague!  I'd never looked at the 2.4 tree & didn't know there was a ppc port there, I'm working on a ppc64, 2.6 port.
>  
> I have a newfound appreciation for everyone porting ppc drivers to ppc64, the differences are huge.
>  
> My specific problem is in using the RTAI sample test (latency), via the adeos/generic.c implementation.   In adeos_register_domain, when the root domain (linux) calls the adeos_switch_to function, the link register value stored for the RTAI_hal domain isn't set up properly to return to the register_domain function.
>  
> At least I assume that's what's happening, since my system crashes in the adeos_switch_domain function, or in returning from there.
>  
> This would be much easier to work on if there was a kdb available for ppc64!  Printk statements, with the kernel crashing every time I run the program is very time consuming.
>  
> My question is: in the process of registering a domain, when does it's stack get setup so that a call to switch domain will pull up the correct value to place in the link register so that the switch function will know where to return to?
>  
>  

__adeos_init_domain(). Really. Excerpt:

	ksp[19] = (_cpuid == cpuid); /* r3 */
	ksp[25] = (unsigned long)attr->entry; /* lr <====== */
	ksp[26] = flags & ~MSR_EE; /* msr */


PS: please ask your mail client to wrap lines. (My 2700 inches CRT does 
not fit on my office desk...)

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


-- 

Philippe.


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

* RE: [Adeos-main] Porting question
@ 2005-02-24  0:44 Reynolds, Terry (Contractor-SIMTECH)
  0 siblings, 0 replies; 3+ messages in thread
From: Reynolds, Terry (Contractor-SIMTECH) @ 2005-02-24  0:44 UTC (permalink / raw)
  To: adeos-main

I've been looking at the __adeos_init_domain function with printk statements.   It looks like the ppc64's 64 bits
for unsigned long's have hosed up the positions of the structure elements.  The adp->m_link and adp->flags
both come back as zero from the call to the init_domain function.  They were non-zero in the function. I'll have
to re-compute the relative addresses for the structure elements.
 
Thanks,
 
Terry
 

________________________________

From: adeos-main-admin@domain.hid on behalf of Philippe Gerum
Sent: Wed 2/23/2005 12:32 PM
To: Reynolds, Terry (Contractor-SIMTECH)
Cc: adeos
Subject: Re: [Adeos-main] Porting question



Reynolds, Terry (Contractor-SIMTECH) wrote:
> My apologies for being vague!  I'd never looked at the 2.4 tree & didn't know there was a ppc port there, I'm working on a ppc64, 2.6 port.
> 
> I have a newfound appreciation for everyone porting ppc drivers to ppc64, the differences are huge.
> 
> My specific problem is in using the RTAI sample test (latency), via the adeos/generic.c implementation.   In adeos_register_domain, when the root domain (linux) calls the adeos_switch_to function, the link register value stored for the RTAI_hal domain isn't set up properly to return to the register_domain function.
> 
> At least I assume that's what's happening, since my system crashes in the adeos_switch_domain function, or in returning from there.
> 
> This would be much easier to work on if there was a kdb available for ppc64!  Printk statements, with the kernel crashing every time I run the program is very time consuming.
> 
> My question is: in the process of registering a domain, when does it's stack get setup so that a call to switch domain will pull up the correct value to place in the link register so that the switch function will know where to return to?
> 
> 

__adeos_init_domain(). Really. Excerpt:

        ksp[19] = (_cpuid == cpuid); /* r3 */
        ksp[25] = (unsigned long)attr->entry; /* lr <====== */
        ksp[26] = flags & ~MSR_EE; /* msr */


PS: please ask your mail client to wrap lines. (My 2700 inches CRT does
not fit on my office desk...)

> Thanks,
> 
> 
> Terry
>
> _______________________________________________
> 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-02-24  0:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-23 18:18 [Adeos-main] Porting question Reynolds, Terry (Contractor-SIMTECH)
2005-02-23 18:32 ` Philippe Gerum
  -- strict thread matches above, loose matches on Subject: below --
2005-02-24  0:44 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.