]> git.proxmox.com Git - mirror_edk2.git/blobdiff - QuarkSocPkg/QuarkNorthCluster/Smm/DxeSmm/QncSmmDispatcher/QNC/QNCSmmPeriodicTimer.c
QuarkSocPkg/QncSmmDispatcher: Fix context passed to SMI handlers
[mirror_edk2.git] / QuarkSocPkg / QuarkNorthCluster / Smm / DxeSmm / QncSmmDispatcher / QNC / QNCSmmPeriodicTimer.c
index 1d1030c0ae42d1dcf9215920bbc1e52726d96ed2..670ca91c5c95a67bdefa39f100e271609c2221fe 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 File to contain all the hardware specific stuff for the Periodical Timer dispatch protocol.\r
 \r
-Copyright (c) 2013-2015 Intel Corporation.\r
+Copyright (c) 2013-2016 Intel Corporation.\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
@@ -177,7 +177,7 @@ PeriodicTimerGetContext (
     // Update the elapsed time w/ the data from our tables\r
     //\r
     Record->CommBuffer.PeriodicTimer.ElapsedTime += TimerInterval->Interval;\r
-    *HwContext = Record->ChildContext;\r
+    CopyMem (HwContext, &Record->ChildContext, sizeof (QNC_SMM_CONTEXT));\r
   }\r
 }\r
 \r