mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
a9090a94bb
commit
02a6bcff71
|
@ -0,0 +1,9 @@
|
||||||
|
#include "XenBusDxe.h"
|
||||||
|
|
||||||
|
CHAR8*
|
||||||
|
AsciiStrDup (
|
||||||
|
IN CONST CHAR8* Str
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return AllocateCopyPool (AsciiStrSize (Str), Str);
|
||||||
|
}
|
|
@ -116,4 +116,9 @@ TestAndClearBit (
|
||||||
IN volatile VOID *Address
|
IN volatile VOID *Address
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CHAR8*
|
||||||
|
AsciiStrDup (
|
||||||
|
IN CONST CHAR8* Str
|
||||||
|
);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue