Move CAS check in powerpc64 ofw loader until after the PVR check.
This unbreaks using the powerpc64 loader on a 32-bit processor. Approved by: jhibbits (mentor) Differential Revision: https://reviews.freebsd.org/D21297
This commit is contained in:
parent
840aca2880
commit
9ae631858e
@ -191,10 +191,6 @@ ppc64_cas(void)
|
||||
ihandle_t ihandle;
|
||||
cell_t err;
|
||||
|
||||
/* Skip CAS when running on PowerNV */
|
||||
if (!ppc64_hv())
|
||||
return (0);
|
||||
|
||||
/* Perform CAS only for POWER8 and later cores */
|
||||
switch (mfpvr() & PVR_VER_MASK) {
|
||||
case PVR_VER_P8:
|
||||
@ -206,6 +202,10 @@ ppc64_cas(void)
|
||||
return (0);
|
||||
}
|
||||
|
||||
/* Skip CAS when running on PowerNV */
|
||||
if (!ppc64_hv())
|
||||
return (0);
|
||||
|
||||
ihandle = OF_open("/");
|
||||
if (ihandle == -1) {
|
||||
printf("cas: failed to open / node\n");
|
||||
|
Loading…
Reference in New Issue
Block a user