diff options
author | Anthony PERARD <anthony.perard@citrix.com> | 2014-10-29 06:50:57 +0000 |
---|---|---|
committer | jljusten <jljusten@Edk2> | 2014-10-29 06:50:57 +0000 |
commit | 02a6bcff71e2f11be851b3bd62518a62e58e71f5 (patch) | |
tree | 55682545b87814ce7b831b7366e2c63da42cc659 /OvmfPkg | |
parent | a9090a94bb4a8dae61eb79428a5769916d621940 (diff) | |
download | edk2-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')
-rw-r--r-- | OvmfPkg/XenBusDxe/Helpers.c | 9 | ||||
-rw-r--r-- | OvmfPkg/XenBusDxe/XenBusDxe.h | 5 |
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
|