From 9662f2830a076a089373f3a4e6ecd93515cd108f Mon Sep 17 00:00:00 2001 From: Min Xu Date: Sat, 25 Oct 2014 21:09:19 +0200 Subject: change number + qty of small/large req_ctx --- firmware/src/os/req_ctx.c | 14 +++++--------- firmware/src/os/req_ctx.h | 5 ++--- 2 files changed, 7 insertions(+), 12 deletions(-) (limited to 'firmware') 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]; diff --git a/firmware/src/os/req_ctx.h b/firmware/src/os/req_ctx.h index b576ffe..92c21a7 100644 --- a/firmware/src/os/req_ctx.h +++ b/firmware/src/os/req_ctx.h @@ -1,11 +1,10 @@ #ifndef _REQ_CTX_H #define _REQ_CTX_H -#define RCTX_SIZE_LARGE 1000 -#define RCTX_SIZE_SMALL 270 +#define RCTX_SIZE_LARGE 960 +#define RCTX_SIZE_SMALL 320 #define MAX_HDRSIZE sizeof(struct openpcd_hdr) -#define MAX_REQSIZE (64-MAX_HDRSIZE) #define req_buf_payload(x) (x->data[x->hdr_len]) #define req_buf_hdr(x) (x->data[0]) -- cgit v1.2.3