mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 02:24:03 +02:00
x86: Support tracing function
Some changes are needed to x86 timer functions to support tracing. Add these so that the feature works correctly. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -64,7 +64,7 @@ void board_init_f_r_trampoline(ulong) __attribute__ ((noreturn));
|
||||
void board_init_f_r(void) __attribute__ ((noreturn));
|
||||
|
||||
/* Read the time stamp counter */
|
||||
static inline uint64_t rdtsc(void)
|
||||
static inline __attribute__((no_instrument_function)) uint64_t rdtsc(void)
|
||||
{
|
||||
uint32_t high, low;
|
||||
__asm__ __volatile__("rdtsc" : "=a" (low), "=d" (high));
|
||||
|
Reference in New Issue
Block a user