[9156] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

inline assembly interpretation

daemon@ATHENA.MIT.EDU (hiren_mehta@agilent.com)
Mon Jul 10 16:04:08 2000

Message-ID: <C657BB976D4AD411AA1E00D0B7476D305903A9@xsj02.cos.agilent.com>
From:	hiren_mehta@agilent.com
To:	linux-scsi@vger.rutgers.edu, linux-kernel@vger.rutgers.edu
Date:	Mon, 10 Jul 2000 12:24:17 -0600
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"

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-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post