Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Always define SLJIT_CACHE_FLUSH(), start include gu...



details:   https://anonhg.NetBSD.org/src/rev/cdfffd1683d8
branches:  trunk
changeset: 791417:cdfffd1683d8
user:      alnsn <alnsn%NetBSD.org@localhost>
date:      Sun Nov 17 12:01:58 2013 +0000

description:
Always define SLJIT_CACHE_FLUSH(), start include guards with '_' and use _LP64 guard.

diffstat:

 sys/arch/amd64/include/sljitarch.h |  10 ++++++----
 sys/arch/i386/include/sljitarch.h  |  11 +++++++----
 sys/arch/mips/include/sljitarch.h  |   6 +++---
 sys/arch/sparc/include/sljitarch.h |  10 ++++++----
 4 files changed, 22 insertions(+), 15 deletions(-)

diffs (106 lines):

diff -r 6e86416d001a -r cdfffd1683d8 sys/arch/amd64/include/sljitarch.h
--- a/sys/arch/amd64/include/sljitarch.h        Sun Nov 17 11:16:09 2013 +0000
+++ b/sys/arch/amd64/include/sljitarch.h        Sun Nov 17 12:01:58 2013 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: sljitarch.h,v 1.1 2012/10/13 19:42:03 alnsn Exp $      */
+/*     $NetBSD: sljitarch.h,v 1.2 2013/11/17 12:01:58 alnsn Exp $      */
 
 /*-
- * Copyright (c) 2012 The NetBSD Foundation, Inc.
+ * Copyright (c) 2012-2013 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -26,9 +26,11 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef AMD64_SLJITARCH_H
-#define AMD64_SLJITARCH_H
+#ifndef _AMD64_SLJITARCH_H
+#define _AMD64_SLJITARCH_H
 
 #define SLJIT_CONFIG_X86_64 1
 
+#define SLJIT_CACHE_FLUSH(from, to)
+
 #endif
diff -r 6e86416d001a -r cdfffd1683d8 sys/arch/i386/include/sljitarch.h
--- a/sys/arch/i386/include/sljitarch.h Sun Nov 17 11:16:09 2013 +0000
+++ b/sys/arch/i386/include/sljitarch.h Sun Nov 17 12:01:58 2013 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: sljitarch.h,v 1.2 2012/11/18 14:39:42 alnsn Exp $      */
+/*     $NetBSD: sljitarch.h,v 1.3 2013/11/17 12:01:58 alnsn Exp $      */
 
 /*-
- * Copyright (c) 2012 The NetBSD Foundation, Inc.
+ * Copyright (c) 2012-2013 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -26,12 +26,15 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef I386_SLJITARCH_H
-#define I386_SLJITARCH_H
+#ifndef _I386_SLJITARCH_H
+#define _I386_SLJITARCH_H
 
 #define SLJIT_CONFIG_X86_32 1
 
+/* No call attributes. */
 #define SLJIT_CALL
 #define SLJIT_X86_32_FASTCALL 0
 
+#define SLJIT_CACHE_FLUSH(from, to)
+
 #endif
diff -r 6e86416d001a -r cdfffd1683d8 sys/arch/mips/include/sljitarch.h
--- a/sys/arch/mips/include/sljitarch.h Sun Nov 17 11:16:09 2013 +0000
+++ b/sys/arch/mips/include/sljitarch.h Sun Nov 17 12:01:58 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sljitarch.h,v 1.2 2012/11/25 23:04:51 alnsn Exp $      */
+/*     $NetBSD: sljitarch.h,v 1.3 2013/11/17 12:01:58 alnsn Exp $      */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -26,8 +26,8 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef MIPS_SLJITARCH_H
-#define MIPS_SLJITARCH_H
+#ifndef _MIPS_SLJITARCH_H
+#define _MIPS_SLJITARCH_H
 
 #ifndef _LP64
 #define SLJIT_CONFIG_MIPS_32 1
diff -r 6e86416d001a -r cdfffd1683d8 sys/arch/sparc/include/sljitarch.h
--- a/sys/arch/sparc/include/sljitarch.h        Sun Nov 17 11:16:09 2013 +0000
+++ b/sys/arch/sparc/include/sljitarch.h        Sun Nov 17 12:01:58 2013 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: sljitarch.h,v 1.1 2012/11/05 23:08:59 alnsn Exp $      */
+/*     $NetBSD: sljitarch.h,v 1.2 2013/11/17 12:01:58 alnsn Exp $      */
 
 /*-
- * Copyright (c) 2012 The NetBSD Foundation, Inc.
+ * Copyright (c) 2012-2013 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -26,10 +26,12 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef SPARC_SLJITARCH_H
-#define SPARC_SLJITARCH_H
+#ifndef _SPARC_SLJITARCH_H
+#define _SPARC_SLJITARCH_H
 
+#ifndef _LP64
 #define SLJIT_CONFIG_SPARC_32 1
+#endif
 
 #define SLJIT_CACHE_FLUSH(from, to) \
        sparc_cache_flush((from), (to))



Home | Main Index | Thread Index | Old Index