sync with OpenBSD -current

This commit is contained in:
purplerain 2024-01-30 00:27:54 +00:00
parent 604988d5d3
commit 4b5c843641
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
8 changed files with 584 additions and 47 deletions

View file

@ -1,4 +1,4 @@
/* $OpenBSD: mainbus.c,v 1.28 2023/08/10 19:29:32 kettenis Exp $ */
/* $OpenBSD: mainbus.c,v 1.29 2024/01/29 14:52:25 kettenis Exp $ */
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
@ -160,7 +160,11 @@ mainbus_attach(struct device *parent, struct device *self, void *aux)
}
sc->sc_early = 0;
mainbus_attach_framebuffer(self);
/*
* Delay attaching the framebuffer to give other drivers a
* chance to claim it.
*/
config_mountroot(self, mainbus_attach_framebuffer);
thermal_init();
}