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>
This commit is contained in:
parent
bd17f7b877
commit
7596c54dba
@ -16,16 +16,7 @@
|
|||||||
#ifndef __TRACE_H
|
#ifndef __TRACE_H
|
||||||
#define __TRACE_H
|
#define __TRACE_H
|
||||||
|
|
||||||
|
#if !ENV_ROMSTAGE_OR_BEFORE && CONFIG(TRACE)
|
||||||
#ifdef __PRE_RAM__
|
|
||||||
|
|
||||||
#define DISABLE_TRACE
|
|
||||||
#define ENABLE_TRACE
|
|
||||||
#define DISABLE_TRACE_ON_FUNCTION
|
|
||||||
|
|
||||||
#else /* !__PRE_RAM__ */
|
|
||||||
|
|
||||||
#if CONFIG(TRACE) && !defined(__SMM__)
|
|
||||||
|
|
||||||
void __cyg_profile_func_enter(void *, void *)
|
void __cyg_profile_func_enter(void *, void *)
|
||||||
__attribute__((no_instrument_function));
|
__attribute__((no_instrument_function));
|
||||||
@ -46,5 +37,5 @@ extern volatile int trace_dis;
|
|||||||
#define DISABLE_TRACE_ON_FUNCTION
|
#define DISABLE_TRACE_ON_FUNCTION
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user