Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2019 03:05:32 +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: r353160 - head/stand/powerpc/ofw
Message-ID:  <201910070305.x9735WuS058132@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Mon Oct  7 03:05:32 2019
New Revision: 353160
URL: https://svnweb.freebsd.org/changeset/base/353160

Log:
  loader/powerpc64: Fix HV check for CAS usage
  
  Logic was backwards.  The function returns true if it *is* running as a
  hypervisor, whereas we want to only call the CAS utility if we're running as a
  guest.
  
  Reported by:	Shawn Anastasio <shawn@anastas.io>

Modified:
  head/stand/powerpc/ofw/cas.c

Modified: head/stand/powerpc/ofw/cas.c
==============================================================================
--- head/stand/powerpc/ofw/cas.c	Mon Oct  7 02:57:00 2019	(r353159)
+++ head/stand/powerpc/ofw/cas.c	Mon Oct  7 03:05:32 2019	(r353160)
@@ -203,7 +203,7 @@ ppc64_cas(void)
 	}
 
 	/* Skip CAS when running on PowerNV */
-	if (!ppc64_hv())
+	if (ppc64_hv())
 		return (0);
 
 	ihandle = OF_open("/");



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