From 6492c2959cbea6dd6d46fc64267b88c19cf14e8a Mon Sep 17 00:00:00 2001
From: Harald Welte <laforge@gnumonks.org>
Date: Thu, 18 Nov 2010 23:06:43 +0100
Subject: req_ctx: Increase size of small req_ctx to 128 and have 16 instead of
 8

This is required to deal with bursts in SIM comminication while using
the SIMTRACE firmware
---
 firmware/src/os/req_ctx.c | 4 ++--
 firmware/src/os/req_ctx.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'firmware/src/os')

diff --git a/firmware/src/os/req_ctx.c b/firmware/src/os/req_ctx.c
index 73b6035..0e4816e 100644
--- a/firmware/src/os/req_ctx.c
+++ b/firmware/src/os/req_ctx.c
@@ -29,8 +29,8 @@
 /* FIXME: locking, FIFO order processing */
 
 #ifdef __AT91SAM7S64__
-#define NUM_RCTX_SMALL 4
-#define NUM_RCTX_LARGE 2
+#define NUM_RCTX_SMALL 16
+#define NUM_RCTX_LARGE 1
 #else
 #define NUM_RCTX_SMALL 8
 #define NUM_RCTX_LARGE 4
diff --git a/firmware/src/os/req_ctx.h b/firmware/src/os/req_ctx.h
index ac9ab3f..94b5c5a 100644
--- a/firmware/src/os/req_ctx.h
+++ b/firmware/src/os/req_ctx.h
@@ -2,7 +2,7 @@
 #define _REQ_CTX_H
 
 #define RCTX_SIZE_LARGE	2048
-#define RCTX_SIZE_SMALL	64
+#define RCTX_SIZE_SMALL	128
 
 #define MAX_HDRSIZE	sizeof(struct openpcd_hdr)
 #define MAX_REQSIZE	(64-MAX_HDRSIZE)
-- 
cgit v1.2.3