Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Add x86_stmxcsr for amd64.



details:   https://anonhg.NetBSD.org/src/rev/1a66ccb8e5a3
branches:  trunk
changeset: 793388:1a66ccb8e5a3
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sun Feb 09 17:07:41 2014 +0000

description:
Add x86_stmxcsr for amd64.

diffstat:

 sys/arch/amd64/amd64/cpufunc.S |  6 +++++-
 sys/arch/x86/include/cpufunc.h |  7 ++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (48 lines):

diff -r 0f634a63724f -r 1a66ccb8e5a3 sys/arch/amd64/amd64/cpufunc.S
--- a/sys/arch/amd64/amd64/cpufunc.S    Sun Feb 09 16:41:42 2014 +0000
+++ b/sys/arch/amd64/amd64/cpufunc.S    Sun Feb 09 17:07:41 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc.S,v 1.22 2013/12/08 18:00:51 dsl Exp $ */
+/*     $NetBSD: cpufunc.S,v 1.23 2014/02/09 17:07:41 dsl Exp $ */
 
 /*-
  * Copyright (c) 1998, 2007, 2008 The NetBSD Foundation, Inc.
@@ -504,6 +504,10 @@
        xrstor  (%rdi)
        ret
 
+ENTRY(x86_stmxcsr)
+       ldmxcsr (%rdi)
+       ret
+
 ENTRY(x86_ldmxcsr)
        ldmxcsr (%rdi)
        ret
diff -r 0f634a63724f -r 1a66ccb8e5a3 sys/arch/x86/include/cpufunc.h
--- a/sys/arch/x86/include/cpufunc.h    Sun Feb 09 16:41:42 2014 +0000
+++ b/sys/arch/x86/include/cpufunc.h    Sun Feb 09 17:07:41 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc.h,v 1.14 2013/12/08 18:00:51 dsl Exp $ */
+/*     $NetBSD: cpufunc.h,v 1.15 2014/02/09 17:07:41 dsl Exp $ */
 
 /*-
  * Copyright (c) 1998, 2007 The NetBSD Foundation, Inc.
@@ -80,7 +80,7 @@
 void   fnclex(void);
 void   fninit(void);
 void   fnsave(void *);
-void   fnstcw(void *);
+void   fnstcw(uint16_t *);
 void   fnstsw(void *);
 void   fp_divide_by_0(void);
 void   frstor(void *);
@@ -92,7 +92,8 @@
 void   fxrstor(void *);
 void   x86_monitor(const void *, uint32_t, uint32_t);
 void   x86_mwait(uint32_t, uint32_t);
-void   x86_ldmxcsr(void *);
+void   x86_ldmxcsr(const uint32_t *);
+void   x86_stmxcsr(uint32_t *);
 /* x86_cpuid2() writes four 32bit values, %eax, %ebx, %ecx and %edx */
 #define        x86_cpuid(a,b)  x86_cpuid2((a),0,(b))
 void   x86_cpuid2(uint32_t, uint32_t, uint32_t *);



Home | Main Index | Thread Index | Old Index