9os

Experimental kernel using plan9 ideas for embedded device
git clone git://git.simple-cc.org/9os
Log | Files | Refs | README | LICENSE

types.h (462B)


      1 /* TODO: Move these bits to other place */
      2 
      3 #define STACKADDR 0x7FFFFFFFFFFFFFF0
      4 #define KSTACKADDR 0xFFFFFFFFFFFFFFF0
      5 #define MAXTID 32767
      6 #define NR_TASKS 16
      7 #define NR_WINS  32
      8 
      9 #define NR_MPOINTS 4
     10 #define NR_CHANS  20
     11 
     12 typedef int atomic_t;
     13 typedef unsigned long mutex_t;
     14 typedef unsigned long spinlock_t;
     15 typedef unsigned long long phyaddr_t;
     16 typedef struct context Context;
     17 
     18 struct ptable {
     19 	int assid;
     20 };
     21 
     22 struct context {
     23 	void *stack;
     24 	void *entry;
     25 };