summaryrefslogtreecommitdiff
path: root/lib/arm/sync_synchronize.S
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-01-07 19:55:37 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-01-07 19:55:37 +0000
commitca9211ecdede9bdedb812b2243a4abdb8dacd1b9 (patch)
tree9b19e801150082c33e9152275829a6ce90614b55 /lib/arm/sync_synchronize.S
parent8ef50bf3d1c287b5013c3168de77a462dfce3495 (diff)
Diffstat (limited to 'lib/arm/sync_synchronize.S')
-rw-r--r--lib/arm/sync_synchronize.S34
1 files changed, 0 insertions, 34 deletions
diff --git a/lib/arm/sync_synchronize.S b/lib/arm/sync_synchronize.S
deleted file mode 100644
index 06dade9647280..0000000000000
--- a/lib/arm/sync_synchronize.S
+++ /dev/null
@@ -1,34 +0,0 @@
-//===-- sync_synchronize - Implement memory barrier * ----------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "../assembly.h"
-
-//
-// When compiling a use of the gcc built-in __sync_synchronize() in thumb1 mode
-// the compiler may emit a call to __sync_synchronize.
-// On Darwin the implementation jumps to an OS supplied function named
-// OSMemoryBarrier
-//
-
- .text
- .syntax unified
-
-#if __APPLE__
-
- .align 2
-DEFINE_COMPILERRT_PRIVATE_FUNCTION(__sync_synchronize)
- stmfd sp!, {r7, lr}
- add r7, sp, #0
- bl _OSMemoryBarrier
- ldmfd sp!, {r7, pc}
-
- // tell linker it can break up file at label boundaries
- .subsections_via_symbols
-
-#endif