Mercurial > hg > Members > anatofuz > CbC_xv6
diff 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 |
line wrap: on
line diff
--- a/src/proc.h Fri Aug 02 19:36:19 2019 +0900 +++ b/src/proc.h Wed Oct 09 20:41:51 2019 +0900 @@ -86,6 +86,28 @@ struct spinlock *lk; }; +// typedef struct context_interface<Type,Imple>{ +// // union Data* stack; +// // union Data* data; +// +// // __code push(Impl* stack,Type* data, __code next(...)); +// // __code next(...); +// +// union Data* stack; +// union Data* data; +// union Data* data1; +// enum Code whenEmpty; +// enum Code clear; +// enum Code push; +// enum Code pop; +// enum Code pop2; +// enum Code isEmpty; +// enum Code get; +// enum Code get2; +// enum Code next; +// }context_interface; + + // Process memory is laid out contiguously, low addresses first: // text // original data and bss