summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/board_f.c4
-rw-r--r--include/asm-generic/global_data.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/common/board_f.c b/common/board_f.c
index eb1a5f0e1e9..d9fe6f997ab 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -340,7 +340,7 @@ __weak int arch_setup_dest_addr(void)
static int setup_dest_addr(void)
{
- debug("Monitor len: %08lX\n", gd->mon_len);
+ debug("Monitor len: %08x\n", gd->mon_len);
/*
* Ram is setup, size stored in gd !!
*/
@@ -477,7 +477,7 @@ static int reserve_uboot(void)
gd->relocaddr &= ~(65536 - 1);
#endif
- debug("Reserving %ldk for U-Boot at: %08lx\n",
+ debug("Reserving %dk for U-Boot at: %08lx\n",
gd->mon_len >> 10, gd->relocaddr);
}
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index 0c8801500f0..06523cab522 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -72,6 +72,10 @@ struct global_data {
*/
unsigned int mem_clk;
/**
+ * @mon_len: monitor length in bytes
+ */
+ unsigned int mon_len;
+ /**
* @env_addr: address of environment structure
*
* @env_addr contains the address of the structure holding the
@@ -116,10 +120,6 @@ struct global_data {
*/
phys_size_t ram_size;
/**
- * @mon_len: monitor length in bytes
- */
- unsigned long mon_len;
- /**
* @irq_sp: IRQ stack pointer
*/
unsigned long irq_sp;