114 static const struct test {
118 { 0x0000000000000000ul, 0 },
119 { 0x00007ffffffffffful, 0 },
124 { 0xffff800000000000ul, 0 },
125 { 0xfffffffffffffffful, 0 },
134 if ( res != t->fault )
136 " expected %pe, got %pe\n",
137 t->val ,
_p(t->fault),
_p(res));
void test_main(void)
To be implemented by each test, as its entry point.
static const struct test tests[]
static bool pv_write_cr4_safe(unsigned long val)
static exinfo_t stub_wrfsbase(unsigned long val)
static void test_wrfsbase_values(void)
static exinfo_t stub_rdgsbase(unsigned long unused)
static exinfo_t stub_rdfsbase(unsigned long unused)
static void test_fsgsbase_insns(bool should_ud)
static exinfo_t stub_wrgsbase(unsigned long val)