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 /* 25 * Fill out gcc __sync_synchronize built-in for ARM 26 */ 27 void 28 __sync_synchronize(void) 29 { 30 dmb(); 31 } 32