Detab
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6639 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -183,14 +183,14 @@ ASM_PFX(InternalAsmThunk16):
|
|||||||
popfl
|
popfl
|
||||||
lidtl 0x24(%esp)
|
lidtl 0x24(%esp)
|
||||||
lea 0xffffffcc(%ebp), %eax
|
lea 0xffffffcc(%ebp), %eax
|
||||||
pop %gs
|
pop %gs
|
||||||
pop %fs
|
pop %fs
|
||||||
pop %es
|
pop %es
|
||||||
pop %ds
|
pop %ds
|
||||||
pop %edi
|
pop %edi
|
||||||
pop %esi
|
pop %esi
|
||||||
pop %ebx
|
pop %ebx
|
||||||
pop %ebp
|
pop %ebp
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.const:
|
.const:
|
||||||
|
@@ -47,7 +47,7 @@ MemoryFence::
|
|||||||
.type DisableInterrupts, @function
|
.type DisableInterrupts, @function
|
||||||
|
|
||||||
DisableInterrupts::
|
DisableInterrupts::
|
||||||
rsm 0x4000
|
rsm 0x4000
|
||||||
srlz.d;;
|
srlz.d;;
|
||||||
br.ret.dpnt b0;;
|
br.ret.dpnt b0;;
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ DisableInterrupts::
|
|||||||
.type EnableInterrupts, @function
|
.type EnableInterrupts, @function
|
||||||
|
|
||||||
EnableInterrupts::
|
EnableInterrupts::
|
||||||
ssm 0x4000
|
ssm 0x4000
|
||||||
srlz.d;;
|
srlz.d;;
|
||||||
br.ret.dpnt b0;;
|
br.ret.dpnt b0;;
|
||||||
|
|
||||||
@@ -67,10 +67,10 @@ EnableInterrupts::
|
|||||||
.type EnableDisableInterrupts, @function
|
.type EnableDisableInterrupts, @function
|
||||||
|
|
||||||
EnableDisableInterrupts::
|
EnableDisableInterrupts::
|
||||||
ssm 0x4000
|
ssm 0x4000
|
||||||
srlz.d;;
|
srlz.d;;
|
||||||
srlz.i;;
|
srlz.i;;
|
||||||
rsm 0x4000
|
rsm 0x4000
|
||||||
srlz.d;;
|
srlz.d;;
|
||||||
|
|
||||||
br.ret.dpnt b0;;
|
br.ret.dpnt b0;;
|
||||||
|
@@ -21,5 +21,5 @@
|
|||||||
|
|
||||||
.global ASM_PFX(CpuBreakpoint)
|
.global ASM_PFX(CpuBreakpoint)
|
||||||
ASM_PFX(CpuBreakpoint):
|
ASM_PFX(CpuBreakpoint):
|
||||||
int $0x3
|
int $0x3
|
||||||
ret
|
ret
|
||||||
|
@@ -32,5 +32,5 @@
|
|||||||
.global ASM_PFX(AsmReadDr5)
|
.global ASM_PFX(AsmReadDr5)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(AsmReadDr5):
|
ASM_PFX(AsmReadDr5):
|
||||||
mov %dr5, %rax
|
mov %dr5, %rax
|
||||||
ret
|
ret
|
||||||
|
@@ -32,5 +32,5 @@
|
|||||||
.global ASM_PFX(AsmReadDr6)
|
.global ASM_PFX(AsmReadDr6)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(AsmReadDr6):
|
ASM_PFX(AsmReadDr6):
|
||||||
mov %dr6, %rax
|
mov %dr6, %rax
|
||||||
ret
|
ret
|
||||||
|
@@ -32,5 +32,5 @@
|
|||||||
.global ASM_PFX(AsmReadDr7)
|
.global ASM_PFX(AsmReadDr7)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(AsmReadDr7):
|
ASM_PFX(AsmReadDr7):
|
||||||
mov %dr7, %rax
|
mov %dr7, %rax
|
||||||
ret
|
ret
|
||||||
|
@@ -32,5 +32,5 @@
|
|||||||
.global ASM_PFX(AsmReadDs)
|
.global ASM_PFX(AsmReadDs)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(AsmReadDs):
|
ASM_PFX(AsmReadDs):
|
||||||
movl %ds, %eax
|
movl %ds, %eax
|
||||||
ret
|
ret
|
||||||
|
@@ -32,5 +32,5 @@
|
|||||||
.global ASM_PFX(AsmReadMm0)
|
.global ASM_PFX(AsmReadMm0)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(AsmReadMm0):
|
ASM_PFX(AsmReadMm0):
|
||||||
movd %mm0, %rax
|
movd %mm0, %rax
|
||||||
ret
|
ret
|
||||||
|
@@ -32,5 +32,5 @@
|
|||||||
.global ASM_PFX(AsmReadMm1)
|
.global ASM_PFX(AsmReadMm1)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(AsmReadMm1):
|
ASM_PFX(AsmReadMm1):
|
||||||
movd %mm1, %rax
|
movd %mm1, %rax
|
||||||
ret
|
ret
|
||||||
|
@@ -32,5 +32,5 @@
|
|||||||
.global ASM_PFX(AsmReadMm2)
|
.global ASM_PFX(AsmReadMm2)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(AsmReadMm2):
|
ASM_PFX(AsmReadMm2):
|
||||||
movd %mm2, %rax
|
movd %mm2, %rax
|
||||||
ret
|
ret
|
||||||
|
@@ -32,5 +32,5 @@
|
|||||||
.global ASM_PFX(AsmReadMm3)
|
.global ASM_PFX(AsmReadMm3)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(AsmReadMm3):
|
ASM_PFX(AsmReadMm3):
|
||||||
movd %mm3, %rax
|
movd %mm3, %rax
|
||||||
ret
|
ret
|
||||||
|
@@ -32,5 +32,5 @@
|
|||||||
.global ASM_PFX(AsmReadMm4)
|
.global ASM_PFX(AsmReadMm4)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(AsmReadMm4):
|
ASM_PFX(AsmReadMm4):
|
||||||
movd %mm4, %rax
|
movd %mm4, %rax
|
||||||
ret
|
ret
|
||||||
|
@@ -32,5 +32,5 @@
|
|||||||
.global ASM_PFX(AsmReadMm5)
|
.global ASM_PFX(AsmReadMm5)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(AsmReadMm5):
|
ASM_PFX(AsmReadMm5):
|
||||||
movd %mm5, %rax
|
movd %mm5, %rax
|
||||||
ret
|
ret
|
||||||
|
@@ -32,5 +32,5 @@
|
|||||||
.global ASM_PFX(AsmReadMm6)
|
.global ASM_PFX(AsmReadMm6)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(AsmReadMm6):
|
ASM_PFX(AsmReadMm6):
|
||||||
movd %mm6, %rax
|
movd %mm6, %rax
|
||||||
ret
|
ret
|
||||||
|
@@ -32,5 +32,5 @@
|
|||||||
.global ASM_PFX(AsmReadMm7)
|
.global ASM_PFX(AsmReadMm7)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(AsmReadMm7):
|
ASM_PFX(AsmReadMm7):
|
||||||
movd %mm7, %rax
|
movd %mm7, %rax
|
||||||
ret
|
ret
|
||||||
|
@@ -31,5 +31,5 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.global ASM_PFX(AsmWriteMm0)
|
.global ASM_PFX(AsmWriteMm0)
|
||||||
ASM_PFX(AsmWriteMm0):
|
ASM_PFX(AsmWriteMm0):
|
||||||
movd %rcx, %mm0
|
movd %rcx, %mm0
|
||||||
ret
|
ret
|
||||||
|
@@ -31,5 +31,5 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.global ASM_PFX(AsmWriteMm1)
|
.global ASM_PFX(AsmWriteMm1)
|
||||||
ASM_PFX(AsmWriteMm1):
|
ASM_PFX(AsmWriteMm1):
|
||||||
movd %rcx, %mm1
|
movd %rcx, %mm1
|
||||||
ret
|
ret
|
||||||
|
@@ -31,5 +31,5 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.global ASM_PFX(AsmWriteMm2)
|
.global ASM_PFX(AsmWriteMm2)
|
||||||
ASM_PFX(AsmWriteMm2):
|
ASM_PFX(AsmWriteMm2):
|
||||||
movd %rcx, %mm2
|
movd %rcx, %mm2
|
||||||
ret
|
ret
|
||||||
|
@@ -31,5 +31,5 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.global ASM_PFX(AsmWriteMm3)
|
.global ASM_PFX(AsmWriteMm3)
|
||||||
ASM_PFX(AsmWriteMm3):
|
ASM_PFX(AsmWriteMm3):
|
||||||
movd %rcx, %mm3
|
movd %rcx, %mm3
|
||||||
ret
|
ret
|
||||||
|
@@ -31,5 +31,5 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.global ASM_PFX(AsmWriteMm4)
|
.global ASM_PFX(AsmWriteMm4)
|
||||||
ASM_PFX(AsmWriteMm4):
|
ASM_PFX(AsmWriteMm4):
|
||||||
movd %rcx, %mm4
|
movd %rcx, %mm4
|
||||||
ret
|
ret
|
||||||
|
@@ -31,5 +31,5 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.global ASM_PFX(AsmWriteMm5)
|
.global ASM_PFX(AsmWriteMm5)
|
||||||
ASM_PFX(AsmWriteMm5):
|
ASM_PFX(AsmWriteMm5):
|
||||||
movd %rcx, %mm5
|
movd %rcx, %mm5
|
||||||
ret
|
ret
|
||||||
|
@@ -31,5 +31,5 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.global ASM_PFX(AsmWriteMm6)
|
.global ASM_PFX(AsmWriteMm6)
|
||||||
ASM_PFX(AsmWriteMm6):
|
ASM_PFX(AsmWriteMm6):
|
||||||
movd %rcx, %mm6
|
movd %rcx, %mm6
|
||||||
ret
|
ret
|
||||||
|
@@ -31,5 +31,5 @@
|
|||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
.global ASM_PFX(AsmWriteMm7)
|
.global ASM_PFX(AsmWriteMm7)
|
||||||
ASM_PFX(AsmWriteMm7):
|
ASM_PFX(AsmWriteMm7):
|
||||||
movd %rcx, %mm7
|
movd %rcx, %mm7
|
||||||
ret
|
ret
|
||||||
|
@@ -33,7 +33,7 @@
|
|||||||
.global ASM_PFX(AsmWriteMsr64)
|
.global ASM_PFX(AsmWriteMsr64)
|
||||||
.align 16
|
.align 16
|
||||||
ASM_PFX(AsmWriteMsr64):
|
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
|
shr $0x20, %rdx # edx:eax contains the value to write
|
||||||
wrmsr
|
wrmsr
|
||||||
ret
|
ret
|
||||||
|
@@ -51,7 +51,7 @@ ZeroMem (
|
|||||||
ASSERT (!(Buffer == NULL && Length > 0));
|
ASSERT (!(Buffer == NULL && Length > 0));
|
||||||
ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));
|
ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));
|
||||||
if (Length == 0) {
|
if (Length == 0) {
|
||||||
return Buffer;
|
return Buffer;
|
||||||
}
|
}
|
||||||
return InternalMemZeroMem (Buffer, Length);
|
return InternalMemZeroMem (Buffer, Length);
|
||||||
}
|
}
|
||||||
|
@@ -34,11 +34,11 @@
|
|||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
InternalMemSetMem PROC USES rdi
|
InternalMemSetMem PROC USES rdi
|
||||||
push rcx ; push Buffer
|
push rcx ; push Buffer
|
||||||
mov rax, r8 ; rax = Value
|
mov rax, r8 ; rax = Value
|
||||||
mov rdi, rcx ; rdi = Buffer
|
mov rdi, rcx ; rdi = Buffer
|
||||||
mov rcx, rdx ; rcx = Count
|
mov rcx, rdx ; rcx = Count
|
||||||
rep stosb
|
rep stosb
|
||||||
pop rax ; rax = Buffer
|
pop rax ; rax = Buffer
|
||||||
ret
|
ret
|
||||||
InternalMemSetMem ENDP
|
InternalMemSetMem ENDP
|
||||||
|
|
||||||
|
@@ -36,7 +36,7 @@ GetHobList (
|
|||||||
VOID
|
VOID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASSERT (gHobList != NULL);
|
ASSERT (gHobList != NULL);
|
||||||
return gHobList;
|
return gHobList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -47,7 +47,7 @@ HobLibConstructor (
|
|||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
Status = EfiGetSystemConfigurationTable (&gEfiHobListGuid, &mHobList);
|
Status = EfiGetSystemConfigurationTable (&gEfiHobListGuid, &mHobList);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
ASSERT (mHobList != NULL);
|
ASSERT (mHobList != NULL);
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ GetHobList (
|
|||||||
VOID
|
VOID
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASSERT (mHobList != NULL);
|
ASSERT (mHobList != NULL);
|
||||||
return mHobList;
|
return mHobList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user