summaryrefslogtreecommitdiff
path: root/vere/pkg/noun/v2/vortex.h
diff options
context:
space:
mode:
Diffstat (limited to 'vere/pkg/noun/v2/vortex.h')
-rw-r--r--vere/pkg/noun/v2/vortex.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/vere/pkg/noun/v2/vortex.h b/vere/pkg/noun/v2/vortex.h
new file mode 100644
index 0000000..9e04832
--- /dev/null
+++ b/vere/pkg/noun/v2/vortex.h
@@ -0,0 +1,40 @@
+/// @file
+
+#ifndef U3_VORTEX_V2_H
+#define U3_VORTEX_V2_H
+
+#include "../vortex.h"
+
+#include "v2/allocate.h"
+#include "../version.h"
+
+ /** Aliases.
+ **/
+# define u3v_v2_arvo u3v_arvo
+
+ /** Data structures.
+ **/
+ /* u3v_v2_home: all internal (within image) state.
+ ** NB: version must be last for discriminability in north road
+ */
+ typedef struct _u3v_v2_home {
+ u3a_v2_road rod_u; // storage state
+ u3v_v2_arvo arv_u; // arvo state
+ u3v_version ver_w; // version number
+ } u3v_v2_home;
+
+ /** Globals.
+ **/
+ /// Arvo internal state.
+ extern u3v_v2_home* u3v_v2_Home;
+# define u3H_v2 u3v_v2_Home
+# define u3A_v2 (&(u3v_v2_Home->arv_u))
+
+ /** Functions.
+ **/
+ /* u3v_v2_mig_rewrite_compact(): rewrite arvo kernel for compaction.
+ */
+ void
+ u3v_v2_mig_rewrite_compact(void);
+
+#endif /* ifndef U3_VORTEX_V2_H */