Browse Source

efDataPreprocessing memoryCall.h 李海忠 commit at 2020-09-14

李海忠 4 years ago
parent
commit
e3a1074145
1 changed files with 25 additions and 0 deletions
  1. 25 0
      efDataPreprocessing/dataSharedMemory/memoryCall.h

+ 25 - 0
efDataPreprocessing/dataSharedMemory/memoryCall.h

@@ -0,0 +1,25 @@
+/*
+ *  arch/arm/include/asm/atomic.h
+ *
+ *  Copyright (C) 1996 Russell King.
+ *  Copyright (C) 2002 Deep Blue Solutions Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#ifndef __ASM_ARM_ATOMIC_H
+#define __ASM_ARM_ATOMIC_H
+
+#include <linux/compiler.h>
+#include <linux/types.h>
+#include <linux/irqflags.h>
+#include <asm/barrier.h>
+#include <asm/cmpxchg.h>
+
+#define ATOMIC_INIT(i)	{ (i) }
+
+#ifdef __KERNEL__
+
+/*
+ * On ARM, ordinary assignment (str instruction) doesn't clear the local