diff options
Diffstat (limited to 'arch/i386/math-emu/load_store.c')
-rw-r--r-- | arch/i386/math-emu/load_store.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/i386/math-emu/load_store.c b/arch/i386/math-emu/load_store.c index 6f0e167d6..cc288a9ab 100644 --- a/arch/i386/math-emu/load_store.c +++ b/arch/i386/math-emu/load_store.c @@ -18,7 +18,7 @@ | other processes using the emulator while swapping is in progress. | +---------------------------------------------------------------------------*/ -#include <asm/segment.h> +#include <asm/uaccess.h> #include "fpu_system.h" #include "exception.h" @@ -201,7 +201,7 @@ int load_store_instr(unsigned char type, fpu_addr_modes addr_modes, case 024: /* fldcw */ RE_ENTRANT_CHECK_OFF; FPU_verify_area(VERIFY_READ, data_address, 2); - control_word = get_fs_word((unsigned short *) data_address); + get_user(control_word, (unsigned short *) data_address); RE_ENTRANT_CHECK_ON; if ( partial_status & ~control_word & CW_Exceptions ) partial_status |= (SW_Summary | SW_Backward); @@ -234,7 +234,7 @@ int load_store_instr(unsigned char type, fpu_addr_modes addr_modes, case 034: /* fstcw m16int */ RE_ENTRANT_CHECK_OFF; FPU_verify_area(VERIFY_WRITE,data_address,2); - put_fs_word(control_word, (short *) data_address); + put_user(control_word, (unsigned short *) data_address); RE_ENTRANT_CHECK_ON; return 1; case 035: /* fstp m80real */ @@ -246,7 +246,7 @@ int load_store_instr(unsigned char type, fpu_addr_modes addr_modes, case 036: /* fstsw m2byte */ RE_ENTRANT_CHECK_OFF; FPU_verify_area(VERIFY_WRITE,data_address,2); - put_fs_word(status_word(),(short *) data_address); + put_user(status_word(),(unsigned short *) data_address); RE_ENTRANT_CHECK_ON; return 1; case 037: /* fistp m64int */ |