static uint32 local_my_wait_event_info;
uint32 *my_wait_event_info = &local_my_wait_event_info;
+#define WAIT_EVENT_CLASS_MASK 0xFF000000
+#define WAIT_EVENT_ID_MASK 0x0000FFFF
/*
* Configure wait event reporting to report wait events to *wait_event_info.
if (wait_event_info == 0)
return NULL;
- classId = wait_event_info & 0xFF000000;
+ classId = wait_event_info & WAIT_EVENT_CLASS_MASK;
switch (classId)
{
if (wait_event_info == 0)
return NULL;
- classId = wait_event_info & 0xFF000000;
- eventId = wait_event_info & 0x0000FFFF;
+ classId = wait_event_info & WAIT_EVENT_CLASS_MASK;
+ eventId = wait_event_info & WAIT_EVENT_ID_MASK;
switch (classId)
{