summaryrefslogtreecommitdiffstats
path: root/arch/x86/lib/gcc.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-06-11 11:14:52 -0700
committerTom Rini <trini@ti.com>2013-06-26 10:18:56 -0400
commitd8819f94d58d8c94c619431bc34232a52b2d9a6b (patch)
treee23d626a39c88355177444a25799d0e320279d3f /arch/x86/lib/gcc.c
parent5b7dcf311236f45ef9f2b1d6a72080bd3fe99ee5 (diff)
downloadtalos-obmc-uboot-d8819f94d58d8c94c619431bc34232a52b2d9a6b.tar.gz
talos-obmc-uboot-d8819f94d58d8c94c619431bc34232a52b2d9a6b.zip
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>
Diffstat (limited to 'arch/x86/lib/gcc.c')
-rw-r--r--arch/x86/lib/gcc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/lib/gcc.c b/arch/x86/lib/gcc.c
index 4043431eca..497ad75b7a 100644
--- a/arch/x86/lib/gcc.c
+++ b/arch/x86/lib/gcc.c
@@ -28,7 +28,9 @@
#define WRAP_LIBGCC_CALL(type, name) \
type __normal_##name(type a, type b) __attribute__((regparm(0))); \
type __wrap_##name(type a, type b); \
- type __wrap_##name(type a, type b) { return __normal_##name(a, b); }
+ type __attribute__((no_instrument_function)) \
+ __wrap_##name(type a, type b) \
+ { return __normal_##name(a, b); }
WRAP_LIBGCC_CALL(long long, __divdi3)
WRAP_LIBGCC_CALL(unsigned long long, __udivdi3)
OpenPOWER on IntegriCloud