From: Sergey Fedorov Date: Fri, 5 Jan 2024 10:44:18 +0000 (+0800) Subject: ppc.h: use mftb on ppc X-Git-Tag: v0.14.1~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f6d614bcca247096df4cdfd586d551b26d0ea4ce;p=userspace-rcu.git ppc.h: use mftb on ppc Older versions of GNU as do not support mftbl. The issue affects Darwin PowerPC, as well as some older versions of NetBSD and Linux. Since mftb is equivalent and universally understood, just use that. Signed-off-by: Mathieu Desnoyers Change-Id: I098b70fa8bb077143d2d658835586b6b059b879f --- diff --git a/include/urcu/arch/ppc.h b/include/urcu/arch/ppc.h index 791529e..56fb82b 100644 --- a/include/urcu/arch/ppc.h +++ b/include/urcu/arch/ppc.h @@ -63,7 +63,7 @@ extern "C" { __extension__ \ ({ \ unsigned long rval; \ - __asm__ __volatile__ ("mftbl %0" : "=r" (rval)); \ + __asm__ __volatile__ ("mftb %0" : "=r" (rval)); \ rval; \ })