ObjFW  Check-in [5b00004344]

Overview
Comment:OFMemoryBarrier: Use sync on PowerPC

lwsync is not enough.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 1.1
Files: files | file ages | folders
SHA3-256: 5b000043449eed1a256ae128bf99f2cd61e19b651bb99725d42118b89fc4c6a5
User & Date: js on 2024-09-04 23:30:59
Other Links: branch diff | manifest | tags
Context
2024-09-06
22:28
OFINIFile: Properly escape newlines check-in: 35df8d869a user: js tags: 1.1
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: dc1ba0558c user: js tags: 1.1
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__ (