summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-19 06:41:20 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-19 06:41:20 +0000
commit9191f52b1a816592589f7747501d6d9446204cb9 (patch)
tree46e1ff1d95fafa10e4c6e9cd6bad5a82d30ed3fb
parent0338e33e47dead31e883ca919c196a0d705a05b8 (diff)
downloadedk2-9191f52b1a816592589f7747501d6d9446204cb9.tar.gz
Sync patch r12732 from main trunk.
PcAtChipsetPkg: Do right sign extension to avoid a wrong daylight value saving into "RTC" variable. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@12938 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
index 4e676b1bad..2887c5df27 100644
--- a/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
+++ b/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtc.c
@@ -1,7 +1,7 @@
/** @file
RTC Architectural Protocol GUID as defined in DxeCis 0.96.
-Copyright (c) 2006 - 2007, Intel Corporation
+Copyright (c) 2006 - 2011, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -414,7 +414,7 @@ PcRtcSetTime (
Global->Daylight = Time->Daylight;
TimerVar = Time->Daylight;
- TimerVar = (UINT32) ((TimerVar << 16) | Time->TimeZone);
+ TimerVar = (UINT32) ((TimerVar << 16) | (UINT16)(Time->TimeZone));
Status = EfiSetVariable (
L"RTC",
&gEfiCallerIdGuid,