Stop device enumeration when we see first empty slot.
This fixes operation in QEMU and saves some booting time as well. Pointed out by: Sagar Karandikar <skarandikar@berkeley.edu> Sponsored by: DARPA, AFRL Sponsored by: HEIF5
This commit is contained in:
parent
75d36854d4
commit
2150fb09b9
@ -183,9 +183,8 @@ htif_enumerate(struct htif_softc *sc)
|
||||
}
|
||||
|
||||
len = strnlen(id, sizeof(id));
|
||||
if (len <= 0) {
|
||||
continue;
|
||||
}
|
||||
if (len <= 0)
|
||||
break;
|
||||
|
||||
if (bootverbose)
|
||||
printf(" %d %s\n", i, id);
|
||||
|
Loading…
Reference in New Issue
Block a user