diff options
author | Justin Hibbits <jhibbits@FreeBSD.org> | 2019-10-07 03:05:32 +0000 |
---|---|---|
committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2019-10-07 03:05:32 +0000 |
commit | cd51f7df9c6c62b40d96334b7b7b8bc622022d3a (patch) | |
tree | 073a677e787c44234b27621c8af4e76a427d3188 /stand/powerpc | |
parent | 02e795213377389f763e2051db2766ec190f5f84 (diff) | |
download | src-cd51f7df9c6c62b40d96334b7b7b8bc622022d3a.tar.gz src-cd51f7df9c6c62b40d96334b7b7b8bc622022d3a.zip |
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>
Notes
Notes:
svn path=/head/; revision=353160
Diffstat (limited to 'stand/powerpc')
-rw-r--r-- | stand/powerpc/ofw/cas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/powerpc/ofw/cas.c b/stand/powerpc/ofw/cas.c index 4b9b4b386ebb..d51f12f06aaa 100644 --- a/stand/powerpc/ofw/cas.c +++ b/stand/powerpc/ofw/cas.c @@ -203,7 +203,7 @@ ppc64_cas(void) } /* Skip CAS when running on PowerNV */ - if (!ppc64_hv()) + if (ppc64_hv()) return (0); ihandle = OF_open("/"); |