git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6639 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2008-11-19 15:22:53 +00:00
parent ee6c452c81
commit 6f890d5b40
30 changed files with 47 additions and 47 deletions

View File

@ -183,14 +183,14 @@ ASM_PFX(InternalAsmThunk16):
popfl
lidtl 0x24(%esp)
lea 0xffffffcc(%ebp), %eax
pop %gs
pop %fs
pop %es
pop %ds
pop %edi
pop %esi
pop %ebx
pop %ebp
pop %gs
pop %fs
pop %es
pop %ds
pop %edi
pop %esi
pop %ebx
pop %ebp
ret
.const:

View File

@ -47,7 +47,7 @@ MemoryFence::
.type DisableInterrupts, @function
DisableInterrupts::
rsm 0x4000
rsm 0x4000
srlz.d;;
br.ret.dpnt b0;;
@ -57,7 +57,7 @@ DisableInterrupts::
.type EnableInterrupts, @function
EnableInterrupts::
ssm 0x4000
ssm 0x4000
srlz.d;;
br.ret.dpnt b0;;
@ -67,10 +67,10 @@ EnableInterrupts::
.type EnableDisableInterrupts, @function
EnableDisableInterrupts::
ssm 0x4000
ssm 0x4000
srlz.d;;
srlz.i;;
rsm 0x4000
rsm 0x4000
srlz.d;;
br.ret.dpnt b0;;

View File

@ -21,5 +21,5 @@
.global ASM_PFX(CpuBreakpoint)
ASM_PFX(CpuBreakpoint):
int $0x3
ret
int $0x3
ret

View File

@ -32,5 +32,5 @@
.global ASM_PFX(AsmReadDr5)
.align 16
ASM_PFX(AsmReadDr5):
mov %dr5, %rax
mov %dr5, %rax
ret

View File

@ -32,5 +32,5 @@
.global ASM_PFX(AsmReadDr6)
.align 16
ASM_PFX(AsmReadDr6):
mov %dr6, %rax
mov %dr6, %rax
ret

View File

@ -32,5 +32,5 @@
.global ASM_PFX(AsmReadDr7)
.align 16
ASM_PFX(AsmReadDr7):
mov %dr7, %rax
mov %dr7, %rax
ret

View File

@ -32,5 +32,5 @@
.global ASM_PFX(AsmReadDs)
.align 16
ASM_PFX(AsmReadDs):
movl %ds, %eax
movl %ds, %eax
ret

View File

@ -32,5 +32,5 @@
.global ASM_PFX(AsmReadMm0)
.align 16
ASM_PFX(AsmReadMm0):
movd %mm0, %rax
movd %mm0, %rax
ret

View File

@ -32,5 +32,5 @@
.global ASM_PFX(AsmReadMm1)
.align 16
ASM_PFX(AsmReadMm1):
movd %mm1, %rax
movd %mm1, %rax
ret

View File

@ -32,5 +32,5 @@
.global ASM_PFX(AsmReadMm2)
.align 16
ASM_PFX(AsmReadMm2):
movd %mm2, %rax
movd %mm2, %rax
ret

View File

@ -32,5 +32,5 @@
.global ASM_PFX(AsmReadMm3)
.align 16
ASM_PFX(AsmReadMm3):
movd %mm3, %rax
movd %mm3, %rax
ret

View File

@ -32,5 +32,5 @@
.global ASM_PFX(AsmReadMm4)
.align 16
ASM_PFX(AsmReadMm4):
movd %mm4, %rax
movd %mm4, %rax
ret

View File

@ -32,5 +32,5 @@
.global ASM_PFX(AsmReadMm5)
.align 16
ASM_PFX(AsmReadMm5):
movd %mm5, %rax
movd %mm5, %rax
ret

View File

@ -32,5 +32,5 @@
.global ASM_PFX(AsmReadMm6)
.align 16
ASM_PFX(AsmReadMm6):
movd %mm6, %rax
movd %mm6, %rax
ret

View File

@ -32,5 +32,5 @@
.global ASM_PFX(AsmReadMm7)
.align 16
ASM_PFX(AsmReadMm7):
movd %mm7, %rax
movd %mm7, %rax
ret

View File

@ -31,5 +31,5 @@
#------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteMm0)
ASM_PFX(AsmWriteMm0):
movd %rcx, %mm0
movd %rcx, %mm0
ret

View File

@ -31,5 +31,5 @@
#------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteMm1)
ASM_PFX(AsmWriteMm1):
movd %rcx, %mm1
movd %rcx, %mm1
ret

View File

@ -31,5 +31,5 @@
#------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteMm2)
ASM_PFX(AsmWriteMm2):
movd %rcx, %mm2
movd %rcx, %mm2
ret

View File

@ -31,5 +31,5 @@
#------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteMm3)
ASM_PFX(AsmWriteMm3):
movd %rcx, %mm3
movd %rcx, %mm3
ret

View File

@ -31,5 +31,5 @@
#------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteMm4)
ASM_PFX(AsmWriteMm4):
movd %rcx, %mm4
movd %rcx, %mm4
ret

View File

@ -31,5 +31,5 @@
#------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteMm5)
ASM_PFX(AsmWriteMm5):
movd %rcx, %mm5
movd %rcx, %mm5
ret

View File

@ -31,5 +31,5 @@
#------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteMm6)
ASM_PFX(AsmWriteMm6):
movd %rcx, %mm6
movd %rcx, %mm6
ret

View File

@ -31,5 +31,5 @@
#------------------------------------------------------------------------------
.global ASM_PFX(AsmWriteMm7)
ASM_PFX(AsmWriteMm7):
movd %rcx, %mm7
movd %rcx, %mm7
ret

View File

@ -33,7 +33,7 @@
.global ASM_PFX(AsmWriteMsr64)
.align 16
ASM_PFX(AsmWriteMsr64):
mov %rdx, %rax # meanwhile, rax <- return value
mov %rdx, %rax # meanwhile, rax <- return value
shr $0x20, %rdx # edx:eax contains the value to write
wrmsr
ret

View File

@ -48,10 +48,10 @@ ASM_PFX(InternalMemZeroMem):
mov rcx, rdx # rcx = Count
shr rcx, 3 # rcx = rcx / 8
cld
rep stosq
rep stosq
mov rcx, rdx # rcx = rdx
and rcx, 7 # rcx = rcx & 7
rep stosb
rep stosb
pop rax # rax = Buffer
pop rbx
pop rdi

View File

@ -47,10 +47,10 @@ InternalMemSetMem PROC USES rdi rbx
mov rcx, rdx ; rcx = Count
shr rcx, 3 ; rcx = rcx / 8
cld
rep stosq
rep stosq
mov rcx, rdx ; rcx = rdx
and rcx, 7 ; rcx = rcx & 7
rep stosb
rep stosb
pop rax ; rax = Buffer
ret
InternalMemSetMem ENDP

View File

@ -51,7 +51,7 @@ ZeroMem (
ASSERT (!(Buffer == NULL && Length > 0));
ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));
if (Length == 0) {
return Buffer;
return Buffer;
}
return InternalMemZeroMem (Buffer, Length);
}

View File

@ -34,11 +34,11 @@
;------------------------------------------------------------------------------
InternalMemSetMem PROC USES rdi
push rcx ; push Buffer
mov rax, r8 ; rax = Value
mov rdi, rcx ; rdi = Buffer
mov rcx, rdx ; rcx = Count
mov rax, r8 ; rax = Value
mov rdi, rcx ; rdi = Buffer
mov rcx, rdx ; rcx = Count
rep stosb
pop rax ; rax = Buffer
pop rax ; rax = Buffer
ret
InternalMemSetMem ENDP

View File

@ -36,7 +36,7 @@ GetHobList (
VOID
)
{
ASSERT (gHobList != NULL);
ASSERT (gHobList != NULL);
return gHobList;
}

View File

@ -47,7 +47,7 @@ HobLibConstructor (
{
EFI_STATUS Status;
Status = EfiGetSystemConfigurationTable (&gEfiHobListGuid, &mHobList);
Status = EfiGetSystemConfigurationTable (&gEfiHobListGuid, &mHobList);
ASSERT_EFI_ERROR (Status);
ASSERT (mHobList != NULL);
@ -69,7 +69,7 @@ GetHobList (
VOID
)
{
ASSERT (mHobList != NULL);
ASSERT (mHobList != NULL);
return mHobList;
}