From 4b14e82e134bfcebfc2d7846a6a83fb9eefffd57 Mon Sep 17 00:00:00 2001 From: Rudolf Marek Date: Tue, 11 Sep 2012 15:06:17 +0200 Subject: [PATCH] Fix tracing compilation on SMM enabled targets. Disallow tracing while in SMM. Change-Id: Icde17629bb06a615cc48f017fd0cd1f7b720e62d Signed-off-by: Rudolf Marek Reviewed-on: http://review.coreboot.org/1503 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones --- src/include/trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/trace.h b/src/include/trace.h index ff5b6c2531..5171525f6e 100644 --- a/src/include/trace.h +++ b/src/include/trace.h @@ -29,7 +29,7 @@ #else /* !__PRE_RAM__ */ -#if CONFIG_TRACE +#if CONFIG_TRACE && !defined(__SMM__) void __cyg_profile_func_enter( void *, void * ) __attribute__ ((no_instrument_function));