summaryrefslogtreecommitdiff
path: root/source/components/resources/rsutils.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2013-05-17 23:13:40 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2013-05-17 23:13:40 +0000
commitb7f987c19dad2c6d33c64e7f96a9b4deca9e2650 (patch)
tree740dae2325e162bb086ea6e7e5d481c4b669e232 /source/components/resources/rsutils.c
parentb4a951799e313e9ec15d955b72dd3097e4880724 (diff)
Notes
Diffstat (limited to 'source/components/resources/rsutils.c')
-rw-r--r--source/components/resources/rsutils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/components/resources/rsutils.c b/source/components/resources/rsutils.c
index fd54dabf5e11..a453efe0a626 100644
--- a/source/components/resources/rsutils.c
+++ b/source/components/resources/rsutils.c
@@ -176,6 +176,7 @@ AcpiRsMoveData (
case ACPI_RSC_MOVE_GPIO_RES:
case ACPI_RSC_MOVE_SERIAL_VEN:
case ACPI_RSC_MOVE_SERIAL_RES:
+
ACPI_MEMCPY (Destination, Source, ItemCount);
return;
@@ -186,21 +187,25 @@ AcpiRsMoveData (
*/
case ACPI_RSC_MOVE16:
case ACPI_RSC_MOVE_GPIO_PIN:
+
ACPI_MOVE_16_TO_16 (&ACPI_CAST_PTR (UINT16, Destination)[i],
&ACPI_CAST_PTR (UINT16, Source)[i]);
break;
case ACPI_RSC_MOVE32:
+
ACPI_MOVE_32_TO_32 (&ACPI_CAST_PTR (UINT32, Destination)[i],
&ACPI_CAST_PTR (UINT32, Source)[i]);
break;
case ACPI_RSC_MOVE64:
+
ACPI_MOVE_64_TO_64 (&ACPI_CAST_PTR (UINT64, Destination)[i],
&ACPI_CAST_PTR (UINT64, Source)[i]);
break;
default:
+
return;
}
}