diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-05-08 04:11:25 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-05-08 04:11:25 +0000 |
commit | 394bbc5930f78732f0bc5daf286beb3f8e39f27d (patch) | |
tree | 92889cc38410cb492cedf4df4a99143f35bbbf52 /DuetPkg/8254TimerDxe/Timer.c | |
parent | 61e334303b59d28e0baa1737a5e5751aad301e32 (diff) | |
download | edk2-platforms-394bbc5930f78732f0bc5daf286beb3f8e39f27d.tar.xz |
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
Diffstat (limited to 'DuetPkg/8254TimerDxe/Timer.c')
-rw-r--r-- | DuetPkg/8254TimerDxe/Timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/DuetPkg/8254TimerDxe/Timer.c b/DuetPkg/8254TimerDxe/Timer.c index f74827061e..c7deadd737 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
|