mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
[PATCH] uml: fix handling of no fpx_regs
Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Fix the error path, which is triggered when the processor misses the fpx regs (i.e. the "fxsr" cpuinfo feature). For instance by VIA C3 Samuel2. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
8e7a4f69e4
commit
6aec307283
1 changed files with 4 additions and 3 deletions
|
@ -105,14 +105,15 @@ void init_registers(int pid)
|
||||||
panic("check_ptrace : PTRACE_GETREGS failed, errno = %d",
|
panic("check_ptrace : PTRACE_GETREGS failed, errno = %d",
|
||||||
err);
|
err);
|
||||||
|
|
||||||
|
errno = 0;
|
||||||
err = ptrace(PTRACE_GETFPXREGS, pid, 0, exec_fpx_regs);
|
err = ptrace(PTRACE_GETFPXREGS, pid, 0, exec_fpx_regs);
|
||||||
if(!err)
|
if(!err)
|
||||||
return;
|
return;
|
||||||
|
if(errno != EIO)
|
||||||
|
panic("check_ptrace : PTRACE_GETFPXREGS failed, errno = %d",
|
||||||
|
errno);
|
||||||
|
|
||||||
have_fpx_regs = 0;
|
have_fpx_regs = 0;
|
||||||
if(err != EIO)
|
|
||||||
panic("check_ptrace : PTRACE_GETFPXREGS failed, errno = %d",
|
|
||||||
err);
|
|
||||||
|
|
||||||
err = ptrace(PTRACE_GETFPREGS, pid, 0, exec_fp_regs);
|
err = ptrace(PTRACE_GETFPREGS, pid, 0, exec_fp_regs);
|
||||||
if(err)
|
if(err)
|
||||||
|
|
Loading…
Reference in a new issue