This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
RedBoot TCP packet size tweak
- From: Mark Salter <msalter at redhat dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Mon, 15 Jul 2002 15:38:56 -0400
- Subject: RedBoot TCP packet size tweak
This removes an artificially small limit to packet sizes for data
packets coming from RedBoot. A memory dump (in GDB) went from 20
seconds down to 2.5 seconds.
--Mark
Index: hal/arm/arch/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arch/current/ChangeLog,v
retrieving revision 1.71
diff -u -p -5 -r1.71 ChangeLog
--- hal/arm/arch/current/ChangeLog 31 May 2002 01:05:54 -0000 1.71
+++ hal/arm/arch/current/ChangeLog 15 Jul 2002 19:06:37 -0000
@@ -1,5 +1,9 @@
+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
CYGHWR_REDBOOT_ARM_LINUX_EXEC_ADDRESS.
Add CYGHWR_REDBOOT_ARM_LINUX_TAGS_ADDRESS.
Index: hal/arm/arch/current/include/arm_stub.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/arm/arch/current/include/arm_stub.h,v
retrieving revision 1.13
diff -u -p -5 -r1.13 arm_stub.h
--- hal/arm/arch/current/include/arm_stub.h 23 May 2002 23:01:42 -0000 1.13
+++ hal/arm/arch/current/include/arm_stub.h 15 Jul 2002 19:06:38 -0000
@@ -60,11 +60,12 @@ extern "C" {
#define NUMREGS (16+8+2) // 16 GPR, 8 FPR (unused), 2 PS
#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
typedef unsigned long target_register_t;
#endif
Index: redboot/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.60
diff -u -p -5 -r1.60 ChangeLog
--- redboot/current/ChangeLog 11 Jul 2002 16:39:47 -0000 1.60
+++ redboot/current/ChangeLog 15 Jul 2002 19:06:43 -0000
@@ -1,5 +1,9 @@
+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
disabled on all I/O channels, except for the current console.
This is done when selecting a console, as this process causes
Index: redboot/current/src/net/net_io.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/net/net_io.c,v
retrieving revision 1.26
diff -u -p -5 -r1.26 net_io.c
--- redboot/current/src/net/net_io.c 9 Jul 2002 20:37:54 -0000 1.26
+++ redboot/current/src/net/net_io.c 15 Jul 2002 19:06:44 -0000
@@ -144,11 +144,11 @@ static int orig_console, orig_debug;
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
static void net_io_flush(void);
static void net_io_revert_console(void);