All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: aaron durbin <aarondurbin@domain.hid>
Cc: "'adeos-main@gna.org'" <adeos-main@gna.org>
Subject: Re: [Adeos-main] adeos porting
Date: Wed, 04 Aug 2004 16:35:37 +0200	[thread overview]
Message-ID: <1091630137.618.42.camel@domain.hid> (raw)
In-Reply-To: <0C53F2DBA565D411885300508B553B5204CCEAE7@domain.hid>

On Wed, 2004-08-04 at 15:35, aaron durbin wrote:
> Hi,
> 
> I am planning on porting ADEOS over to m68knommu (ColdFire based)
> architecture.  I have read the porting guidelines, however they are a little
> outdated. Currently I am using the recently released
> adeos-linux-2.6.7-i386-r6c6.patch patch for a basis. I was wondering if
> there was any more recent documentation on the API so I know exactly what
> calls should be performed in entry.S.

This one is pretty much in sync with the latest developments:
http://home.gna.org/adeos/doc/api/globals.html

This said, you cannot infer from that what's needed in entry.S. What you
need to do there is basically intercepting the hw IRQ masking/unmasking
and call the corresponding Adeos routines instead
(__adeos_stall/unstall_root), so that interrupts can go through the
pipeline when caught there too, even if the kernel won't receive them.

> 
> The issue I am running into is that the version 2 core of ColdFire does not
> have user/kernel stack support in hardware.  Therefore in entry.S needs to
> disable interrupts to make the stack switch atomic.  I was wondering if it
> would be sufficient to just stall the pipeline for linux at this point and
> make sure to unstall as apposed to disabling interrupts.
> 

Yes. Be careful with the register trashing though; calling the Adeos
pipeline controls might require a bit of tweaking in entry.S so that you
don't end up with a register mess upon return.

> My plans are to first port over ADEOS then go for RTAI.  The two coupled
> together look very promising, and I am hoping they will work as well for
> ColdFire as it does for x86.  
> 

Do you target the 3.0, 3.1 or fusion (poised to become 4.0) branch?

> Thanks for the help,
> Aaron Durbin 
> 
> _______________________________________________
> Adeos-main mailing list
> Adeos-main@domain.hid
> https://mail.gna.org/listinfo/adeos-main
-- 

Philippe.



  reply	other threads:[~2004-08-04 14:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-04 13:35 [Adeos-main] adeos porting aaron durbin
2004-08-04 14:35 ` Philippe Gerum [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-08-04 16:03 aaron durbin
2004-08-04 18:01 ` Philippe Gerum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1091630137.618.42.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=aarondurbin@domain.hid \
    --cc=adeos-main@gna.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.