summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2011-04-13 06:49:53 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2011-04-13 06:49:53 +0000
commitc3aac4b5adab43ba587a518899bd035d30d94a73 (patch)
tree80b2c158a974fd07030f2e8eea48c8fd7037f6fb
parentc5fab60fb91d2ce45bae5226520a7026a82a63f4 (diff)
downloadedk2-c3aac4b5adab43ba587a518899bd035d30d94a73.zip
edk2-c3aac4b5adab43ba587a518899bd035d30d94a73.tar.gz
edk2-c3aac4b5adab43ba587a518899bd035d30d94a73.tar.bz2
sync patch r11186 from main trunk.
Change the modifiers of the RegisterContext parameter of EFI SMM SW Dispatch2 Protocol.Register() from IN, CONST to IN, OUT. This is for support for the case where SwSmiInputValue is set to -1, a unique value will be returned in the RegisterContext structure. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010@11534 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdePkg/Include/Protocol/SmmSwDispatch2.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/MdePkg/Include/Protocol/SmmSwDispatch2.h b/MdePkg/Include/Protocol/SmmSwDispatch2.h
index 81ff748..3502d8f 100644
--- a/MdePkg/Include/Protocol/SmmSwDispatch2.h
+++ b/MdePkg/Include/Protocol/SmmSwDispatch2.h
@@ -65,16 +65,20 @@ typedef struct _EFI_SMM_SW_DISPATCH2_PROTOCOL EFI_SMM_SW_DISPATCH2_PROTOCOL;
DispatchHandle contains a unique handle which may be used later to unregister the function
using UnRegister().
- @param[in] This Pointer to the EFI_SMM_SW_DISPATCH2_PROTOCOL instance.
- @param[in] DispatchFunction Function to register for handler when the specified software
- SMI is generated.
- @param[in] RegisterContext Pointer to the dispatch function's context.
- The caller fills this context in before calling
- the register function to indicate to the register
- function which Software SMI input value the
- dispatch function should be invoked for.
- @param[out] DispatchHandle Handle generated by the dispatcher to track the
- function instance.
+ Note that the modifiers for the parameter RegisterContext are IN, OUT, while they are IN, CONST
+ in the PI 1.2 errta B spec. This in-consistency is for support for the case where SwSmiInputValue
+ is set to -1, a unique value will be returned in the RegisterContext structure.
+
+ @param[in] This Pointer to the EFI_SMM_SW_DISPATCH2_PROTOCOL instance.
+ @param[in] DispatchFunction Function to register for handler when the specified software
+ SMI is generated.
+ @param[in, out] RegisterContext Pointer to the dispatch function's context.
+ The caller fills this context in before calling
+ the register function to indicate to the register
+ function which Software SMI input value the
+ dispatch function should be invoked for.
+ @param[out] DispatchHandle Handle generated by the dispatcher to track the
+ function instance.
@retval EFI_SUCCESS The dispatch function has been successfully
registered and the SMI source has been enabled.
@@ -91,7 +95,7 @@ EFI_STATUS
(EFIAPI *EFI_SMM_SW_REGISTER2)(
IN CONST EFI_SMM_SW_DISPATCH2_PROTOCOL *This,
IN EFI_SMM_HANDLER_ENTRY_POINT2 DispatchFunction,
- IN CONST EFI_SMM_SW_REGISTER_CONTEXT *RegisterContext,
+ IN OUT EFI_SMM_SW_REGISTER_CONTEXT *RegisterContext,
OUT EFI_HANDLE *DispatchHandle
);