summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/EbcDxe/EbcInt.c
diff options
context:
space:
mode:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-15 07:48:11 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-15 07:48:11 +0000
commitc9325700d0ef25eaf45077928af3f93b15ac5fe0 (patch)
treec46ae68c26db3a5a6a9e58b37b53265aa2f770d3 /MdeModulePkg/Universal/EbcDxe/EbcInt.c
parentf6b4e53dfe43c27d448cedb57059e5b7ca236dd8 (diff)
downloadedk2-platforms-c9325700d0ef25eaf45077928af3f93b15ac5fe0.tar.xz
Refine soma code to make code run safely.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10877 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/EbcDxe/EbcInt.c')
-rw-r--r--MdeModulePkg/Universal/EbcDxe/EbcInt.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/MdeModulePkg/Universal/EbcDxe/EbcInt.c b/MdeModulePkg/Universal/EbcDxe/EbcInt.c
index 9357dcd26e..dddfd58566 100644
--- a/MdeModulePkg/Universal/EbcDxe/EbcInt.c
+++ b/MdeModulePkg/Universal/EbcDxe/EbcInt.c
@@ -767,14 +767,14 @@ EbcDebugSignalException (
//
// Initialize the context structure
//
- EbcContext.R0 = VmPtr->Gpr[0];
- EbcContext.R1 = VmPtr->Gpr[1];
- EbcContext.R2 = VmPtr->Gpr[2];
- EbcContext.R3 = VmPtr->Gpr[3];
- EbcContext.R4 = VmPtr->Gpr[4];
- EbcContext.R5 = VmPtr->Gpr[5];
- EbcContext.R6 = VmPtr->Gpr[6];
- EbcContext.R7 = VmPtr->Gpr[7];
+ EbcContext.R0 = (UINT64) VmPtr->Gpr[0];
+ EbcContext.R1 = (UINT64) VmPtr->Gpr[1];
+ EbcContext.R2 = (UINT64) VmPtr->Gpr[2];
+ EbcContext.R3 = (UINT64) VmPtr->Gpr[3];
+ EbcContext.R4 = (UINT64) VmPtr->Gpr[4];
+ EbcContext.R5 = (UINT64) VmPtr->Gpr[5];
+ EbcContext.R6 = (UINT64) VmPtr->Gpr[6];
+ EbcContext.R7 = (UINT64) VmPtr->Gpr[7];
EbcContext.Ip = (UINT64)(UINTN)VmPtr->Ip;
EbcContext.Flags = VmPtr->Flags;
EbcContext.ControlFlags = 0;
@@ -937,14 +937,14 @@ EbcDebugPeriodic (
//
// Initialize the context structure
//
- EbcContext.R0 = VmPtr->Gpr[0];
- EbcContext.R1 = VmPtr->Gpr[1];
- EbcContext.R2 = VmPtr->Gpr[2];
- EbcContext.R3 = VmPtr->Gpr[3];
- EbcContext.R4 = VmPtr->Gpr[4];
- EbcContext.R5 = VmPtr->Gpr[5];
- EbcContext.R6 = VmPtr->Gpr[6];
- EbcContext.R7 = VmPtr->Gpr[7];
+ EbcContext.R0 = (UINT64) VmPtr->Gpr[0];
+ EbcContext.R1 = (UINT64) VmPtr->Gpr[1];
+ EbcContext.R2 = (UINT64) VmPtr->Gpr[2];
+ EbcContext.R3 = (UINT64) VmPtr->Gpr[3];
+ EbcContext.R4 = (UINT64) VmPtr->Gpr[4];
+ EbcContext.R5 = (UINT64) VmPtr->Gpr[5];
+ EbcContext.R6 = (UINT64) VmPtr->Gpr[6];
+ EbcContext.R7 = (UINT64) VmPtr->Gpr[7];
EbcContext.Ip = (UINT64)(UINTN)VmPtr->Ip;
EbcContext.Flags = VmPtr->Flags;
EbcContext.ControlFlags = 0;