mirror of
https://github.com/acpica/acpica/
synced 2025-01-22 09:22:16 +03:00
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:
parent
345f0f1b8e
commit
b87b30db63
2
source/include/actypes.h
Executable file → Normal file
2
source/include/actypes.h
Executable file → Normal file
@ -1474,8 +1474,8 @@ typedef struct acpi_resource
|
|||||||
#pragma pack()
|
#pragma pack()
|
||||||
|
|
||||||
|
|
||||||
#define ACPI_RS_SIZE_MIN 12
|
|
||||||
#define ACPI_RS_SIZE_NO_DATA 8 /* Id + Length fields */
|
#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_RS_SIZE(Type) (UINT32) (ACPI_RS_SIZE_NO_DATA + sizeof (Type))
|
||||||
|
|
||||||
#define ACPI_NEXT_RESOURCE(Res) (ACPI_RESOURCE *)((UINT8 *) Res + Res->Length)
|
#define ACPI_NEXT_RESOURCE(Res) (ACPI_RESOURCE *)((UINT8 *) Res + Res->Length)
|
||||||
|
Loading…
Reference in New Issue
Block a user