diff --git a/Assignment/Task 3/context.h b/Assignment/Task 3/context.h new file mode 100644 index 0000000000000000000000000000000000000000..b94b57a3c52311ee11074865ec522cdbf00bbda7 --- /dev/null +++ b/Assignment/Task 3/context.h @@ -0,0 +1,9 @@ +struct Context { + void *rip, *rsp; + void *rbx, *rbp, *r12, *r13, *r14, *r15; + }; + +extern "C" int get_context(Context *c); +extern "C" void set_context(Context *c); +extern "C" void swap_context(Context *out, Context *in); +