From: Sergey Fedorov Date: Fri, 5 Jan 2024 10:44:18 +0000 (+0800) Subject: ppc.h: use mftb on ppc X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=c6fbc27960c6ae09af830e33884a40f53a879f6b 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 80462c6..be9d158 100644 --- a/include/urcu/arch/ppc.h +++ b/include/urcu/arch/ppc.h @@ -51,7 +51,7 @@ extern "C" { __extension__ \ ({ \ unsigned long rval; \ - __asm__ __volatile__ ("mftbl %0" : "=r" (rval)); \ + __asm__ __volatile__ ("mftb %0" : "=r" (rval)); \ rval; \ })