aboutsummaryrefslogtreecommitdiff
path: root/arch/nios2
diff options
context:
space:
mode:
authorValentin Longchamp <valentin.longchamp@keymile.com>2011-08-03 02:37:01 +0000
committerWolfgang Denk <wd@denx.de>2011-10-05 22:03:10 +0200
commit79843950b26980cc0a62954bf49509de301607f3 (patch)
treefbfb2b49a38f92bf7b1c6b427f3b8c7ed6e4dde1 /arch/nios2
parent3e161ced8fd3276aa77e4276e9237ae972b21f33 (diff)
downloadu-boot-linaro-stable-79843950b26980cc0a62954bf49509de301607f3.tar.gz
POST: add post_log_res field for post results in global data
The current post_log_word in global data is currently split into 2x 16 bits: half for the test start, half for the test success. Since we alredy have more than 16 POST tests defined and more could be defined, this may result in an overflow and the post_output_backlog would not work for the tests defined further of these 16 positions. An additional field is added to global data so that we can now support up to 32 (depending of architecture) tests. The post_log_word is only used to record the start of the test and the new field post_log_res for the test success (or failure). The post_output_backlog is for this change also adapted. Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/include/asm/global_data.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/nios2/include/asm/global_data.h b/arch/nios2/include/asm/global_data.h
index d9f06645a..4b86fbdac 100644
--- a/arch/nios2/include/asm/global_data.h
+++ b/arch/nios2/include/asm/global_data.h
@@ -37,6 +37,7 @@ typedef struct global_data {
unsigned long env_valid; /* Checksum of Environment valid */
#if defined(CONFIG_POST) || defined(CONFIG_LOGBUFFER)
unsigned long post_log_word; /* Record POST activities */
+ unsigned long post_log_res; /* success of POST test */
unsigned long post_init_f_time; /* When post_init_f started */
#endif
void **jt; /* Standalone app jump table */