summaryrefslogtreecommitdiff
path: root/cleopatre/u-boot-1.1.6/common
diff options
context:
space:
mode:
authordraskovic2009-09-24 16:47:41 +0000
committerdraskovic2009-09-24 16:47:41 +0000
commit122cf06895d3aa4c879a48a8d8b84270b1180170 (patch)
tree1eadbbe67d066fe0d9645a28b1b9ef07c3ba1c29 /cleopatre/u-boot-1.1.6/common
parent5c16e725c500c7580e294880e29dcf874a1b4bb9 (diff)
[CLEO][U-BOOT] Corrected compilation and definition erroros
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@5746 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cleopatre/u-boot-1.1.6/common')
-rw-r--r--cleopatre/u-boot-1.1.6/common/cmd_test.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/cleopatre/u-boot-1.1.6/common/cmd_test.c b/cleopatre/u-boot-1.1.6/common/cmd_test.c
index f8486716a5..25588c5975 100644
--- a/cleopatre/u-boot-1.1.6/common/cmd_test.c
+++ b/cleopatre/u-boot-1.1.6/common/cmd_test.c
@@ -3,27 +3,16 @@
#include <asm/io.h>
#include <asm/arch/hardware.h>
-extern int reset_hit;
-
-int record_timer = 0;
-
int timer_init (void);
#define TIMER_CUR_VAL ( *( (volatile unsigned int *)(0xc0000000 + 0x04) ) )
#if (CONFIG_COMMANDS & CFG_CMD_TEST)
-int do_test (void)
+int do_test (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
{
- int i = 0;
ulong nowtime = 0;
- ulong delta = 0;
-
- unsigned int status = 0;
- printf("reset_hit = %d\n", reset_hit);
-
-//record_timer = 1;
printf("\n--- START ---\n");
timer_init();
@@ -45,13 +34,11 @@ int do_test (void)
printf("\n === END ===\n");
-record_timer = 0;
-
return 0;
}
U_BOOT_CMD(
- test, 2, 1, do_test,
+ test, 3, 2, do_test,
"test\t- user defined function to test U-Boot status\n",
"user defined\n"
);