summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2014-07-06 01:19:45 +0000
committerjoerg <joerg@NetBSD.org>2014-07-06 01:19:45 +0000
commit63a530018e5405e58bf37d29e1bea8dfdcd1fa5d (patch)
tree2e101dd7d26ebacbd33cf56daaa60b6ac4d91049
parent70a8ce932389f0a9f87a9d32515e316c78d318ae (diff)
Add unused memory model argument to make GCC happy.
-rw-r--r--common/lib/libc/atomic/atomic_load.c8
-rw-r--r--common/lib/libc/atomic/atomic_store.c9
2 files changed, 9 insertions, 8 deletions
diff --git a/common/lib/libc/atomic/atomic_load.c b/common/lib/libc/atomic/atomic_load.c
index a3b44fb4c9c..41550fdf028 100644
--- a/common/lib/libc/atomic/atomic_load.c
+++ b/common/lib/libc/atomic/atomic_load.c
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_load.c,v 1.1 2014/07/05 20:44:46 joerg Exp $ */
+/* $NetBSD: atomic_load.c,v 1.2 2014/07/06 01:19:45 joerg Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: atomic_load.c,v 1.1 2014/07/05 20:44:46 joerg Exp $");
+__RCSID("$NetBSD: atomic_load.c,v 1.2 2014/07/06 01:19:45 joerg Exp $");
#include "atomic_op_namespace.h"
@@ -35,9 +35,9 @@ __RCSID("$NetBSD: atomic_load.c,v 1.1 2014/07/05 20:44:46 joerg Exp $");
#include <sys/atomic.h>
#define atomic_load_n(n,b) \
-uint ## b ## _t __atomic_load_ ## n(volatile uint ## b ## _t *); \
+uint ## b ## _t __atomic_load_ ## n(volatile uint ## b ## _t *, int); \
uint ## b ## _t \
-__atomic_load_ ## n(volatile uint ## b ## _t *ptr) \
+__atomic_load_ ## n(volatile uint ## b ## _t *ptr, int memmodel) \
{ \
uint## b ##_t val; \
membar_enter(); \
diff --git a/common/lib/libc/atomic/atomic_store.c b/common/lib/libc/atomic/atomic_store.c
index 68d2937c1d4..e1afddb989c 100644
--- a/common/lib/libc/atomic/atomic_store.c
+++ b/common/lib/libc/atomic/atomic_store.c
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_store.c,v 1.1 2014/07/05 20:44:46 joerg Exp $ */
+/* $NetBSD: atomic_store.c,v 1.2 2014/07/06 01:19:45 joerg Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: atomic_store.c,v 1.1 2014/07/05 20:44:46 joerg Exp $");
+__RCSID("$NetBSD: atomic_store.c,v 1.2 2014/07/06 01:19:45 joerg Exp $");
#include "atomic_op_namespace.h"
@@ -35,9 +35,10 @@ __RCSID("$NetBSD: atomic_store.c,v 1.1 2014/07/05 20:44:46 joerg Exp $");
#include <sys/atomic.h>
#define atomic_store_n(n,b) \
-void __atomic_store_ ## n(volatile uint ## b ## _t *, uint ## b ## _t); \
+void __atomic_store_ ## n(volatile uint ## b ## _t *, uint ## b ## _t, int); \
void \
-__atomic_store_ ## n(volatile uint ## b ## _t *ptr, uint ## b ## _t val) \
+__atomic_store_ ## n(volatile uint ## b ## _t *ptr, uint ## b ## _t val, \
+ int memmodel) \
{ \
membar_enter(); \
*ptr = val; \