summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-13 10:51:04 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-23 21:38:50 +0000
commit7596c54dba82793fa53d05925ded98ffb4d3c7db (patch)
tree7cd738e9ad85c12db38353ada137536f2f4ab19c /src
parentbd17f7b87779abc9c749cf4bf243307c705d9b47 (diff)
lib/trace: Replace __PRE_RAM__ use
Change-Id: I957be92594aced2e8465e7f94d8d42e44c3418d7 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35399 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/include/trace.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/include/trace.h b/src/include/trace.h
index 4f5b8c4e04..aed69a8963 100644
--- a/src/include/trace.h
+++ b/src/include/trace.h
@@ -16,16 +16,7 @@
#ifndef __TRACE_H
#define __TRACE_H
-
-#ifdef __PRE_RAM__
-
-#define DISABLE_TRACE
-#define ENABLE_TRACE
-#define DISABLE_TRACE_ON_FUNCTION
-
-#else /* !__PRE_RAM__ */
-
-#if CONFIG(TRACE) && !defined(__SMM__)
+#if !ENV_ROMSTAGE_OR_BEFORE && CONFIG(TRACE)
void __cyg_profile_func_enter(void *, void *)
__attribute__((no_instrument_function));
@@ -46,5 +37,5 @@ extern volatile int trace_dis;
#define DISABLE_TRACE_ON_FUNCTION
#endif
-#endif
+
#endif