From 2ac288f9199196dfc4ab05bee0a7815ca361174a Mon Sep 17 00:00:00 2001 From: andrewfish Date: Wed, 2 Feb 2011 23:19:30 +0000 Subject: Fix issue with fixing tabs. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11297 6f19259b-4bc3-4df7-8a09-765794883524 --- UnixPkg/Sec/Gasket.c | 2 +- UnixPkg/Sec/Ia32/Gasket.S | 42 ++-- UnixPkg/Sec/SecMain.c | 22 +- UnixPkg/Sec/UgaX11.c | 16 +- UnixPkg/Sec/X64/MangleGasket.S | 490 ++++++++++++++++++++--------------------- UnixPkg/Sec/X64/SwitchStack.S | 12 +- 6 files changed, 292 insertions(+), 292 deletions(-) (limited to 'UnixPkg/Sec') diff --git a/UnixPkg/Sec/Gasket.c b/UnixPkg/Sec/Gasket.c index 3c7ef80097..04c65f1a8d 100644 --- a/UnixPkg/Sec/Gasket.c +++ b/UnixPkg/Sec/Gasket.c @@ -398,7 +398,7 @@ GasketUgaBlt ( EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, IN EFI_UGA_PIXEL *BltBuffer OPTIONAL, IN EFI_UGA_BLT_OPERATION BltOperation, - IN UGA_BLT_ARGS *Args + IN UGA_BLT_ARGS *Args ) { return GasketUintnUintnUintnUintn (UgaBlt, (UINTN)UgaIo, (UINTN)BltBuffer, (UINTN)BltOperation, (UINTN)Args); diff --git a/UnixPkg/Sec/Ia32/Gasket.S b/UnixPkg/Sec/Ia32/Gasket.S index 440e73d6df..5f762a3782 100644 --- a/UnixPkg/Sec/Ia32/Gasket.S +++ b/UnixPkg/Sec/Ia32/Gasket.S @@ -264,21 +264,21 @@ _GasketUintnUint16: .globl _ReverseGasketUint64 _ReverseGasketUint64: - pushl %ebp - movl %esp, %ebp - subl $40, %esp - movl 12(%ebp), %eax - movl %eax, -16(%ebp) - movl 16(%ebp), %eax - movl %eax, -12(%ebp) - movl -16(%ebp), %eax - movl -12(%ebp), %edx - movl %eax, (%esp) - movl %edx, 4(%esp) - movl 8(%ebp), %eax - call *%eax - leave - ret + pushl %ebp + movl %esp, %ebp + subl $40, %esp + movl 12(%ebp), %eax + movl %eax, -16(%ebp) + movl 16(%ebp), %eax + movl %eax, -12(%ebp) + movl -16(%ebp), %eax + movl -12(%ebp), %edx + movl %eax, (%esp) + movl %edx, 4(%esp) + movl 8(%ebp), %eax + call *%eax + leave + ret .globl _ReverseGasketUint64Uint64 @@ -314,31 +314,31 @@ _ReverseGasketUint64Uint64: .globl _GasketSecUnixPeiLoadFile _GasketSecUnixPeiLoadFile: - jmp _SecUnixPeiLoadFile + jmp _SecUnixPeiLoadFile .globl _GasketSecUnixPeiAutoScan _GasketSecUnixPeiAutoScan: - jmp _SecUnixPeiAutoScan + jmp _SecUnixPeiAutoScan .globl _GasketSecUnixUnixThunkAddress _GasketSecUnixUnixThunkAddress: - jmp _SecUnixUnixThunkAddress + jmp _SecUnixUnixThunkAddress .globl _GasketSecPeiReportStatusCode _GasketSecPeiReportStatusCode: - jmp _SecPeiReportStatusCode + jmp _SecPeiReportStatusCode .globl _GasketSecUnixFdAddress _GasketSecUnixFdAddress: - jmp _SecUnixFdAddress + jmp _SecUnixFdAddress .globl _GasketSecTemporaryRamSupport _GasketSecTemporaryRamSupport: - jmp _SecTemporaryRamSupport + jmp _SecTemporaryRamSupport #endif diff --git a/UnixPkg/Sec/SecMain.c b/UnixPkg/Sec/SecMain.c index dc4b14c00f..a82ec1cce1 100644 --- a/UnixPkg/Sec/SecMain.c +++ b/UnixPkg/Sec/SecMain.c @@ -279,17 +279,17 @@ Returns: // Open the FD and remmeber where it got mapped into our processes address space // Status = MapFile ( - FileName, - &gFdInfo[Index].Address, - &gFdInfo[Index].Size - ); + FileName, + &gFdInfo[Index].Address, + &gFdInfo[Index].Size + ); if (EFI_ERROR (Status)) { printf ("ERROR : Can not open Firmware Device File %s (%x). Exiting.\n", FileName, (unsigned int)Status); exit (1); } printf (" FD loaded from %s at 0x%08lx", - FileName, (unsigned long)gFdInfo[Index].Address); + FileName, (unsigned long)gFdInfo[Index].Address); if (PeiCoreFile == NULL) { // @@ -419,10 +419,10 @@ Returns: /* Read entry address. */ lseek (fd, FileSize - 0x20, SEEK_SET); if (read (fd, &EntryAddress, 4) != 4) - { - close (fd); - return EFI_DEVICE_ERROR; - } + { + close (fd); + return EFI_DEVICE_ERROR; + } } #endif @@ -664,8 +664,8 @@ Returns: *MemoryBase = 0; res = MapMemory(0, gSystemMemory[Index].Size, - PROT_READ | PROT_WRITE | PROT_EXEC, - MAP_PRIVATE | MAP_ANONYMOUS); + PROT_READ | PROT_WRITE | PROT_EXEC, + MAP_PRIVATE | MAP_ANONYMOUS); if (res == MAP_FAILED) return EFI_DEVICE_ERROR; *MemorySize = gSystemMemory[Index].Size; diff --git a/UnixPkg/Sec/UgaX11.c b/UnixPkg/Sec/UgaX11.c index 0a9b0a314c..5250fb3c61 100644 --- a/UnixPkg/Sec/UgaX11.c +++ b/UnixPkg/Sec/UgaX11.c @@ -59,7 +59,7 @@ typedef struct { EFI_UNIX_UGA_IO_PROTOCOL UgaIo; Display *display; - int screen; /* values for window_size in main */ + int screen; /* values for window_size in main */ Window win; GC gc; Visual *visual; @@ -393,15 +393,15 @@ handleMouseMoved(UGA_IO_PRIVATE *drv, XEvent *ev) if ( ev->xmotion.x != drv->previous_x ) { drv->pointer_state.RelativeMovementX += ( ev->xmotion.x - drv->previous_x ); - drv->previous_x = ev->xmotion.x; - drv->pointer_state_changed = 1; + drv->previous_x = ev->xmotion.x; + drv->pointer_state_changed = 1; } if ( ev->xmotion.y != drv->previous_y ) { drv->pointer_state.RelativeMovementY += ( ev->xmotion.y - drv->previous_y ); drv->previous_y = ev->xmotion.y; - drv->pointer_state_changed = 1; + drv->pointer_state_changed = 1; } drv->pointer_state.RelativeMovementZ = 0; @@ -413,12 +413,12 @@ handleMouseDown(UGA_IO_PRIVATE *drv, XEvent *ev, BOOLEAN Pressed) if ( ev->xbutton.button == Button1 ) { drv->pointer_state_changed = ( drv->pointer_state.LeftButton != Pressed ); - drv->pointer_state.LeftButton = Pressed; + drv->pointer_state.LeftButton = Pressed; } if ( ev->xbutton.button == Button2 ) { drv->pointer_state_changed = ( drv->pointer_state.RightButton != Pressed ); - drv->pointer_state.RightButton = Pressed; + drv->pointer_state.RightButton = Pressed; } } @@ -460,10 +460,10 @@ HandleEvent(UGA_IO_PRIVATE *drv, XEvent *ev) break; case ButtonPress: handleMouseDown(drv, ev, TRUE); - break; + break; case ButtonRelease: handleMouseDown(drv, ev, FALSE); - break; + break; #if 0 case DestroyNotify: XCloseDisplay (drv->display); diff --git a/UnixPkg/Sec/X64/MangleGasket.S b/UnixPkg/Sec/X64/MangleGasket.S index 532585b608..d457f6be12 100644 --- a/UnixPkg/Sec/X64/MangleGasket.S +++ b/UnixPkg/Sec/X64/MangleGasket.S @@ -9,7 +9,7 @@ # to get the correct binding (does not work from assembly). So we have 4 functions # that do an indirect call, while the others call POSIX APIs directly # -# movq _gUnixRmDir@GOTPCREL(%rip), %rax +# movq _gUnixRmDir@GOTPCREL(%rip), %rax # # # UNIX Arg passing: RCX, RDX, R8, R9 @@ -34,7 +34,7 @@ // EFI ABI code will sub 40 (0x28) from %rsp before calling a function // This is the 32 (0x20) byte to spill registers and 8 bytes to align stack on 16 byte boundry. // - .text + .text // 32 byte shadow to spill rcx-r9, 8 bytes to align stack on 16 byte boundry // Any call with 0 - 4 arguments allocates 40 bytes on the stack. @@ -47,154 +47,154 @@ - .text + .text ASM_GLOBAL ASM_PFX(Gasketrmdir) ASM_PFX(Gasketrmdir): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp - pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI - pushq %rdi + pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI + pushq %rdi movq %rcx, %rdi // Swizzle args - movq ASM_PFX(gUnixRmDir)@GOTPCREL(%rip), %rax // Get function name mangled by C - movq (%rax), %rax - call *%rax + movq ASM_PFX(gUnixRmDir)@GOTPCREL(%rip), %rax // Get function name mangled by C + movq (%rax), %rax + call *%rax - popq %rdi // restore state - popq %rsi - popq %rbp - ret + popq %rdi // restore state + popq %rsi + popq %rbp + ret ASM_GLOBAL ASM_PFX(Gasketopendir) ASM_PFX(Gasketopendir): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp - pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI - pushq %rdi + pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI + pushq %rdi movq %rcx, %rdi // Swizzle args - movq ASM_PFX(gUnixOpenDir)@GOTPCREL(%rip), %rax // Get function name mangled by C - movq (%rax), %rax - call *%rax - - popq %rdi // restore state - popq %rsi - popq %rbp + movq ASM_PFX(gUnixOpenDir)@GOTPCREL(%rip), %rax // Get function name mangled by C + movq (%rax), %rax + call *%rax + + popq %rdi // restore state + popq %rsi + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketstat) ASM_PFX(Gasketstat): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp - pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI - pushq %rdi + pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI + pushq %rdi movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - movq ASM_PFX(gUnixStat)@GOTPCREL(%rip), %rax // Get function name mangled by C - movq (%rax), %rax - call *%rax - + movq ASM_PFX(gUnixStat)@GOTPCREL(%rip), %rax // Get function name mangled by C + movq (%rax), %rax + call *%rax + - popq %rdi // restore state - popq %rsi - popq %rbp + popq %rdi // restore state + popq %rsi + popq %rbp ret - - + + ASM_GLOBAL ASM_PFX(Gasketstatfs) ASM_PFX(Gasketstatfs): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp - pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI - pushq %rdi + pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI + pushq %rdi movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - movq ASM_PFX(gUnixStatFs)@GOTPCREL(%rip), %rax // Get function name mangled by C - movq (%rax), %rax - call *%rax - - popq %rdi // restore state - popq %rsi - popq %rbp + movq ASM_PFX(gUnixStatFs)@GOTPCREL(%rip), %rax // Get function name mangled by C + movq (%rax), %rax + call *%rax + + popq %rdi // restore state + popq %rsi + popq %rbp ret - + ASM_GLOBAL ASM_PFX(Gasketrewinddir) ASM_PFX(Gasketrewinddir): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp - pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI - pushq %rdi + pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI + pushq %rdi movq %rcx, %rdi // Swizzle args - movq ASM_PFX(gUnixRewinddir)@GOTPCREL(%rip), %rax // Get function name mangled by C - movq (%rax), %rax - call *%rax - - popq %rdi // restore state - popq %rsi - popq %rbp + movq ASM_PFX(gUnixRewinddir)@GOTPCREL(%rip), %rax // Get function name mangled by C + movq (%rax), %rax + call *%rax + + popq %rdi // restore state + popq %rsi + popq %rbp ret - + ASM_GLOBAL ASM_PFX(Gasketreaddir) ASM_PFX(Gasketreaddir): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp - pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI - pushq %rdi + pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI + pushq %rdi movq %rcx, %rdi // Swizzle args - movq ASM_PFX(gUnixReaddir)@GOTPCREL(%rip), %rax // Get function name mangled by C - movq (%rax), %rax - call *%rax - - popq %rdi // restore state - popq %rsi - popq %rbp + movq ASM_PFX(gUnixReaddir)@GOTPCREL(%rip), %rax // Get function name mangled by C + movq (%rax), %rax + call *%rax + + popq %rdi // restore state + popq %rsi + popq %rbp ret - + ASM_GLOBAL ASM_PFX(GasketmsSleep) ASM_PFX(GasketmsSleep): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp - pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI - pushq %rdi + pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI + pushq %rdi movq %rcx, %rdi // Swizzle args - call ASM_PFX(msSleep) - - popq %rdi // restore state - popq %rsi - popq %rbp + call ASM_PFX(msSleep) + + popq %rdi // restore state + popq %rsi + popq %rbp ret - - + + ASM_GLOBAL ASM_PFX(Gasketexit) ASM_PFX(Gasketexit): movq %rcx, %rdi // Swizzle args - call ASM_PFX(exit) // Less to do as we will never return to EFI ABI world + call ASM_PFX(exit) // Less to do as we will never return to EFI ABI world LDEAD_LOOP: jmp LDEAD_LOOP // _exit should never return @@ -202,26 +202,26 @@ LDEAD_LOOP: ASM_GLOBAL ASM_PFX(GasketSetTimer) ASM_PFX(GasketSetTimer): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp - pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI - pushq %rdi + pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI + pushq %rdi movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(SetTimer) - - popq %rdi // restore state - popq %rsi - popq %rbp + call ASM_PFX(SetTimer) + + popq %rdi // restore state + popq %rsi + popq %rbp ret - + ASM_GLOBAL ASM_PFX(GasketGetLocalTime) ASM_PFX(GasketGetLocalTime): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -229,18 +229,18 @@ ASM_PFX(GasketGetLocalTime): movq %rcx, %rdi // Swizzle args - call ASM_PFX(GetLocalTime) + call ASM_PFX(GetLocalTime) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketgmtime) ASM_PFX(Gasketgmtime): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -248,50 +248,50 @@ ASM_PFX(Gasketgmtime): movq %rcx, %rdi // Swizzle args - call ASM_PFX(localtime) + call ASM_PFX(localtime) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketGetTimeZone) ASM_PFX(GasketGetTimeZone): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI pushq %rdi - call ASM_PFX(GetTimeZone) + call ASM_PFX(GetTimeZone) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketGetDayLight) ASM_PFX(GasketGetDayLight): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI pushq %rdi - call ASM_PFX(GetDayLight) + call ASM_PFX(GetDayLight) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketpoll) ASM_PFX(Gasketpoll): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -301,18 +301,18 @@ ASM_PFX(Gasketpoll): movq %rdx, %rsi movq %r8, %rdx - call ASM_PFX(poll) + call ASM_PFX(poll) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketread) ASM_PFX(Gasketread): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -322,17 +322,17 @@ ASM_PFX(Gasketread): movq %rdx, %rsi movq %r8, %rdx - call ASM_PFX(read) + call ASM_PFX(read) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketwrite) ASM_PFX(Gasketwrite): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -342,17 +342,17 @@ ASM_PFX(Gasketwrite): movq %rdx, %rsi movq %r8, %rdx - call ASM_PFX(write) + call ASM_PFX(write) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketgetenv) ASM_PFX(Gasketgetenv): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -360,17 +360,17 @@ ASM_PFX(Gasketgetenv): movq %rcx, %rdi // Swizzle args - call ASM_PFX(getenv) + call ASM_PFX(getenv) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketopen) ASM_PFX(Gasketopen): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -380,17 +380,17 @@ ASM_PFX(Gasketopen): movq %rdx, %rsi movq %r8, %rdx - call ASM_PFX(open) + call ASM_PFX(open) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketlseek) ASM_PFX(Gasketlseek): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -400,17 +400,17 @@ ASM_PFX(Gasketlseek): movq %rdx, %rsi movq %r8, %rdx - call ASM_PFX(lseek) + call ASM_PFX(lseek) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketftruncate) ASM_PFX(Gasketftruncate): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -420,17 +420,17 @@ ASM_PFX(Gasketftruncate): movq %rdx, %rsi movq %r8, %rdx - call ASM_PFX(ftruncate) + call ASM_PFX(ftruncate) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketclose) ASM_PFX(Gasketclose): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -438,18 +438,18 @@ ASM_PFX(Gasketclose): movq %rcx, %rdi // Swizzle args - call ASM_PFX(close) + call ASM_PFX(close) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketmkdir) ASM_PFX(Gasketmkdir): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -458,17 +458,17 @@ ASM_PFX(Gasketmkdir): movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(mkdir) + call ASM_PFX(mkdir) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketunlink) ASM_PFX(Gasketunlink): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -476,32 +476,32 @@ ASM_PFX(Gasketunlink): movq %rcx, %rdi // Swizzle args - call ASM_PFX(unlink) + call ASM_PFX(unlink) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketGetErrno) ASM_PFX(GasketGetErrno): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI pushq %rdi - call ASM_PFX(GetErrno) + call ASM_PFX(GetErrno) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketclosedir) ASM_PFX(Gasketclosedir): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -509,17 +509,17 @@ ASM_PFX(Gasketclosedir): movq %rcx, %rdi // Swizzle args - call ASM_PFX(closedir) + call ASM_PFX(closedir) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketrename) ASM_PFX(Gasketrename): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -528,17 +528,17 @@ ASM_PFX(Gasketrename): movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(rename) + call ASM_PFX(rename) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketmktime) ASM_PFX(Gasketmktime): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -547,17 +547,17 @@ ASM_PFX(Gasketmktime): movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(mktime) + call ASM_PFX(mktime) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketfsync) ASM_PFX(Gasketfsync): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -566,17 +566,17 @@ ASM_PFX(Gasketfsync): movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(fsync) + call ASM_PFX(fsync) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketchmod) ASM_PFX(Gasketchmod): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -585,17 +585,17 @@ ASM_PFX(Gasketchmod): movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(chmod) + call ASM_PFX(chmod) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketutime) ASM_PFX(Gasketutime): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -604,17 +604,17 @@ ASM_PFX(Gasketutime): movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(utime) + call ASM_PFX(utime) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gaskettcflush) ASM_PFX(Gaskettcflush): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -623,17 +623,17 @@ ASM_PFX(Gaskettcflush): movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(tcflush) + call ASM_PFX(tcflush) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketUgaCreate) ASM_PFX(GasketUgaCreate): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -642,17 +642,17 @@ ASM_PFX(GasketUgaCreate): movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(UgaCreate) + call ASM_PFX(UgaCreate) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketperror) ASM_PFX(Gasketperror): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -661,17 +661,17 @@ ASM_PFX(Gasketperror): movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(perror) + call ASM_PFX(perror) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketioctl) ASM_PFX(Gasketioctl): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -681,17 +681,17 @@ ASM_PFX(Gasketioctl): movq %rdx, %rsi movq %r8, %rdx - call ASM_PFX(UnixIoCtl1) + call ASM_PFX(UnixIoCtl1) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketfcntl) ASM_PFX(Gasketfcntl): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -701,18 +701,18 @@ ASM_PFX(Gasketfcntl): movq %rdx, %rsi movq %r8, %rdx - call ASM_PFX(UnixFcntl1) + call ASM_PFX(UnixFcntl1) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketcfsetispeed) ASM_PFX(Gasketcfsetispeed): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -721,18 +721,18 @@ ASM_PFX(Gasketcfsetispeed): movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(cfsetispeed) + call ASM_PFX(cfsetispeed) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketcfsetospeed) ASM_PFX(Gasketcfsetospeed): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -741,17 +741,17 @@ ASM_PFX(Gasketcfsetospeed): movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(cfsetospeed) + call ASM_PFX(cfsetospeed) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gaskettcgetattr) ASM_PFX(Gaskettcgetattr): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -761,17 +761,17 @@ ASM_PFX(Gaskettcgetattr): movq %rdx, %rsi movq %r8, %rdx - call ASM_PFX(tcgetattr) + call ASM_PFX(tcgetattr) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gaskettcsetattr) ASM_PFX(Gaskettcsetattr): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -781,17 +781,17 @@ ASM_PFX(Gaskettcsetattr): movq %rdx, %rsi movq %r8, %rdx - call ASM_PFX(tcsetattr) + call ASM_PFX(tcsetattr) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketUnixPeCoffGetEntryPoint) ASM_PFX(GasketUnixPeCoffGetEntryPoint): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -800,18 +800,18 @@ ASM_PFX(GasketUnixPeCoffGetEntryPoint): movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(SecPeCoffGetEntryPoint) + call ASM_PFX(SecPeCoffGetEntryPoint) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketUnixPeCoffRelocateImageExtraAction) ASM_PFX(GasketUnixPeCoffRelocateImageExtraAction): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -819,17 +819,17 @@ ASM_PFX(GasketUnixPeCoffRelocateImageExtraAction): movq %rcx, %rdi // Swizzle args - call ASM_PFX(SecPeCoffRelocateImageExtraAction) + call ASM_PFX(SecPeCoffRelocateImageExtraAction) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketUnixPeCoffUnloadImageExtraAction) ASM_PFX(GasketUnixPeCoffUnloadImageExtraAction): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -837,11 +837,11 @@ ASM_PFX(GasketUnixPeCoffUnloadImageExtraAction): movq %rcx, %rdi // Swizzle args - call ASM_PFX(SecPeCoffLoaderUnloadImageExtraAction) + call ASM_PFX(SecPeCoffLoaderUnloadImageExtraAction) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret @@ -850,7 +850,7 @@ ASM_PFX(GasketUnixPeCoffUnloadImageExtraAction): ASM_GLOBAL ASM_PFX(Gasketsocket) ASM_PFX(Gasketsocket): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -865,14 +865,14 @@ ASM_PFX(Gasketsocket): popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(Gasketgetifaddrs) ASM_PFX(Gasketgetifaddrs): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -883,16 +883,16 @@ ASM_PFX(Gasketgetifaddrs): call ASM_PFX(getifaddrs) - popq %rbp - popq %rsi - popq %rbp + popq %rbp + popq %rsi + popq %rbp ret ASM_GLOBAL _Gasketfreeifaddrs _Gasketfreeifaddrs: - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -905,7 +905,7 @@ _Gasketfreeifaddrs: popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret @@ -914,7 +914,7 @@ _Gasketfreeifaddrs: ASM_GLOBAL ASM_PFX(GasketUgaClose) ASM_PFX(GasketUgaClose): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -922,11 +922,11 @@ ASM_PFX(GasketUgaClose): movq %rcx, %rdi // Swizzle args - call ASM_PFX(UgaClose) + call ASM_PFX(UgaClose) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret @@ -934,7 +934,7 @@ ASM_PFX(GasketUgaClose): ASM_GLOBAL ASM_PFX(GasketUgaSize) ASM_PFX(GasketUgaSize): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -944,17 +944,17 @@ ASM_PFX(GasketUgaSize): movq %rdx, %rsi movq %r8, %rdx - call ASM_PFX(UgaSize) + call ASM_PFX(UgaSize) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketUgaCheckKey) ASM_PFX(GasketUgaCheckKey): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -962,17 +962,17 @@ ASM_PFX(GasketUgaCheckKey): movq %rcx, %rdi // Swizzle args - call ASM_PFX(UgaCheckKey) + call ASM_PFX(UgaCheckKey) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketUgaGetKey) ASM_PFX(GasketUgaGetKey): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -981,16 +981,16 @@ ASM_PFX(GasketUgaGetKey): movq %rcx, %rdi // Swizzle args movq %rdx, %rsi - call ASM_PFX(UgaGetKey) + call ASM_PFX(UgaGetKey) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketUgaKeySetState) ASM_PFX(GasketUgaKeySetState): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -1003,13 +1003,13 @@ ASM_PFX(GasketUgaKeySetState): popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketUgaRegisterKeyNotify) ASM_PFX(GasketUgaRegisterKeyNotify): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -1023,7 +1023,7 @@ ASM_PFX(GasketUgaRegisterKeyNotify): popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret @@ -1032,7 +1032,7 @@ ASM_PFX(GasketUgaRegisterKeyNotify): ASM_GLOBAL ASM_PFX(GasketUgaBlt) ASM_PFX(GasketUgaBlt): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -1043,17 +1043,17 @@ ASM_PFX(GasketUgaBlt): movq %r8, %rdx movq %r9, %rcx - call ASM_PFX(UgaBlt) + call ASM_PFX(UgaBlt) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketUgaCheckPointer) ASM_PFX(GasketUgaCheckPointer): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -1065,13 +1065,13 @@ ASM_PFX(GasketUgaCheckPointer): popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketUgaGetPointerState) ASM_PFX(GasketUgaGetPointerState): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -1084,13 +1084,13 @@ ASM_PFX(GasketUgaGetPointerState): popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketUnixEnableInterrupt) ASM_PFX(GasketUnixEnableInterrupt): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -1100,12 +1100,12 @@ ASM_PFX(GasketUnixEnableInterrupt): popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketUnixDisableInterrupt) ASM_PFX(GasketUnixDisableInterrupt): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -1115,7 +1115,7 @@ ASM_PFX(GasketUnixDisableInterrupt): popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret // @@ -1128,7 +1128,7 @@ ASM_PFX(GasketUnixDisableInterrupt): // ); ASM_GLOBAL ASM_PFX(ReverseGasketUint64) ASM_PFX(ReverseGasketUint64): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp movq %rdi, %rax // Swizzle args @@ -1138,7 +1138,7 @@ ASM_PFX(ReverseGasketUint64): call *%rax addq $32, %rsp - popq %rbp + popq %rbp ret // @@ -1152,7 +1152,7 @@ ASM_PFX(ReverseGasketUint64): // ); ASM_GLOBAL ASM_PFX(ReverseGasketUint64Uint64) ASM_PFX(ReverseGasketUint64Uint64): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp movq %rdi, %rax // Swizzle args @@ -1162,7 +1162,7 @@ ASM_PFX(ReverseGasketUint64Uint64): call *%rax addq $32, %rsp - popq %rbp + popq %rbp ret @@ -1170,7 +1170,7 @@ ASM_PFX(ReverseGasketUint64Uint64): ASM_GLOBAL ASM_PFX(GasketSecUnixPeiLoadFile) ASM_PFX(GasketSecUnixPeiLoadFile): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -1181,7 +1181,7 @@ ASM_PFX(GasketSecUnixPeiLoadFile): movq %r8, %rdx movq %r9, %rcx - call ASM_PFX(SecUnixPeiLoadFile) + call ASM_PFX(SecUnixPeiLoadFile) popq %rdi // restore state popq %rsi @@ -1192,7 +1192,7 @@ ASM_PFX(GasketSecUnixPeiLoadFile): ASM_GLOBAL ASM_PFX(GasketSecUnixPeiAutoScan) ASM_PFX(GasketSecUnixPeiAutoScan): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -1202,33 +1202,33 @@ ASM_PFX(GasketSecUnixPeiAutoScan): movq %rdx, %rsi movq %r8, %rdx - call ASM_PFX(SecUnixPeiAutoScan) + call ASM_PFX(SecUnixPeiAutoScan) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketSecUnixUnixThunkAddress) ASM_PFX(GasketSecUnixUnixThunkAddress): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI pushq %rdi - call ASM_PFX(SecUnixUnixThunkAddress) + call ASM_PFX(SecUnixUnixThunkAddress) - popq %rdi - popq %rsi - popq %rbp + popq %rdi + popq %rsi + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketSecPeiReportStatusCode) ASM_PFX(GasketSecPeiReportStatusCode): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -1241,17 +1241,17 @@ ASM_PFX(GasketSecPeiReportStatusCode): movq $0, %r8 // BugBug: This should come from the stack movq $0, %r9 // But we can cheat since they are optional for bringup.... - call ASM_PFX(SecPeiReportStatusCode) + call ASM_PFX(SecPeiReportStatusCode) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret ASM_GLOBAL ASM_PFX(GasketSecUnixFdAddress) ASM_PFX(GasketSecUnixFdAddress): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -1262,11 +1262,11 @@ ASM_PFX(GasketSecUnixFdAddress): movq %r8, %rdx movq %r9, %rcx - call ASM_PFX(SecUnixFdAddress) + call ASM_PFX(SecUnixFdAddress) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret @@ -1274,7 +1274,7 @@ ASM_PFX(GasketSecUnixFdAddress): ASM_GLOBAL ASM_PFX(GasketSecTemporaryRamSupport) ASM_PFX(GasketSecTemporaryRamSupport): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp pushq %rsi // %rsi & %rdi are volatile in Unix and callee-save in EFI ABI @@ -1285,11 +1285,11 @@ ASM_PFX(GasketSecTemporaryRamSupport): movq %r8, %rdx movq %r9, %rcx - call ASM_PFX(SecTemporaryRamSupport) + call ASM_PFX(SecTemporaryRamSupport) popq %rdi // restore state popq %rsi - popq %rbp + popq %rbp ret diff --git a/UnixPkg/Sec/X64/SwitchStack.S b/UnixPkg/Sec/X64/SwitchStack.S index e964e4d178..e9adefce39 100644 --- a/UnixPkg/Sec/X64/SwitchStack.S +++ b/UnixPkg/Sec/X64/SwitchStack.S @@ -39,8 +39,8 @@ #------------------------------------------------------------------------------ ASM_GLOBAL ASM_PFX(PeiSwitchStacks) ASM_PFX(PeiSwitchStacks): - pushq %rbp // stack frame is for the debugger - movq %rsp, %rbp + pushq %rbp // stack frame is for the debugger + movq %rsp, %rbp movq %r8, %rsp @@ -52,7 +52,7 @@ ASM_PFX(PeiSwitchStacks): # Reserve space for register parameters (rcx, rdx, r8 & r9) on the stack, # in case the callee wishes to spill them. # - subq $32, %rsp // 32-byte shadow space plus alignment pad + subq $32, %rsp // 32-byte shadow space plus alignment pad call *%rax @@ -76,8 +76,8 @@ ASM_PFX(PeiSwitchStacks): #------------------------------------------------------------------------------ ASM_GLOBAL ASM_PFX(UnixPeiSwitchStacks) ASM_PFX(UnixPeiSwitchStacks): - pushq %rbp // stack frame is for the debugger - movq %rsp, %rbp + pushq %rbp // stack frame is for the debugger + movq %rsp, %rbp mov %rdi, %rax mov %rsi, %rdi @@ -105,7 +105,7 @@ ASM_PFX(UnixPeiSwitchStacks): #------------------------------------------------------------------------------ ASM_GLOBAL ASM_PFX(SecSwitchStack) ASM_PFX(SecSwitchStack): - pushq %rbp // stack frame is for the debugger + pushq %rbp // stack frame is for the debugger movq %rsp, %rbp mov %rsp, %rax -- cgit v1.2.3