summaryrefslogtreecommitdiff
path: root/src/lib/fallback_boot.c
blob: 1c1255776ba739922848487713cd650ec87bbb95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <fallback.h>
#include <watchdog.h>

/* Implement platform specific override. */
void __attribute__((weak)) set_boot_successful(void) { }

void boot_successful(void)
{
#if CONFIG_FRAMEBUFFER_SET_VESA_MODE && !CONFIG_FRAMEBUFFER_KEEP_VESA_MODE
	void vbe_textmode_console(void);

	vbe_textmode_console();
#endif
	/* Remember this was a successful boot */
	set_boot_successful();

	/* turn off the boot watchdog */
	watchdog_off();
}