vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

tos.h (1067B)


      1 typedef struct Tos Tos;
      2 typedef struct Plink Plink;
      3 
      4 #if 0
      5 
      6 struct Tos {
      7 	struct			/* Per process profiling */
      8 	{
      9 		Plink	*pp;	/* known to be 0(ptr) */
     10 		Plink	*next;	/* known to be 4(ptr) */
     11 		Plink	*last;
     12 		Plink	*first;
     13 		ulong	pid;
     14 		ulong	what;
     15 	} prof;
     16 	uvlong	cyclefreq;	/* cycle clock frequency if there is one, 0 otherwise */
     17 	vlong	kcycles;	/* cycles spent in kernel */
     18 	vlong	pcycles;	/* cycles spent in process (kernel + user) */
     19 	ulong	pid;		/* might as well put the pid here */
     20 	ulong	clock;
     21 	/* top of stack is here */
     22 };
     23 #else
     24 
     25 struct Tos {
     26 	struct			/* Per process profiling */
     27 	{
     28 		uint32_t pp;	/* known to be 0(ptr) */
     29 		uint32_t next;	/* known to be 4(ptr) */
     30 		uint32_t last;
     31 		uint32_t first;
     32 		uint32_t	pid;
     33 		uint32_t	what;
     34 	} prof;
     35 	uvlong	cyclefreq;	/* cycle clock frequency if there is one, 0 otherwise */
     36 	vlong	kcycles;	/* cycles spent in kernel */
     37 	vlong	pcycles;	/* cycles spent in process (kernel + user) */
     38 	uint32_t	pid;		/* might as well put the pid here */
     39 	uint32_t	clock;
     40 	/* top of stack is here */
     41 };
     42 #endif
     43 
     44 extern Tos *_tos;