comparison VMS.h @ 32:65e5918731b8

Bugfix: initialize request pointer to NULL in newly created VP
author Me
date Wed, 01 Sep 2010 08:32:04 -0700
parents 0e008278fe3c
children e69579a0e797
comparison
equal deleted inserted replaced
10:4332e85b29bf 11:073454e80208
20 20
21 // make double-num-cores scheduling slots, plus extra for master 21 // make double-num-cores scheduling slots, plus extra for master
22 //#define NUM_SCHED_SLOTS (2 * NUM_CORES + 1) 22 //#define NUM_SCHED_SLOTS (2 * NUM_CORES + 1)
23 #define NUM_SCHED_SLOTS 3 23 #define NUM_SCHED_SLOTS 3
24 24
25 //128K stack.. compromise, want 10K virtPr 25 // 8K stack
26 #define VIRT_PROCR_STACK_SIZE 0x10000 26 #define VIRT_PROCR_STACK_SIZE 0x20000
27
28 //256M of total memory for VMS application to VMS__malloc
29 #define MASSIVE_MALLOC_SIZE 0x10000000
30
31 #define NUM_PREPEND_BYTES sizeof(FreeListElem) + sizeof(ownerElem);
27 32
28 #define SUCCESS 0 33 #define SUCCESS 0
29 34
30 #define writeVMSQ writePThdQ 35 #define writeVMSQ writeCASQ
31 #define readVMSQ readPThdQ 36 #define readVMSQ readCASQ
32 #define makeVMSQ makePThdQ 37 #define makeVMSQ makeCASQ
33 #define VMSQueueStruc PThdQueueStruc 38 #define VMSQueueStruc CASQueueStruc
34 39
35 //#define thdAttrs NULL //For PThreads 40 //#define thdAttrs NULL //For PThreads
36 41
37 typedef struct _SchedSlot SchedSlot; 42 typedef struct _SchedSlot SchedSlot;
38 typedef struct _VMSReqst VMSReqst; 43 typedef struct _VMSReqst VMSReqst;
102 107
103 108
104 109
105 typedef struct 110 typedef struct
106 { 111 {
107 SlaveScheduler slaveScheduler; 112 SlaveScheduler slaveScheduler;
108 RequestHandler requestHandler; 113 RequestHandler requestHandler;
109 114
110 SchedSlot **schedSlots; 115 SchedSlot **schedSlots;
111 SchedSlot **filledSlots; 116 SchedSlot **filledSlots;
112 int numToPrecede; 117 int numToPrecede;
113 118
114 volatile int stillRunning; 119 volatile int stillRunning;
115 120
116 VirtProcr *masterVirtPr; 121 VirtProcr *masterVirtPr;
117 122
118 void *semanticEnv; 123 void *semanticEnv;
119 void *OSEventStruc; //for future, when add I/O to BLIS 124 void *OSEventStruc; //for future, when add I/O to BLIS
120 125
121 void *coreLoopEndPt; //addr to jump to to shut down a coreLoop 126 void *coreLoopEndPt; //addr to jump to to shut down a coreLoop
122 127
123 int setupComplete; 128 int setupComplete;
129
130 void *mallocChunk;
124 } 131 }
125 MasterEnv; 132 MasterEnv;
126 133
127 134
128 //========================================================== 135 //==========================================================