X-Git-Url: https://code.grnet.gr/git/archipelago/blobdiff_plain/0bf9fcf7e506d4478ec1aed1ba885c99c07db408..2ddecabedce388e321dd00e490e266dc28467902:/xseg/sys/util.h diff --git a/xseg/sys/util.h b/xseg/sys/util.h index 5af77c7..2f48e7a 100644 --- a/xseg/sys/util.h +++ b/xseg/sys/util.h @@ -8,11 +8,16 @@ #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 as xqindex - * and must fit into a ptr type + * and must fit into a pointer type */ typedef uint64_t xptr;