* Code cleanup:
- remove trailing white space, trailing empty lines, C++ comments, etc.
- split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)
* Patches by Kenneth Johansson, 25 Jun 2003:
- major rework of command structure
(work done mostly by Michal Cendrowski and Joakim Kristiansen)
diff --git a/lib_mips/board.c b/lib_mips/board.c
index 2bbf029..11e5011 100644
--- a/lib_mips/board.c
+++ b/lib_mips/board.c
@@ -212,7 +212,7 @@
#ifdef DEBUG
printf ("Top of RAM usable for U-Boot at: %08lx\n", addr);
#endif
-
+
/* Reserve memory for U-Boot code, data & bss
* round down to next 16 kB limit
*/
@@ -304,7 +304,6 @@
void board_init_r (gd_t *id, ulong dest_addr)
{
DECLARE_GLOBAL_DATA_PTR;
-
cmd_tbl_t *cmdtp;
ulong size;
extern void malloc_bin_reloc (void);
@@ -329,7 +328,7 @@
/*
* We have to relocate the command table manually
*/
- for (cmdtp = &cmd_tbl[0]; cmdtp->name; cmdtp++) {
+ for (cmdtp = &__u_boot_cmd_start; cmdtp != &__u_boot_cmd_end; cmdtp++) {
ulong addr;
addr = (ulong) (cmdtp->cmd) + gd->reloc_off;
@@ -358,7 +357,7 @@
#ifndef CFG_ENV_IS_NOWHERE
env_name_spec += gd->reloc_off;
#endif
-
+
/* configure available FLASH banks */
size = flash_init();
display_flash_config (size);
@@ -434,4 +433,3 @@
puts ("### ERROR ### Please RESET the board ###\n");
for (;;);
}
-