From 2db7d2d9d9d5825fd200ebe29962cf42dd998015 Mon Sep 17 00:00:00 2001 From: laforge Date: Wed, 27 Sep 2006 17:21:18 +0000 Subject: - increase number of large (2k) contextx to 8 - move req_ctx_find_get into ram, since this is frequently used within interrupt handlers and thus ought to be as fast as possible - correctly initialize req_ctx size (bugfix!) git-svn-id: https://svn.openpcd.org:2342/trunk@232 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- firmware/src/os/req_ctx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware/src/os/req_ctx.h') diff --git a/firmware/src/os/req_ctx.h b/firmware/src/os/req_ctx.h index 535267b..505e841 100644 --- a/firmware/src/os/req_ctx.h +++ b/firmware/src/os/req_ctx.h @@ -11,6 +11,7 @@ #define req_buf_hdr(x) (x->data[0]) #include +#include struct req_ctx { volatile u_int32_t state; @@ -37,7 +38,7 @@ struct req_ctx { #define RCTX_STATE_INVALID 0xff -extern struct req_ctx *req_ctx_find_get(int large, unsigned long old_state, unsigned long new_state); +extern struct req_ctx __ramfunc *req_ctx_find_get(int large, unsigned long old_state, unsigned long new_state); extern struct req_ctx *req_ctx_find_busy(void); extern void req_ctx_set_state(struct req_ctx *ctx, unsigned long new_state); extern void req_ctx_put(struct req_ctx *ctx); -- cgit v1.2.3