* where a pointer to an object of type union acpi_operand_object can also
  * appear. This macro is used to distinguish them.
  *
- * The "Descriptor" field is the first field in both structures.
+ * The "DescriptorType" field is the second field in both structures.
  */
+#define ACPI_GET_DESCRIPTOR_PTR(d)      (((union acpi_descriptor *)(void *)(d))->common.common_pointer)
+#define ACPI_SET_DESCRIPTOR_PTR(d, o)   (((union acpi_descriptor *)(void *)(d))->common.common_pointer = o)
 #define ACPI_GET_DESCRIPTOR_TYPE(d)     (((union acpi_descriptor *)(void *)(d))->common.descriptor_type)
 #define ACPI_SET_DESCRIPTOR_TYPE(d, t)  (((union acpi_descriptor *)(void *)(d))->common.descriptor_type = t)
 
 
 
                /* Delete and unlink one cached state object */
 
-               next =
-                   ((struct acpi_object_common *)cache->list_head)->
-                   next_object;
+               next = ACPI_GET_DESCRIPTOR_PTR(cache->list_head);
                ACPI_FREE(cache->list_head);
 
                cache->list_head = next;
 
                /* Put the object at the head of the cache list */
 
-               ((struct acpi_object_common *)object)->next_object =
-                   cache->list_head;
+               ACPI_SET_DESCRIPTOR_PTR(object, cache->list_head);
                cache->list_head = object;
                cache->current_depth++;
 
                /* There is an object available, use it */
 
                object = cache->list_head;
-               cache->list_head =
-                   ((struct acpi_object_common *)object)->next_object;
+               cache->list_head = ACPI_GET_DESCRIPTOR_PTR(object);
 
                cache->current_depth--;