From 27f56783efda457d6e8779db07fcac68ad07c1da Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Tue, 11 Oct 2011 14:16:28 -0500 Subject: [PATCH] Accept default length for md above 64 kiB boundary Only truncate when a read without a length would cross from low to high memory. --- ui/devcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/devcmd.c b/ui/devcmd.c index 973aa0b..1a0c95e 100644 --- a/ui/devcmd.c +++ b/ui/devcmd.c @@ -75,7 +75,7 @@ int cmd_md(char **arg) len_text); return -1; } - } else if (offset + length > 0x10000) { + } else if (offset < 0x10000 && offset + length > 0x10000) { length = 0x10000 - offset; }