[U-Boot] [PATCH] [U-BOOT] Zoom2 & Zoom3: introduced a macro to use a different buffer size when compiling for Zoom2 or Zoom3.
Aldo Cedillo
aldocedillo at ti.com
Tue Aug 31 01:58:56 CEST 2010
From: Aldo Brett Cedillo Martinez <aldo.cedillo at ti.com>
Zoom2 and Zoom2 used to hang with "md" command. It was due to a problem
with a buffer size in print_buffer() function. A macro was introduced
to use a different buffer size in case of compiling for Zoom2 and Zoom3.
Jeff could you please test it on your board with the Zoom3 initial support
patch.
Sandeep I also saw this behaving in Zoom2, so maybe I could send a patch
that introduces only Zoom2 change, which could be introduced in TI tree
without waiting for Zoom3 initial support for going mainline.
Signed-off-by: Aldo Brett Cedillo Martinez <aldo.cedillo at ti.com>
---
lib/display_options.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/display_options.c b/lib/display_options.c
index 20319e6..99e43f7 100644
--- a/lib/display_options.c
+++ b/lib/display_options.c
@@ -101,7 +101,12 @@ void print_size(unsigned long long size, const char *s)
#define DEFAULT_LINE_LENGTH_BYTES (16)
int print_buffer (ulong addr, void* data, uint width, uint count, uint linelen)
{
+#if defined(CONFIG_OMAP3_ZOOM2) || defined(CONFIG_OMAP3_ZOOM3)
+ uint8_t linebuf[DEFAULT_LINE_LENGTH_BYTES];
+#else
uint8_t linebuf[MAX_LINE_LENGTH_BYTES + 1];
+#endif /* CONFIG_OMAP3 */
+
uint32_t *uip = (void*)linebuf;
uint16_t *usp = (void*)linebuf;
uint8_t *ucp = (void*)linebuf;
--
1.6.3.3
More information about the U-Boot
mailing list