From 8567da117b151c67df8e4fe6782c7d5a235f44b1 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 5 May 2021 19:50:06 +0000 Subject: [PATCH] chore: decompose arch context t --- runtime/include/arch/arch_context_t.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 runtime/include/arch/arch_context_t.h diff --git a/runtime/include/arch/arch_context_t.h b/runtime/include/arch/arch_context_t.h new file mode 100644 index 0000000..ef5ef5c --- /dev/null +++ b/runtime/include/arch/arch_context_t.h @@ -0,0 +1,14 @@ +#pragma once + +#include + +#include "arch/reg_t.h" +#include "arch/ureg_t.h" +#include "arch/arch_context_variant_t.h" + +struct arch_context { + arch_context_variant_t variant; + reg_t regs[UREG_COUNT]; + mcontext_t mctx; + bool preemptable; +};