sync code with last fixes and improvements from OpenBSD
This commit is contained in:
parent
f57be82572
commit
58b04bcee7
468 changed files with 9958 additions and 7882 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: simplebus.c,v 1.16 2022/11/06 12:01:52 patrick Exp $ */
|
||||
/* $OpenBSD: simplebus.c,v 1.17 2023/07/19 20:26:11 kettenis Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
|
||||
*
|
||||
|
@ -140,13 +140,10 @@ simplebus_attach(struct device *parent, struct device *self, void *aux)
|
|||
}
|
||||
|
||||
/* Scan the whole tree. */
|
||||
sc->sc_early = 1;
|
||||
for (node = OF_child(sc->sc_node); node; node = OF_peer(node))
|
||||
simplebus_attach_node(self, node);
|
||||
|
||||
sc->sc_early = 0;
|
||||
for (node = OF_child(sc->sc_node); node; node = OF_peer(node))
|
||||
simplebus_attach_node(self, node);
|
||||
for (sc->sc_early = 2; sc->sc_early >= 0; sc->sc_early--) {
|
||||
for (node = OF_child(sc->sc_node); node; node = OF_peer(node))
|
||||
simplebus_attach_node(self, node);
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue