mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
efi_loader: __cyg_profile_func_enter/_exit
U-Boot can be compiled with function tracing enabled. When compiling with FTRACE __cyg_profile_func_enter() is called when a function is entered and __cyg_profile_func_exit() when the function is left. To avoid a crash we have to define these function for the free-standing UEFI binaries. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
9b8d264b5a
commit
9bb758aab6
1 changed files with 32 additions and 0 deletions
|
@ -88,3 +88,35 @@ void *memset(void *s, int c, size_t n)
|
|||
*d++ = c;
|
||||
return s;
|
||||
}
|
||||
|
||||
/**
|
||||
* __cyg_profile_func_enter() - record function entry
|
||||
*
|
||||
* This is called on every function entry when compiling with
|
||||
* -finstrument-functions.
|
||||
*
|
||||
* We do nothing here.
|
||||
*
|
||||
* @param func_ptr Pointer to function being entered
|
||||
* @param caller Pointer to function which called this function
|
||||
*/
|
||||
void __attribute__((no_instrument_function))
|
||||
__cyg_profile_func_enter(void *func_ptr, void *caller)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* __cyg_profile_func_exit() - record function exit
|
||||
*
|
||||
* This is called on every function exit when compiling with
|
||||
* -finstrument-functions.
|
||||
*
|
||||
* We do nothing here.
|
||||
*
|
||||
* @param func_ptr Pointer to function being entered
|
||||
* @param caller Pointer to function which called this function
|
||||
*/
|
||||
void __attribute__((no_instrument_function))
|
||||
__cyg_profile_func_exit(void *func_ptr, void *caller)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue