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

Ulrich Drepper (drepper@cygnus.com)
07 Jul 1998 09:44:59 -0700


Tigran Aivazian <tigran@sco.COM> writes:

> Hello,
>
> I tried to run the following trivial asm program:
>
> movl $0, %eax
> cpuid

What do you expect if you let he program fall down at the cliff once
the cpuid instruction is finished?

$ cat u.s
movl $0, %eax
cpuid
xorl %ebx, %ebx
movl $1,%eax
int $0x80
$ as u.s -o u.o
$ ld u.o -o u
ld: warning: cannot find entry symbol _start; defaulting to 08048074
$ ./u
$

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

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