]> xenbits.xensource.com Git - people/royger/xen-test-framework.git/commit
Make symbolic constant generation more generic
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Jan 2016 18:59:02 +0000 (18:59 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 11 Jan 2016 17:34:51 +0000 (17:34 +0000)
commita32880277118d3534223efb86aa382145c0d8768
tree320734b80c74ead6015c7feb02d4b3f82b0f5626
parent3d22e292bc005be4d25f2e862f0d30ed3e1c34bf
Make symbolic constant generation more generic

The existing _GDTE_ATTR() macros are fine for GDT entries, but not much use
for anything else.

Replace the existing VAR_MACRO() with VAR_MACRO_C1(), which works in the same
way but passes a constant through, and use this to implement TOK_OR() which
works like _GDTE_ATTR() but takes a parameter rather than a hard coded
SEG_ATTR_.

Document the entities fully, and fix them to work correctly with empty
__VA_ARGS__.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
include/arch/x86/symbolic-const.h
include/xtf/macro_magic.h