Linux 2.1.108: SIGSEGV on doing cpuid in ring 3

Tigran Aivazian (tigran@sco.COM)
Tue, 7 Jul 1998 17:01:41 +0100 (BST)


Hello,

I tried to run the following trivial asm program:

movl $0, %eax
cpuid

which was built as:

$ as cpuid.s -o cpuid.o
$ ld cpuid.o -o cpuid
ld: warning: cannot find entry symbol _start; defaulting to 08048074
$ ./cpuid
Segmentation fault (core dumped)

The Intel PII manual says (on page 3-70 of Volume 2) that CPUID can be
used in any ring so I don't need to be in the kernel.

Any ideas why it gets a SIGSEGV?

Regards,
------
Tigran A. Aivazian | http://www.sco.com/
Escalations Research Group | Email: tigran@sco.com
Santa Cruz Operation Ltd |

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