Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jun 2021 01:31:48 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2ddeab979244 - main - games/ezquake: fix build on powerpc
Message-ID:  <202106190131.15J1VmE3073672@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2ddeab979244f1e33c789c7ba9fd2bccccaf9a75

commit 2ddeab979244f1e33c789c7ba9fd2bccccaf9a75
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-06-19 01:31:43 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-06-19 01:31:43 +0000

    games/ezquake: fix build on powerpc
    
    Same issue as on powerpc64.
---
 games/ezquake/files/patch-host.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/games/ezquake/files/patch-host.c b/games/ezquake/files/patch-host.c
index 055c1933b35f..0506eb4589d0 100644
--- a/games/ezquake/files/patch-host.c
+++ b/games/ezquake/files/patch-host.c
@@ -4,7 +4,7 @@
  	SYSINFO_processor_description = cpu_model;
  
  	gettimeofday(&old_tp, NULL);
-+#ifdef __powerpc64__
++#ifdef __powerpc__
 +	__asm__ __volatile__("mfspr %%r3, 268": "=r" (old_tsc));
 +#else
  	old_tsc = rdtsc();
@@ -12,7 +12,7 @@
  	do {
  		gettimeofday(&tp, NULL);
  	} while ((tp.tv_sec - old_tp.tv_sec) * 1000000. + tp.tv_usec - old_tp.tv_usec < 1000000.);
-+#ifdef __powerpc64__
++#ifdef __powerpc__
 +	__asm__ __volatile__("mfspr %%r3, 268": "=r" (tsc_freq));
 +#else
  	tsc_freq = rdtsc();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106190131.15J1VmE3073672>