diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-12 14:15:40 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-12 14:15:40 +0000 |
commit | 1fe4ef1bd813e285525a257af43ddbbcb8018b54 (patch) | |
tree | d1f69a2e1f05a7a601c5a8731b16b66c1dde09f9 /MdePkg/Library/BaseLib/Ia32 | |
parent | a7e63efe723159646d2a2968fffa7aa25df03fe1 (diff) | |
download | edk2-platforms-1fe4ef1bd813e285525a257af43ddbbcb8018b54.tar.xz |
1. Updated some files’ description files in MdePkg, EdkModulePkg & EdkNt32Pkg.
2. Update .msa files to add some missing files files in MdePkg
3. Add Help text to Mde Library related PCDs.
4. Fix some bugs in CpuId.S and CpuIdEx.S.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@919 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32')
-rw-r--r-- | MdePkg/Library/BaseLib/Ia32/CpuId.S | 44 | ||||
-rw-r--r-- | MdePkg/Library/BaseLib/Ia32/CpuIdEx.S | 4 |
2 files changed, 25 insertions, 23 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/CpuId.S b/MdePkg/Library/BaseLib/Ia32/CpuId.S index 989daba127..c394de926d 100644 --- a/MdePkg/Library/BaseLib/Ia32/CpuId.S +++ b/MdePkg/Library/BaseLib/Ia32/CpuId.S @@ -22,8 +22,6 @@ #------------------------------------------------------------------------------
-
-
#------------------------------------------------------------------------------
# VOID
# EFIAPI
@@ -35,29 +33,33 @@ # OUT UINT32 *RegisterOutEdx OPTIONAL
# )
#------------------------------------------------------------------------------
-.globl _AsmCpuid
+.globl _AsmCpuid
_AsmCpuid:
- push %ebx
- push %edi
- movl 12(%esp),%eax
+ pushl %ebx
+ pushl %ebp
+ movl %esp, %ebp
+ movl 12(%ebp), %eax
cpuid
- movl %ecx,%edi
- movl 16(%esp),%ecx
+ pushl %ecx
+ movl 16(%ebp), %ecx
jecxz L1
- movl %eax,(%ecx)
-L1:
- movl 20(%esp),%ecx
+ movl %eax, (%ecx)
+L1:
+ movl 20(%ebp), %ecx
jecxz L2
- movl %ebx,(%ecx)
-L2:
- movl 24(%esp),%ecx
+ movl %ebx, (%ecx)
+L2:
+ movl 24(%ebp), %ecx
jecxz L3
- movl %edi,(%ecx)
-L3:
- movl 28(%esp),%ecx
+ popl (%ecx)
+L3:
+ movl 28(%ebp), %ecx
jecxz L4
- movl %edx,(%ecx)
-L4:
- pop %edi
- pop %ebx
+ movl %edx, (%ecx)
+L4:
+ movl 12(%ebp), %eax
+ leave
+ popl %ebx
ret
+
+
diff --git a/MdePkg/Library/BaseLib/Ia32/CpuIdEx.S b/MdePkg/Library/BaseLib/Ia32/CpuIdEx.S index 43c23b6415..e5255fb1a3 100644 --- a/MdePkg/Library/BaseLib/Ia32/CpuIdEx.S +++ b/MdePkg/Library/BaseLib/Ia32/CpuIdEx.S @@ -55,13 +55,13 @@ L1: L2: movl 28(%ebp), %ecx jecxz L3 - popl %ecx + popl (%ecx) L3: movl 32(%ebp), %edx jecxz L4 movl %edx, (%ecx) L4: movl 12(%ebp), %eax - pop %ebx leave + pop %ebx ret |