]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/XenBusDxe: Add an helper AsciiStrDup.
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 29 Oct 2014 06:50:57 +0000 (06:50 +0000)
committerjljusten <jljusten@Edk2>
Wed, 29 Oct 2014 06:50:57 +0000 (06:50 +0000)
.. 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

OvmfPkg/XenBusDxe/Helpers.c [new file with mode: 0644]
OvmfPkg/XenBusDxe/XenBusDxe.h

diff --git a/OvmfPkg/XenBusDxe/Helpers.c b/OvmfPkg/XenBusDxe/Helpers.c
new file mode 100644 (file)
index 0000000..b22f9c5
--- /dev/null
@@ -0,0 +1,9 @@
+#include "XenBusDxe.h"\r
+\r
+CHAR8*\r
+AsciiStrDup (\r
+  IN CONST CHAR8* Str\r
+  )\r
+{\r
+  return AllocateCopyPool (AsciiStrSize (Str), Str);\r
+}\r
index d80c118acf938273b526d6bb7be9f32f9763cb7a..6be5c58d920f11b065a72359afeedefbacf995d1 100644 (file)
@@ -116,4 +116,9 @@ TestAndClearBit (
   IN volatile VOID *Address\r
   );\r
 \r
+CHAR8*\r
+AsciiStrDup (\r
+  IN CONST CHAR8* Str\r
+  );\r
+\r
 #endif\r