diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-07-29 03:24:13 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-07-29 03:24:13 +0000 |
commit | a4902cccdf477e93a55d6211fcb7a071bb48b71c (patch) | |
tree | dc61a7914f89038be9cfd4c1465b4bab91ffc7be /UnixPkg/Sec/X64/NameManglingFix.c | |
parent | 712a5698a6edd14d8247132cbbbe63da1ea69bf0 (diff) | |
download | edk2-a4902cccdf477e93a55d6211fcb7a071bb48b71c.tar.gz edk2-a4902cccdf477e93a55d6211fcb7a071bb48b71c.tar.bz2 edk2-a4902cccdf477e93a55d6211fcb7a071bb48b71c.zip |
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
Diffstat (limited to 'UnixPkg/Sec/X64/NameManglingFix.c')
-rw-r--r-- | UnixPkg/Sec/X64/NameManglingFix.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/UnixPkg/Sec/X64/NameManglingFix.c b/UnixPkg/Sec/X64/NameManglingFix.c index dc2ea36d36..a3fd6a6edf 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 |