mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00: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:
parent
5b7dcf3112
commit
d8819f94d5
5 changed files with 10 additions and 7 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue