Skip to content

Commit

Permalink
[PATCH] uml: fix handling of no fpx_regs
Browse files Browse the repository at this point in the history
      Paolo 'Blaisorblade' Giarrusso <[email protected]>

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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
aleidenf authored and Linus Torvalds committed May 1, 2005
1 parent 8e7a4f6 commit 6aec307
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions arch/um/os-Linux/sys-i386/registers.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,15 @@ void init_registers(int pid)
panic("check_ptrace : PTRACE_GETREGS failed, errno = %d",
err);

errno = 0;
err = ptrace(PTRACE_GETFPXREGS, pid, 0, exec_fpx_regs);
if(!err)
return;
if(errno != EIO)
panic("check_ptrace : PTRACE_GETFPXREGS failed, errno = %d",
errno);

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);
if(err)
Expand Down

0 comments on commit 6aec307

Please sign in to comment.