xref: /haiku/src/system/libroot/os/arch/arm/thread.c (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
1 /*
2  * Copyright 2012-2014, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Jerome Duval <jerome.duval@free.fr>
7  *		Alexander von Gluck IV <kallisti5@unixzen.com>
8  */
9 
10 
11 #include <OS.h>
12 
13 #include <arch_atomic.h>
14 #include "syscalls.h"
15 
16 
17 thread_id
18 find_thread(const char *name)
19 {
20 	return _kern_find_thread(name);
21 }
22 
23 
24 #if !defined(__clang__)
25 /*
26  * Fill out gcc __sync_synchronize built-in for ARM
27  */
28 void
29 __sync_synchronize(void)
30 {
31 	dmb();
32 }
33 #endif
34