- cmp FeaturePcdGet (PcdCpuSmmDebug), 0\r
- jz @3\r
- call @1\r
-@1:\r
- pop ebp\r
- mov eax, 80000001h\r
- cpuid\r
- bt edx, 29 ; check cpuid to identify X64 or IA32\r
- lea edi, [ebp - (@1 - _SmiEntryPoint) + 7fc8h]\r
- lea esi, [edi + 4]\r
- jnc @2\r
- add esi, 4\r
-@2:\r
- mov ecx, [esi]\r
- mov edx, [edi]\r
-@5:\r
- mov dr6, ecx\r
- mov dr7, edx ; restore DR6 & DR7 before running C code\r
-@3:\r
- mov ecx, [esp] ; CPU Index\r
-\r
- push ecx\r
- mov eax, SmiRendezvous\r
+ mov ebx, [esp] ; CPU Index\r
+\r
+ push ebx\r
+ mov eax, CpuSmmDebugEntry\r