This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: a question


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]