summaryrefslogtreecommitdiff
path: root/common/cmd_nvedit.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2002-11-05 21:01:48 +0000
committerwdenk <wdenk>2002-11-05 21:01:48 +0000
commit2a3cb0207614427d301a4a6f8041267cada14bd8 (patch)
treea2f11d8eae5a70220fc39b15256edda024fb6856 /common/cmd_nvedit.c
parent56f94be3ef63732384063e110277ed89701b6471 (diff)
Quick & Dirty fix for log buffer problem when environment is not set
Trigger watchdog when reading the env - this might take a while. Set debugging baud rate for KUP4K board
Diffstat (limited to 'common/cmd_nvedit.c')
-rw-r--r--common/cmd_nvedit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index 08e888c08..0a19ce405 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -42,6 +42,7 @@
#include <common.h>
#include <command.h>
#include <environment.h>
+#include <watchdog.h>
#include <cmd_nvedit.h>
#include <linux/stddef.h>
#include <asm/byteorder.h>
@@ -459,6 +460,8 @@ char *getenv (uchar *name)
{
int i, nxt;
+ WATCHDOG_RESET();
+
for (i=0; env_get_char(i) != '\0'; i=nxt+1) {
int val;