summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/XenBusDxe
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2014-10-29 06:50:57 +0000
committerjljusten <jljusten@Edk2>2014-10-29 06:50:57 +0000
commit02a6bcff71e2f11be851b3bd62518a62e58e71f5 (patch)
tree55682545b87814ce7b831b7366e2c63da42cc659 /OvmfPkg/XenBusDxe
parenta9090a94bb4a8dae61eb79428a5769916d621940 (diff)
downloadedk2-02a6bcff71e2f11be851b3bd62518a62e58e71f5.tar.gz
edk2-02a6bcff71e2f11be851b3bd62518a62e58e71f5.tar.bz2
edk2-02a6bcff71e2f11be851b3bd62518a62e58e71f5.zip
OvmfPkg/XenBusDxe: Add an helper AsciiStrDup.
.. because we need it in the patch titled: "OvmfPkg/XenBusDxe: Introduce XenBus support itself." Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16268 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/XenBusDxe')
-rw-r--r--OvmfPkg/XenBusDxe/Helpers.c9
-rw-r--r--OvmfPkg/XenBusDxe/XenBusDxe.h5
2 files changed, 14 insertions, 0 deletions
diff --git a/OvmfPkg/XenBusDxe/Helpers.c b/OvmfPkg/XenBusDxe/Helpers.c
new file mode 100644
index 0000000000..b22f9c5b0d
--- /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 d80c118acf..6be5c58d92 100644
--- a/OvmfPkg/XenBusDxe/XenBusDxe.h
+++ b/OvmfPkg/XenBusDxe/XenBusDxe.h
@@ -116,4 +116,9 @@ TestAndClearBit (
IN volatile VOID *Address
);
+CHAR8*
+AsciiStrDup (
+ IN CONST CHAR8* Str
+ );
+
#endif