use promvec->pv_enaddr on v2 proms also
authorderaadt <deraadt@openbsd.org>
Tue, 14 Nov 1995 11:00:00 +0000 (11:00 +0000)
committerderaadt <deraadt@openbsd.org>
Tue, 14 Nov 1995 11:00:00 +0000 (11:00 +0000)
sys/arch/sparc/stand/promdev.c

index 1dd5684..1404ce4 100644 (file)
@@ -503,7 +503,7 @@ prom_getether(fd, ea)
                        } while (--len > 0);
                }
                bcopy(sun4_idprom.id_ether, ea, 6);
-       } else if (promvec->pv_romvec_vers < 2) {
+       } else if (promvec->pv_romvec_vers <= 2) {
                (void)(*promvec->pv_enaddr)(fd, (char *)ea);
        } else {
                char buf[64];