fix mt-mapperd pithos read bug. plus some minor fixes
[archipelago] / xseg / sys / util.h
index 0c46718..2f48e7a 100644 (file)
@@ -8,10 +8,17 @@
 #define XSEGLOG(...) (xseg_snprintf(__xseg_errbuf, 4096, FMTARG("%s: ", __func__, ## __VA_ARGS__, "")), \
                     __xseg_errbuf[4095] = 0, __xseg_log(__xseg_errbuf))
 
+/* general purpose xflags */
+#define X_ALLOC ((uint32_t) (1 << 0))
+#define X_LOCAL ((uint32_t) (1 << 1))
+
+
 typedef uint64_t xpointer;
 
 /* type to be used as absolute pointer
- * this should be the same with xqindex */
+ * this should be the same as xqindex
+ * and must fit into a pointer type
+ */
 typedef uint64_t xptr; 
 
 #define Noneidx ((xqindex)-1)