summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-07-26 23:20:55 +0000
committerjkim <jkim@FreeBSD.org>2010-07-26 23:20:55 +0000
commit823ac342172532ac50e809c42eb12f2dcda7de1f (patch)
tree8775ce270951c40f0381a5c2dd2455bb24b2c82d /sys/i386/isa
parentb8fb3921fac102fa6e1a35746ccc9870b28b0c8b (diff)
downloadFreeBSD-src-823ac342172532ac50e809c42eb12f2dcda7de1f.zip
FreeBSD-src-823ac342172532ac50e809c42eb12f2dcda7de1f.tar.gz
Simplify fldcw() macro. There is no reason to use pointer here. No object
file change after this commit (verified with md5).
Diffstat (limited to 'sys/i386/isa')
-rw-r--r--sys/i386/isa/npx.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c
index 1203fcc4..72a6aa8 100644
--- a/sys/i386/isa/npx.c
+++ b/sys/i386/isa/npx.c
@@ -87,7 +87,7 @@ __FBSDID("$FreeBSD$");
#if defined(__GNUCLIKE_ASM) && !defined(lint)
-#define fldcw(addr) __asm __volatile("fldcw %0" : : "m" (*(addr)))
+#define fldcw(cw) __asm __volatile("fldcw %0" : : "m" (cw))
#define fnclex() __asm __volatile("fnclex")
#define fninit() __asm __volatile("fninit")
#define fnsave(addr) __asm __volatile("fnsave %0" : "=m" (*(addr)))
@@ -111,7 +111,7 @@ __FBSDID("$FreeBSD$");
#endif
#else /* !(__GNUCLIKE_ASM && !lint) */
-void fldcw(caddr_t addr);
+void fldcw(u_short cw);
void fnclex(void);
void fninit(void);
void fnsave(caddr_t addr);
@@ -266,7 +266,7 @@ npx_probe(device_t dev)
* 16 works.
*/
control &= ~(1 << 2); /* enable divide by 0 trap */
- fldcw(&control);
+ fldcw(control);
#ifdef FPU_ERROR_BROKEN
/*
* FPU error signal doesn't work on some CPU
@@ -364,7 +364,7 @@ npxinit(void)
fninit();
#endif
control = __INITIAL_NPXCW__;
- fldcw(&control);
+ fldcw(control);
start_emulating();
intr_restore(savecrit);
}
@@ -683,7 +683,7 @@ npxdna(void)
*/
fpurstor(&npx_initialstate);
if (pcb->pcb_initial_npxcw != __INITIAL_NPXCW__)
- fldcw(&pcb->pcb_initial_npxcw);
+ fldcw(pcb->pcb_initial_npxcw);
pcb->pcb_flags |= PCB_NPXINITDONE;
if (PCB_USER_FPU(pcb))
pcb->pcb_flags |= PCB_NPXUSERINITDONE;
OpenPOWER on IntegriCloud