patch-2.3.4 linux/arch/ppc/kernel/softemu8xx.c
Next file: linux/arch/ppc/kernel/syscalls.c
Previous file: linux/arch/ppc/kernel/setup.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Sat May 22 13:03:00 1999
- Orig file:
v2.3.3/linux/arch/ppc/kernel/softemu8xx.c
- Orig date:
Wed Mar 10 21:30:32 1999
diff -u --recursive --new-file v2.3.3/linux/arch/ppc/kernel/softemu8xx.c linux/arch/ppc/kernel/softemu8xx.c
@@ -34,6 +34,7 @@
/* Eventually we may need a look-up table, but this works for now.
*/
+#define LFS 48
#define LFD 50
#define LFDU 51
#define STFD 54
@@ -82,6 +83,12 @@
retval = EFAULT;
else
regs->gpr[idxreg] = (uint)ea;
+ break;
+ case LFS:
+ sdisp = (instword & 0xffff);
+ ea = (uint *)(regs->gpr[idxreg] + sdisp);
+ if (copy_from_user(ip, ea, sizeof(float)))
+ retval = EFAULT;
break;
case STFD:
/* this is a 16 bit quantity that is sign extended
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)