RE: inline assembly interpretation

From: Dunlap, Randy (randy.dunlap@intel.com)
Date: Mon Jul 10 2000 - 18:42:00 EST


Hi,

Are you looking for help with gcc's inline assembly
or with what the instructions (or functions) are doing?

For gcc's assembler info, see
http://gcc.gnu.org/onlinedocs/gcc_4.html#SEC97 & following
pages.

~Randy
___________________________________________________
|Randy Dunlap Intel Corp., DAL Sr. SW Engr.|
|randy.dunlap.at.intel.com 503-696-2055|
|NOTE: Any views presented here are mine alone |
|and may not represent the views of my employer. |
|_________________________________________________|

> -----Original Message-----
> From: hiren_mehta@agilent.com [mailto:hiren_mehta@agilent.com]
> Sent: Monday, July 10, 2000 11:24 AM
> To: linux-scsi@vger.rutgers.edu; linux-kernel@vger.rutgers.edu
> Subject: inline assembly interpretation
>
>
> Is there any document which can help me understand
> the following lines of inline assembly code ?
>
> inline void __const_udelay(unsigned long xloops)
> {
> int d0;
> __asm__("mull %0"
> :"=d" (xloops), "=&a" (d0)
> :"1" (xloops),"0" (current_cpu_data.loops_per_sec));
> __delay(xloops);
> }
>
>
> void __delay(unsigned long loops)
> {
> int d0;
> __asm__ __volatile__(
> "\tjmp 1f\n"
> ".align 16\n"
> "1:\tjmp 2f\n"
> ".align 16\n"
> "2:\tdecl %0\n\tjns 2b"
> :"=&a" (d0)
> :"0" (loops));
> }
>
> Thanks
> -hiren

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:11 EST