From 71c52dba2bf42937e6c6b736393eeecb11f10d8f Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 11 Jun 2013 11:14:42 -0700 Subject: Add trace support to generic board Add hooks for tracing to generic board, including: - allow early tracing to start early as possible in U-Boot - reserve memory for trace buffer - copy early trace buffer to main trace buffer after relocation - setup full tracing support after relocation Signed-off-by: Simon Glass --- include/asm-generic/global_data.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/asm-generic/global_data.h') diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 3e9ca11..8cfc3fa 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -82,6 +82,9 @@ typedef struct global_data { unsigned long fdt_size; /* Space reserved for relocated FDT */ void **jt; /* jump table */ char env_buf[32]; /* buffer for getenv() before reloc. */ +#ifdef CONFIG_TRACE + void *trace_buff; /* The trace buffer */ +#endif struct arch_global_data arch; /* architecture-specific data */ } gd_t; #endif -- cgit v1.1