From a4902cccdf477e93a55d6211fcb7a071bb48b71c Mon Sep 17 00:00:00 2001 From: andrewfish Date: Thu, 29 Jul 2010 03:24:13 +0000 Subject: Complete coding to support X64 EFI ABI in UnixPkg. Code is not currently hooked in or tested, but it is code complete. Only missing step from testing is figuring out how to build with two different ABIs for the same platform. Sec needs a different ABI. May need to add a 2nd build step. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10710 6f19259b-4bc3-4df7-8a09-765794883524 --- UnixPkg/Sec/X64/NameManglingFix.c | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'UnixPkg/Sec/X64/NameManglingFix.c') diff --git a/UnixPkg/Sec/X64/NameManglingFix.c b/UnixPkg/Sec/X64/NameManglingFix.c index dc2ea36..a3fd6a6 100644 --- a/UnixPkg/Sec/X64/NameManglingFix.c +++ b/UnixPkg/Sec/X64/NameManglingFix.c @@ -20,8 +20,25 @@ // So these globals get you the correct name mangled functions that can // be accessed from assembly // -UnixRmDir gUnixRmDir = rmdir; -UnixOpenDir gUnixOpenDir = opendir; -UnixStat gUnixStat = (UnixStat)stat; -UnixStatFs gUnixStatFs = statfs; +UnixRmDir gUnixRmDir = rmdir; +UnixOpenDir gUnixOpenDir = opendir; +UnixStat gUnixStat = (UnixStat)stat; +UnixStatFs gUnixStatFs = statfs; +UnixReadDir gUnixReaddir = readdir; +UnixRewindDir gUnixRewinddir = rewinddir; +int +UnixIoCtl1 ( + int fd, + unsigned long int __request, + UINTN Arg + ) +{ + return ioctl (fd, __request, Arg); +} + +int +UnixFcntl1 (int __fd, int __cmd, UINTN Arg) +{ + return fcntl (__fd, __cmd, Arg); +} \ No newline at end of file -- cgit v1.1