blob: 443f209b1dc8632804533d997c240c8e273a06b9 [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. */
5void __attribute__((weak)) set_boot_successful(void) { }
Yinghai Lu13f1c2a2005-07-08 02:49:49 +00006
7void boot_successful(void)
8{
Nico Huber6d8266b2017-05-20 16:46:01 +02009 if (IS_ENABLED(CONFIG_FRAMEBUFFER_SET_VESA_MODE) &&
10 IS_ENABLED(CONFIG_VGA_TEXT_FRAMEBUFFER)) {
11 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}