This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: a question
- To: wwm <wmwang at davform dot com>
- Subject: Re: [ECOS] a question
- From: Jonathan Larmour <jlarmour at cygnus dot co dot uk>
- Date: Wed, 22 Nov 2000 06:05:08 +0000
- CC: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <003a01c04e00$18b8baa0$7a64a8c0@wwm>
> wwm wrote:
>
> We are porting the eCos to the embedded microprocessor MPC823,as everyone
> know,the most improtant port is the HAL,but I can not find the
> syntax rules on how to write the assemble code in HAL. e.g. What do "I"
> mean in code:
>
> asm volatile ("mfspr %0, %1;" : "=r" (_v_) : "I" (_spr_));
>
>
> The question is where I can find the detailed documents about it.
This is gcc extended asm. You can find documentation in the gcc info files.
Use the "info gcc" command on linux; or I think they are available
somewhere on www.gnu.org as well.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault