changeset 240:23a050ad151f

RedBoot TCP/stub speedup.
author msalter
date Mon, 15 Jul 2002 19:37:12 +0000
parents 8e901b135fea
children 9cb4b4bc7750
files packages/hal/arm/arch/current/ChangeLog packages/hal/arm/arch/current/include/arm_stub.h packages/redboot/current/ChangeLog packages/redboot/current/src/net/net_io.c
diffstat 4 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/arm/arch/current/ChangeLog
+++ b/packages/hal/arm/arch/current/ChangeLog
@@ -1,3 +1,7 @@
+2002-07-15  Mark Salter  <msalter@redhat.com>
+
+	* include/arm_stub.h: Comment out NUMREGBYTES.
+
 2002-05-28  Mark Salter  <msalter@redhat.com>
 
 	* cdl/hal_arm.cdl: Tweaked description for
--- a/packages/hal/arm/arch/current/include/arm_stub.h
+++ b/packages/hal/arm/arch/current/include/arm_stub.h
@@ -62,7 +62,8 @@ extern "C" {
 
 #define REGSIZE( _x_ ) (((_x_) < F0 || (_x_) >= FPS) ? 4 : 12)
 
-#define NUMREGBYTES ((16*4)+(8*12)+(2*4))
+// Comment out to allow for default gdb stub packet buffer which is larger.
+// #define NUMREGBYTES ((16*4)+(8*12)+(2*4))
 
 #ifndef TARGET_REGISTER_T_DEFINED
 #define TARGET_REGISTER_T_DEFINED
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -1,3 +1,7 @@
+2002-07-15  Mark Salter  <msalter@redhat.com>
+
+	* src/net/net_io.c: Increase size of out_buf to 1024 bytes.
+
 2002-07-11  Gary Thomas  <gary@chez-thomas.org>
 
 	* src/io.c (mon_read_char_with_timeout): Ensure interrupts are
--- a/packages/redboot/current/src/net/net_io.c
+++ b/packages/redboot/current/src/net/net_io.c
@@ -146,7 +146,7 @@ static int in_buflen = 0;
 static unsigned char in_buf[64];
 static unsigned char *in_bufp;
 static int out_buflen = 0;
-static unsigned char out_buf[64];
+static unsigned char out_buf[1024];
 static unsigned char *out_bufp;
 
 // Functions in this module