Linux-kernel mailing list archive 1999-34,: complicated inline assembly

# complicated inline assembly

Mehta, Hiren (Hiren.Mehta@VLSI.com)
Mon, 23 Aug 1999 17:17:59 -0700

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Oliver Xymoron: "Re: complicated inline assembly"
- Previous message: Peter Clark: "Problems with kernel 2.3.14 and binfmt-000"

Can anybody explain the following complicated assembly that I found
include/asm-i386/unistd.h file ?

#define _syscall0(type,name) \
type name(void) \
{ \
long __res; \
__asm__ volatile ("int $0x80" \
: "=a" (__res) \
: "0" (__NR_##name)); \
if (__res >= 0) \
return (type) __res; \
errno = -__res; \
return -1; \
}

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/

- Next message: Oliver Xymoron: "Re: complicated inline assembly"
- Previous message: Peter Clark: "Problems with kernel 2.3.14 and binfmt-000"