one example would be:

unsigned int _read_timer()
{
    unsigned x;
    asm("mrc p14, 0, %0, c1, c0, 0;" : "=r"(x) : );
    return x;
}

naeem
-----Original Message-----
From: gavin li [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 10, 2001 6:12 PM
To: [EMAIL PROTECTED]
Subject: How to operate CP15 in gnu C code?


for example : mcr p15,0,r14,c1,c0,0
Anyone who knows how to implement those kind of
instructions in gnu C code?
by the way what does LTORG mean in ARM asm?

Thanks,

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to