Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD <anthony.per...@citrix.com> --- OvmfPkg/XenbusDxe/Helpers.c | 9 +++++++++ OvmfPkg/XenbusDxe/XenbusDxe.h | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 OvmfPkg/XenbusDxe/Helpers.c
diff --git a/OvmfPkg/XenbusDxe/Helpers.c b/OvmfPkg/XenbusDxe/Helpers.c new file mode 100644 index 0000000..4ea63db --- /dev/null +++ b/OvmfPkg/XenbusDxe/Helpers.c @@ -0,0 +1,9 @@ +#include "XenbusDxe.h" + +CHAR8* +AsciiStrDup ( + IN CONST CHAR8* Str + ) +{ + return AllocateCopyPool (AsciiStrSize (Str), Str); +} diff --git a/OvmfPkg/XenbusDxe/XenbusDxe.h b/OvmfPkg/XenbusDxe/XenbusDxe.h index 50d0925..4d9db72 100644 --- a/OvmfPkg/XenbusDxe/XenbusDxe.h +++ b/OvmfPkg/XenbusDxe/XenbusDxe.h @@ -105,4 +105,9 @@ TestAndClearBit ( IN volatile VOID *Address ); +CHAR8* +AsciiStrDup ( + IN CONST CHAR8* Str + ); + #endif -- Anthony PERARD ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel