Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/include/linux Implement ATOMIC64_INIT.



details:   https://anonhg.NetBSD.org/src/rev/a6c91bcbc953
branches:  trunk
changeset: 366383:a6c91bcbc953
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 15:10:41 2018 +0000

description:
Implement ATOMIC64_INIT.

diffstat:

 sys/external/bsd/drm2/include/linux/atomic.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 603dc2cd5799 -r a6c91bcbc953 sys/external/bsd/drm2/include/linux/atomic.h
--- a/sys/external/bsd/drm2/include/linux/atomic.h      Mon Aug 27 15:10:25 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/atomic.h      Mon Aug 27 15:10:41 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic.h,v 1.15 2018/08/27 15:08:54 riastradh Exp $    */
+/*     $NetBSD: atomic.h,v 1.16 2018/08/27 15:10:41 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -229,6 +229,8 @@
 
 typedef struct atomic64 atomic64_t;
 
+#define        ATOMIC64_INIT(v)        { .a_v = (v) }
+
 int            linux_atomic64_init(void);
 void           linux_atomic64_fini(void);
 



Home | Main Index | Thread Index | Old Index