diff runtime/context.h @ 67:d1569087348f

Some small optimizations
author Mike Pavone <pavone@retrodev.com>
date Mon, 07 Jun 2010 01:15:16 -0400
parents d4b44ae2e34a
children a68e6828d896
line wrap: on
line diff
--- a/runtime/context.h	Sun Jun 06 20:29:10 2010 -0400
+++ b/runtime/context.h	Mon Jun 07 01:15:16 2010 -0400
@@ -5,12 +5,12 @@
 #include "plat_types.h"
 #include "func.h"
 
-#define STACK_CHUNK_SIZE 4096-(sizeof(struct stackchunk *)*2+sizeof(uint32_t))
+#define STACK_CHUNK_SIZE 4096-(sizeof(struct stackchunk *)*2+sizeof(char *))
 
 typedef struct stackchunk {
 	struct    stackchunk * next;
 	struct    stackchunk * prev;
-	uint32_t  used;
+	char      *free_space;
 	char      data[STACK_CHUNK_SIZE];
 } stackchunk;