mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
inittime
This commit is contained in:
@@ -6,12 +6,15 @@
|
|||||||
#ifndef __INITCALL_H
|
#ifndef __INITCALL_H
|
||||||
#define __INITCALL_H
|
#define __INITCALL_H
|
||||||
|
|
||||||
|
#define DEBUG
|
||||||
|
|
||||||
typedef int (*init_fnc_t)(void);
|
typedef int (*init_fnc_t)(void);
|
||||||
|
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
#ifdef CONFIG_EFI_APP
|
#ifdef CONFIG_EFI_APP
|
||||||
#include <efi.h>
|
#include <efi.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* To enable debugging. add #define DEBUG at the top of the including file.
|
* To enable debugging. add #define DEBUG at the top of the including file.
|
||||||
@@ -42,6 +45,8 @@ static inline int initcall_run_list(const init_fnc_t init_sequence[])
|
|||||||
else
|
else
|
||||||
debug("initcall: %p\n", (char *)*init_fnc_ptr - reloc_ofs);
|
debug("initcall: %p\n", (char *)*init_fnc_ptr - reloc_ofs);
|
||||||
|
|
||||||
|
printf("%lu: initcall %p\n", timer_get_us(), (char *)*init_fnc_ptr - reloc_ofs);
|
||||||
|
|
||||||
ret = (*init_fnc_ptr)();
|
ret = (*init_fnc_ptr)();
|
||||||
if (ret) {
|
if (ret) {
|
||||||
printf("initcall sequence %p failed at call %p (err=%d)\n",
|
printf("initcall sequence %p failed at call %p (err=%d)\n",
|
||||||
|
Reference in New Issue
Block a user