aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/src/os/req_ctx.c
diff options
context:
space:
mode:
authorMin Xu <min.xu@min-info.net>2014-10-25 21:09:19 +0200
committerHarald Welte <laforge@gnumonks.org>2014-11-11 22:30:54 +0100
commit9662f2830a076a089373f3a4e6ecd93515cd108f (patch)
tree6e6f629b112efed28c1f32f964375ff027bcf07c /firmware/src/os/req_ctx.c
parent4b98ba5d1c13aa620749997f85f24b20acf9ae69 (diff)
change number + qty of small/large req_ctx
Diffstat (limited to 'firmware/src/os/req_ctx.c')
-rw-r--r--firmware/src/os/req_ctx.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/firmware/src/os/req_ctx.c b/firmware/src/os/req_ctx.c
index a1495d9..722c099 100644
--- a/firmware/src/os/req_ctx.c
+++ b/firmware/src/os/req_ctx.c
@@ -27,19 +27,15 @@
#include "../openpcd.h"
/* FIXME: locking, FIFO order processing */
-#define NUM_RCTX_SMALL 0
-#define NUM_RCTX_LARGE 19
-// 8 * 128 + 4 * 2048 => 18 * 270 + 2 * 2048
-/*
#if defined(__AT91SAM7S64__) || defined(RUN_FROM_RAM)
-#define NUM_RCTX_SMALL 16
-#define NUM_RCTX_LARGE 1
+#define NUM_RCTX_SMALL 0
+#define NUM_RCTX_LARGE 8
#else
-#define NUM_RCTX_SMALL 8
-#define NUM_RCTX_LARGE 4
+#define NUM_RCTX_SMALL 0
+#define NUM_RCTX_LARGE 20
#endif
-*/
+
#define NUM_REQ_CTX (NUM_RCTX_SMALL+NUM_RCTX_LARGE)
static u_int8_t rctx_data[NUM_RCTX_SMALL][RCTX_SIZE_SMALL];