2018-04-19 13:24:26 +02:00
|
|
|
//---
|
2019-02-21 20:58:38 +01:00
|
|
|
// core:bootlog - Boot-time on-screen log for extreme debugging
|
2018-04-19 13:24:26 +02:00
|
|
|
//---
|
|
|
|
|
|
|
|
#ifndef GINT_CORE_BOOTLOG
|
|
|
|
#define GINT_CORE_BOOTLOG
|
|
|
|
|
2019-03-06 14:32:51 +01:00
|
|
|
#include <gint/defs/attributes.h>
|
|
|
|
|
2018-08-01 20:41:36 +02:00
|
|
|
/* bootlog_loaded() - section loading stage
|
2018-04-19 13:24:26 +02:00
|
|
|
Called when RAM sections have been wiped and copied */
|
|
|
|
void bootlog_loaded(void);
|
|
|
|
|
|
|
|
/* bootlog_mapped() - ROM mapping stage
|
|
|
|
Called after all ROM pages have been traversed. All of them may not have
|
|
|
|
been mapped.
|
|
|
|
@rom Amount of mapped ROM, in bytes
|
|
|
|
@ram Amount of mapped RAM, in bytes */
|
|
|
|
void bootlog_mapped(uint32_t rom, uint32_t ram);
|
|
|
|
|
2018-08-01 20:41:36 +02:00
|
|
|
/* bootlog_kernel() - gint loading stage
|
2018-04-19 13:24:26 +02:00
|
|
|
Called when gint has been installed, the VBR switched and the interrupt
|
|
|
|
handlers set up. */
|
|
|
|
void bootlog_kernel(void);
|
|
|
|
|
2019-03-06 14:32:51 +01:00
|
|
|
/* bootlog_driver() - driver load
|
|
|
|
Called for very loaded driver. */
|
|
|
|
void bootlog_driver(const char *driver_name, const char *status);
|
|
|
|
void bootlog_driver_summary(void);
|
|
|
|
|
2019-02-21 20:58:38 +01:00
|
|
|
/* All these functions are enabled only if GINT_BOOT_LOG is defined */
|
|
|
|
#ifndef GINT_BOOT_LOG
|
|
|
|
#define bootlog_loaded(...)
|
|
|
|
#define bootlog_mapped(...)
|
|
|
|
#define bootlog_kernel(...)
|
2019-03-06 14:32:51 +01:00
|
|
|
#define bootlog_driver(...)
|
|
|
|
#define bootlog_driver_summary(...)
|
2019-02-21 20:58:38 +01:00
|
|
|
#endif
|
|
|
|
|
2018-04-19 13:24:26 +02:00
|
|
|
#endif /* GINT_CORE_BOOTLOG */
|