comparison src/proc.h @ 80:c976a8bbe8c5

add stac.h and Stac.cbc
author tobaru
date Wed, 09 Oct 2019 20:41:51 +0900
parents fb3e5a2f76c1
children a4307abefd0b
comparison
equal deleted inserted replaced
76:e6043075a1aa 80:c976a8bbe8c5
84 } cbc_arg; 84 } cbc_arg;
85 __code (*cbc_next)(); 85 __code (*cbc_next)();
86 struct spinlock *lk; 86 struct spinlock *lk;
87 }; 87 };
88 88
89 // typedef struct context_interface<Type,Imple>{
90 // // union Data* stack;
91 // // union Data* data;
92 //
93 // // __code push(Impl* stack,Type* data, __code next(...));
94 // // __code next(...);
95 //
96 // union Data* stack;
97 // union Data* data;
98 // union Data* data1;
99 // enum Code whenEmpty;
100 // enum Code clear;
101 // enum Code push;
102 // enum Code pop;
103 // enum Code pop2;
104 // enum Code isEmpty;
105 // enum Code get;
106 // enum Code get2;
107 // enum Code next;
108 // }context_interface;
109
110
89 // Process memory is laid out contiguously, low addresses first: 111 // Process memory is laid out contiguously, low addresses first:
90 // text 112 // text
91 // original data and bss 113 // original data and bss
92 // fixed-size stack 114 // fixed-size stack
93 // expandable heap 115 // expandable heap