blob: d3d0eb0d2107a5d0076be7795899e147666b3335 [file] [log] [blame]
Stefan Reinauerde3206a2010-02-22 06:09:43 +00001#include <fallback.h>
2#include <watchdog.h>
Eric Biederman8ca8d762003-04-22 19:02:15 +00003
Kyösti Mälkki7ce1a752016-12-11 12:56:37 +02004/* Implement platform specific override. */
Aaron Durbin64031672018-04-21 14:45:32 -06005void __weak set_boot_successful(void) { }
Yinghai Lu13f1c2a2005-07-08 02:49:49 +00006
7void boot_successful(void)
8{
Julius Wernercd49cce2019-03-05 16:53:33 -08009 if (CONFIG(FRAMEBUFFER_SET_VESA_MODE) &&
10 CONFIG(VGA_TEXT_FRAMEBUFFER)) {
Nico Huber6d8266b2017-05-20 16:46:01 +020011 void vbe_textmode_console(void);
Stefan Reinauerd650e992010-02-22 04:33:13 +000012
Nico Huber6d8266b2017-05-20 16:46:01 +020013 vbe_textmode_console();
14 }
15
Yinghai Lu13f1c2a2005-07-08 02:49:49 +000016 /* Remember this was a successful boot */
17 set_boot_successful();
18
19 /* turn off the boot watchdog */
20 watchdog_off();
21}