ObjFW  Check-in [259abc30ce]

Overview
Comment:OFMemoryBarrier: Use sync on PowerPC

lwsync is not enough.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 259abc30ce8e31c34709f58a4a9f37957728b7b39ed732e58e4d2502026b0043
User & Date: js on 2024-09-04 23:30:38
Other Links: manifest | tags
Context
2024-09-06
22:27
OFINIFile: Properly escape newlines check-in: 995f217b65 user: js tags: trunk
2024-09-04
23:30
OFMemoryBarrier: Use sync on PowerPC check-in: 5b00004344 user: js tags: 1.1
23:30
OFMemoryBarrier: Use sync on PowerPC check-in: 259abc30ce user: js tags: trunk
23:27
OFOnce: Avoid full memory barrier check-in: 12b72a02a0 user: js tags: trunk
Changes

Modified src/platform/PowerPC/OFAtomic.h from [479e192b76] to [5d6aaf179a].

394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
	return r;
}

static OF_INLINE void
OFMemoryBarrier(void)
{
	__asm__ __volatile__ (
	    ".long 0x7C2004AC /* lwsync */" ::: "memory"
	);
}

static OF_INLINE void
OFAcquireMemoryBarrier(void)
{
	__asm__ __volatile__ (







|







394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
	return r;
}

static OF_INLINE void
OFMemoryBarrier(void)
{
	__asm__ __volatile__ (
	    ".long 0x7C0004AC /* sync */" ::: "memory"
	);
}

static OF_INLINE void
OFAcquireMemoryBarrier(void)
{
	__asm__ __volatile__ (