X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FArm%2FGccInline.c;h=03290178e717faaeec94f47657b47a8e5fbba08b;hp=97e7d82c028e1e9754ecb89e85cca64d04f2e2df;hb=ea6898b902464c0a0c32b49543386b962a64032c;hpb=bf586ab919aca12f47f1d48f52c2ed5c05321a66 diff --git a/MdePkg/Library/BaseLib/Arm/GccInline.c b/MdePkg/Library/BaseLib/Arm/GccInline.c index 97e7d82c02..03290178e7 100644 --- a/MdePkg/Library/BaseLib/Arm/GccInline.c +++ b/MdePkg/Library/BaseLib/Arm/GccInline.c @@ -1,7 +1,7 @@ /** @file GCC inline implementation of BaseLib processor specific functions. - Copyright (c) 2006 - 2007, Intel Corporation
+ Copyright (c) 2006 - 2010, Intel Corporation
Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -37,11 +37,26 @@ CpuPause ( ); } +/** + Transfers control to a function starting with a new stack. + + This internal worker function transfers control to the function + specified by EntryPoint using the new stack specified by NewStack + and passing in the parameters specified by Context1 and Context2. + Context1 and Context2 are optional and may be NULL. + The function EntryPoint must never return. + + @param EntryPoint The pointer to the function to enter. + @param Context1 The first parameter to pass in. + @param Context2 The second Parameter to pass in + @param NewStack The new Location of the stack + +**/ VOID EFIAPI InternalSwitchStackAsm ( SWITCH_STACK_ENTRY_POINT EntryPoint, - VOID *Context, + VOID *Context1, VOID *Context2, VOID *NewStack ) @@ -54,7 +69,7 @@ InternalSwitchStackAsm ( "bx lr\n\t" : /* no output operand */ : "r" (EntryPoint), - "r" (Context), + "r" (Context1), "r" (Context2), "r" (NewStack) );