summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c')
-rw-r--r--MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c b/MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c
index 0bff206fad..3147b28bbb 100644
--- a/MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c
+++ b/MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c
@@ -1,7 +1,7 @@
/** @file
SwitchStack() function for ARM.
- Copyright (c) 2006 - 2007, Intel Corporation<BR>
+ Copyright (c) 2006 - 2010, Intel Corporation<BR>
Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -15,6 +15,21 @@
#include "BaseLibInternals.h"
+/**
+ 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 (