summaryrefslogtreecommitdiff
path: root/sys/contrib/dev/acpica/rscreate.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/dev/acpica/rscreate.c')
-rw-r--r--sys/contrib/dev/acpica/rscreate.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/contrib/dev/acpica/rscreate.c b/sys/contrib/dev/acpica/rscreate.c
index 07f3f51266780..ceec3730d2199 100644
--- a/sys/contrib/dev/acpica/rscreate.c
+++ b/sys/contrib/dev/acpica/rscreate.c
@@ -3,7 +3,7 @@
* Module Name: rscreate - AcpiRsCreateResourceList
* AcpiRsCreatePciRoutingTable
* AcpiRsCreateByteStream
- * $Revision: 19 $
+ * $Revision: 21 $
*
******************************************************************************/
@@ -303,6 +303,9 @@ AcpiRsCreatePciRoutingTable (
NumberOfElements = PackageObject->Package.Count;
UserPrt = (PCI_ROUTING_TABLE *) Buffer;
+
+ Buffer = ROUND_PTR_UP_TO_8 (Buffer, UINT8);
+
for (Index = 0; Index < NumberOfElements; Index++)
{
/*
@@ -312,9 +315,9 @@ AcpiRsCreatePciRoutingTable (
* be zero because we cleared the return buffer earlier
*/
Buffer += UserPrt->Length;
- Buffer = ROUND_PTR_UP_TO_4 (Buffer, UINT8);
UserPrt = (PCI_ROUTING_TABLE *) Buffer;
+
/*
* Fill in the Length field with the information we
* have at this point.
@@ -405,7 +408,7 @@ AcpiRsCreatePciRoutingTable (
/* Now align the current length */
- UserPrt->Length = ROUND_UP_TO_32BITS (UserPrt->Length);
+ UserPrt->Length = ROUND_UP_TO_64BITS (UserPrt->Length);
/*
* Dereference the Source Index