xref: /haiku/src/system/libroot/os/arch/ppc/atomic.S (revision 21258e2674226d6aa732321b6f8494841895af5f)
1/*
2 * Copyright 2017 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Alexander von Gluck IV <kallisti5@unixzen.com>
7 */
8
9#include <asm_defs.h>
10
11.text
12
13#ifdef __powerpc__
14#warning IMPLEMENT GCC 64-bit ATOMICS ON POWERPC 32-bit!
15
16/* These are to fill in 64-bit atomic calls emitted by
17 * by GCC when 64-bit atomics are unavailable.
18 * (aka, on 32-bit PowerPC
19 */
20
21FUNCTION(__atomic_fetch_add_8):
22	sync
23	blr
24FUNCTION_END(__atomic_fetch_add_8)
25
26FUNCTION(__atomic_store_8):
27	sync
28	blr
29FUNCTION_END(__atomic_store_8)
30
31FUNCTION(__atomic_load_8):
32	sync
33	blr
34FUNCTION_END(__atomic_load_8)
35
36#endif /* __powerpc__ */
37