Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2018 18:12:38 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329918 - head/sys/powerpc/powerpc
Message-ID:  <201802241812.w1OICcc4013677@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Sat Feb 24 18:12:38 2018
New Revision: 329918
URL: https://svnweb.freebsd.org/changeset/base/329918

Log:
  Unbreak 64-bit Book-E builds post r329712
  
  can_wakeup is defined only in AIM's locore64.S, so conditionalize use of it
  on AIM in addition to powerpc64.

Modified:
  head/sys/powerpc/powerpc/cpu.c

Modified: head/sys/powerpc/powerpc/cpu.c
==============================================================================
--- head/sys/powerpc/powerpc/cpu.c	Sat Feb 24 17:54:12 2018	(r329917)
+++ head/sys/powerpc/powerpc/cpu.c	Sat Feb 24 18:12:38 2018	(r329918)
@@ -89,7 +89,7 @@ int powerpc_pow_enabled;
 void (*cpu_idle_hook)(sbintime_t) = NULL;
 static void	cpu_idle_60x(sbintime_t);
 static void	cpu_idle_booke(sbintime_t);
-#ifdef __powerpc64__
+#if defined(__powerpc64__) && defined(AIM)
 static void	cpu_idle_powerx(sbintime_t);
 #endif
 
@@ -620,7 +620,7 @@ static void
 cpu_powerx_setup(int cpuid, uint16_t vers)
 {
 
-#ifdef __powerpc64__
+#if defined(__powerpc64__) && defined(AIM)
 	if ((mfmsr() & PSL_HV) == 0)
 		return;
 
@@ -745,7 +745,7 @@ cpu_idle_booke(sbintime_t sbt)
 #endif
 }
 
-#ifdef __powerpc64__
+#if defined(__powerpc64__) && defined(AIM)
 static void
 cpu_idle_powerx(sbintime_t sbt)
 {



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