Re: Linux 2.1.108: SIGSEGV on doing cpuid in ring 3

Alex Buell (alex.buell@tahallah.demon.co.uk)
Tue, 07 Jul 1998 12:48:20 -0400


Tigran Aivazian wrote:

> movl $0, %eax
> cpuid

Dude, you need a wrapper.

int main(void)
{
_asm movl $0,%eax
_asm cpuid
}

Something like that, and try again. it'll work - not sure if the _asm is
right though.

-- 
Cheers,
Alex.

Watch out, the NSA are everywhere. Your computer must be watched!

/\_/\ Legalise cannabis now! ( o.o ) Smoke some cannabis today! > ^ < Peace, Love, Unity and Respect to all.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu