From 394bbc5930f78732f0bc5daf286beb3f8e39f27d Mon Sep 17 00:00:00 2001 From: klu2 Date: Thu, 8 May 2008 04:11:25 +0000 Subject: 1) Fix some casting working in X64 building 2) Use SetMem/CopyMem function to do structure initialization to avoid X64 compiler call standard C library. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5180 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/8254TimerDxe/Timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'DuetPkg/8254TimerDxe') diff --git a/DuetPkg/8254TimerDxe/Timer.c b/DuetPkg/8254TimerDxe/Timer.c index f748270..c7deadd 100644 --- a/DuetPkg/8254TimerDxe/Timer.c +++ b/DuetPkg/8254TimerDxe/Timer.c @@ -265,7 +265,7 @@ Returns: // // Convert TimerPeriod into 8254 counts // - TimerCount = DivU64x32 (MultU64x32 (119318, (UINTN) TimerPeriod) + 500000, 1000000); + TimerCount = DivU64x32 (MultU64x32 (119318, (UINT32) TimerPeriod) + 500000, 1000000); // // Check for overflow -- cgit v1.1