From 8243b089aba90212f295d0454dc2592c256eda20 Mon Sep 17 00:00:00 2001 From: klu2 Date: Mon, 4 May 2009 03:33:53 +0000 Subject: [PATCH] Update function comments for AsmPrepareThunk16, AsmThunk16, AsmPrepareAndThunk16 interface. These interfaces could be used in either physical mode or virtual modes with paging enabled where virtual to physical mappings for ThunkContext.RealModeBuffer is mapped to 1:1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8231 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Library/BaseLib.h | 12 ++++++------ MdePkg/Library/BaseLib/X86Thunk.c | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/MdePkg/Include/Library/BaseLib.h b/MdePkg/Include/Library/BaseLib.h index d704e98f5f..291accc46a 100644 --- a/MdePkg/Include/Library/BaseLib.h +++ b/MdePkg/Include/Library/BaseLib.h @@ -7031,8 +7031,8 @@ AsmGetThunk16Properties ( Prepares all structures and code required to use AsmThunk16(). - This interface is limited to be used in physical mode but can not be used in - virtual mode with paging. + This interface is limited to be used in either physical mode or virtual modes with paging enabled where the + virtual to physical mappings for ThunkContext.RealModeBuffer is mapped 1:1. If ThunkContext is NULL, then ASSERT(). @@ -7093,8 +7093,8 @@ AsmPrepareThunk16 ( If both THUNK_ATTRIBUTE_DISABLE_A20_MASK_INT_15 and THUNK_ATTRIBUTE_DISABLE_A20_MASK_KBD_CTRL are set in ThunkAttributes, then ASSERT(). - This interface is limited to be used in physical mode but can not be used in - virtual mode with paging. + This interface is limited to be used in either physical mode or virtual modes with paging enabled where the + virtual to physical mappings for ThunkContext.RealModeBuffer is mapped 1:1. @param ThunkContext A pointer to the context structure that describes the 16-bit real mode code to call. @@ -7118,8 +7118,8 @@ AsmThunk16 ( real mode thunk, then it is more efficient if AsmPrepareThunk16() is called once and AsmThunk16() can be called for each 16-bit real mode thunk. - This interface is limited to be used in physical mode but can not be used in - virtual mode with paging. + This interface is limited to be used in either physical mode or virtual modes with paging enabled where the + virtual to physical mappings for ThunkContext.RealModeBuffer is mapped 1:1. See AsmPrepareThunk16() and AsmThunk16() for the detailed description and ASSERT() conditions. diff --git a/MdePkg/Library/BaseLib/X86Thunk.c b/MdePkg/Library/BaseLib/X86Thunk.c index 6b6e9f0f12..2be3c812da 100644 --- a/MdePkg/Library/BaseLib/X86Thunk.c +++ b/MdePkg/Library/BaseLib/X86Thunk.c @@ -110,8 +110,8 @@ AsmGetThunk16Properties ( Prepares all structures and code required to use AsmThunk16(). - This interface is limited to be used in physical mode but can not be used in - virtual mode with paging. + This interface is limited to be used in either physical mode or virtual modes with paging enabled where the + virtual to physical mappings for ThunkContext.RealModeBuffer is mapped 1:1. If ThunkContext is NULL, then ASSERT(). @@ -230,8 +230,8 @@ AsmPrepareThunk16 ( If both THUNK_ATTRIBUTE_DISABLE_A20_MASK_INT_15 and THUNK_ATTRIBUTE_DISABLE_A20_MASK_KBD_CTRL are set in ThunkAttributes, then ASSERT(). - This interface is limited to be used in physical mode but can not be used in - virtual mode with paging. + This interface is limited to be used in either physical mode or virtual modes with paging enabled where the + virtual to physical mappings for ThunkContext.RealModeBuffer is mapped 1:1. @param ThunkContext A pointer to the context structure that describes the 16-bit real mode code to call. @@ -271,8 +271,8 @@ AsmThunk16 ( real mode thunk, then it is more efficient if AsmPrepareThunk16() is called once and AsmThunk16() can be called for each 16-bit real mode thunk. - This interface is limited to be used in physical mode but can not be used in - virtual mode with paging. + This interface is limited to be used in either physical mode or virtual modes with paging enabled where the + virtual to physical mappings for ThunkContext.RealModeBuffer is mapped 1:1. See AsmPrepareThunk16() and AsmThunk16() for the detailed description and ASSERT() conditions. -- 2.39.2