Fix wrong resource descriptor length for 64-bit build.

The "minimal" descriptors such as EndTag are calculated as 12 bytes
long, but the actual length in the internal descriptor is 16 because
of the round-up to 8 on 64-bit build. BZ 728
This commit is contained in:
Robert Moore 2008-06-26 15:42:22 -07:00
parent 345f0f1b8e
commit b87b30db63

2
source/include/actypes.h Executable file → Normal file
View File

@ -1474,8 +1474,8 @@ typedef struct acpi_resource
#pragma pack()
#define ACPI_RS_SIZE_MIN 12
#define ACPI_RS_SIZE_NO_DATA 8 /* Id + Length fields */
#define ACPI_RS_SIZE_MIN (UINT32) ACPI_ROUND_UP_TO_NATIVE_WORD (12)
#define ACPI_RS_SIZE(Type) (UINT32) (ACPI_RS_SIZE_NO_DATA + sizeof (Type))
#define ACPI_NEXT_RESOURCE(Res) (ACPI_RESOURCE *)((UINT8 *) Res + Res->Length)