]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Remove unused files to make it easier to add new thunks.
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 1 Dec 2010 02:25:46 +0000 (02:25 +0000)
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 1 Dec 2010 02:25:46 +0000 (02:25 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11108 6f19259b-4bc3-4df7-8a09-765794883524

UnixPkg/Sec/Ia32/GasketTemplate.c [deleted file]
UnixPkg/Sec/X64/GasketEfiTemplate.c [deleted file]

diff --git a/UnixPkg/Sec/Ia32/GasketTemplate.c b/UnixPkg/Sec/Ia32/GasketTemplate.c
deleted file mode 100644 (file)
index d85a26a..0000000
+++ /dev/null
@@ -1,163 +0,0 @@
-/** @file
-  Template file used to create Gasket.S
-
-  This file is built on the command line via gcc GasketTemplate.c -S 
-  and it will create GasketTemplate.s and this was used to create 
-  Gasket.S. You still have to add the extra stack alignment code to 
-  the assembly functions. 
-
-Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
-Portions copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
-This program and the accompanying materials
-are licensed and made available under the terms and conditions of the BSD License
-which accompanies this distribution.  The full text of the license may be found at
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-
-#include <stdint.h>
-#include <sys/stat.h>
-
-typedef int8_t    INT8;
-typedef uint8_t   UINT8;
-typedef int16_t   INT16;
-typedef uint16_t  UINT16;
-typedef int32_t   INT32;
-typedef uint32_t  UINT32;
-typedef int64_t   INT64;
-typedef uint64_t  UINT64;
-typedef UINT32    UINTN; 
-
-
-typedef int (*GASKET_VOID) ();
-typedef int (*GASKET_UINTN) (UINTN);
-typedef int (*GASKET_UINT64) (UINT64);
-typedef int (*GASKET_UINT64UINT64) (UINT64, UINT64);
-typedef int (*GASKET_UINTN_UINTN) (UINTN, UINTN);
-typedef int (*GASKET_UINTN_UINTN_UINTN) (UINTN, UINTN, UINTN);
-typedef int (*GASKET_UINTN_UINTN_UINTN_UINTN) (UINTN, UINTN, UINTN, UINTN);
-typedef int (*GASKET_UINTN_10ARGS) (UINTN, UINTN, UINTN, UINTN, UINTN, UINTN, UINTN, UINTN, UINTN, UINTN);
-typedef int (*GASKET_UINT64_UINTN) (UINT64, UINTN);
-typedef UINT64 (*GASKET_UINTN_UINT64_UINTN) (UINTN, UINT64, UINTN);
-typedef int (*GASKET_UINTN_UINT16) (UINTN, UINT16);
-
-int GasketVoid (void *api);
-int GasketUintn (void *api, UINTN a);
-int GasketUintnUintn (void *api, UINTN a, UINTN b);
-int GasketUintnUintnUintn (void *api, UINTN a, UINTN b, UINTN c);
-int GasketUintnUintnUintnUintn (void *api, UINTN a, UINTN b, UINTN c, UINTN d);
-int GasketUintn10Args (void *api, UINTN a, UINTN b, UINTN c, UINTN d, UINTN e, UINTN f, UINTN g, UINTN h, UINTN i, UINTN j);
-int GasketUint64Uintn (void *api, UINT64 a, UINTN b);
-UINT64 GasketUintnUiny64Uintn (void *api, UINTN a, UINT64 b, UINTN c);
-int GasketUintnUint16 (void *api, UINTN a, UINT16 b);
-
-
-
-int
-GasketVoid (void *api)
-{
-  GASKET_VOID func;
-  
-  func = (GASKET_VOID)api;
-  return func ();
-}
-
-int
-GasketUintn (void *api, UINTN a)
-{
-  GASKET_UINTN func;
-  
-  func = (GASKET_UINTN)api;
-  return func (a);
-}
-
-int
-GasketUintnUintn (void *api, UINTN a, UINTN b)
-{
-  GASKET_UINTN_UINTN func;
-  
-  func = (GASKET_UINTN_UINTN)api;
-  return func (a, b);
-}
-
-
-int
-GasketUintnUintnUintn (void *api, UINTN a, UINTN b, UINTN c)
-{
-  GASKET_UINTN_UINTN_UINTN func;
-  
-  func = (GASKET_UINTN_UINTN_UINTN)api;
-  return func (a, b, c);
-}
-
-int
-GasketUintnUintnUintnUintn (void *api, UINTN a, UINTN b, UINTN c, UINTN d)
-{
-  GASKET_UINTN_UINTN_UINTN_UINTN func;
-  
-  func = (GASKET_UINTN_UINTN_UINTN_UINTN)api;
-  return func (a, b, c, d);
-}
-
-int
-GasketUintn10Args (void *api, UINTN a, UINTN b, UINTN c, UINTN d, UINTN e, UINTN f, UINTN g, UINTN h, UINTN i, UINTN j)
-{
-  GASKET_UINTN_10ARGS func;
-  
-  func = (GASKET_UINTN_10ARGS)api;
-  return func (a, b, c, d, e, f, g, h, i, j);
-}
-
-
-int
-GasketUint64Uintn (void *api, UINT64 a, UINTN b)
-{
-  GASKET_UINT64_UINTN func;
-  
-  func = (GASKET_UINT64_UINTN)api;
-  return func (a, b);
-}
-
-UINT64
-GasketUintnUint64Uintn (void *api, UINTN a, UINT64 b, UINTN c)
-{
-  GASKET_UINTN_UINT64_UINTN func;
-  
-  func = (GASKET_UINTN_UINT64_UINTN)api;
-  return func (a, b, c);
-}
-
-int
-GasketUintnUint16 (void *api, UINTN a, UINT16 b)
-{
-  GASKET_UINTN_UINT16 func;
-  
-  func = (GASKET_UINTN_UINT16)api;
-  return func (a, b);
-}
-
-void
-ReverseGasketUint64 (void *api, UINT64 a)
-{
-  GASKET_UINTN func;
-  
-  func = (GASKET_UINT64)api;
-  func (a);
-  return;
-}
-
-void
-ReverseGasketUint64UINT64 (void *api, UINT64 a, UINT64 b)
-{
-  GASKET_UINT64UINT64 func;
-  
-  func = (GASKET_UINT64UINT64)api;
-  func (a, b);
-  return;
-}
-
-
diff --git a/UnixPkg/Sec/X64/GasketEfiTemplate.c b/UnixPkg/Sec/X64/GasketEfiTemplate.c
deleted file mode 100644 (file)
index c9fc748..0000000
+++ /dev/null
@@ -1,411 +0,0 @@
-/** @file\r
-\r
-  Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-  \r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#include "SecMain.h"\r
-#include "Gasket.h"\r
-\r
-//\r
-// OS X Posix does some strange name mangling on these names in C.\r
-// If you call from assembler you get the wrong version of the function\r
-// So these globals get you the correct name mangled functions that can\r
-// be accessed from assembly\r
-//  \r
-extern UnixRmDir   gUnixRmDir;\r
-extern UnixOpenDir gUnixOpenDir;\r
-extern UnixStat    gUnixStat;\r
-extern UnixStatFs  gUnixStatFs;\r
-\r
-//\r
-// Gasket functions for EFI_UNIX_THUNK_PROTOCOL\r
-//\r
-\r
-int \r
-Gasketrmdir (const char *pathname)\r
-{\r
-  return gUnixRmDir (pathname);\r
-}\r
-\r
-\r
-DIR *\r
-Gasketopendir (const char *pathname)\r
-{\r
-  return gUnixOpenDir (pathname);\r
-}\r
-\r
-\r
-int \r
-Gasketstat (const char *path, STAT_FIX *buf)\r
-{\r
-  return gUnixStat (path, buf);\r
-}\r
-\r
-\r
-int \r
-Gasketstatfs (const char *path, struct statfs *buf)\r
-{\r
-  return gUnixStatFs (path, buf);\r
-}\r
-\r
-/////\r
-\r
-\r
-void \r
-GasketmsSleep (unsigned long Milliseconds)\r
-{ \r
-  msSleep (Milliseconds);\r
-  return;\r
-}\r
-\r
-void \r
-Gasketexit (int status)\r
-{\r
-  exit (status);\r
-  return;\r
-}\r
-\r
-\r
-void \r
-GasketSetTimer (UINT64 PeriodMs, VOID (*CallBack)(UINT64 DeltaMs))\r
-{\r
-  SetTimer (PeriodMs, CallBack);\r
-  return;\r
-}\r
-\r
-\r
-void \r
-GasketGetLocalTime (EFI_TIME *Time)\r
-{\r
-  GetLocalTime (Time);\r
-  return;\r
-}\r
-\r
-\r
-struct tm *\r
-Gasketgmtime (const time_t *clock)\r
-{\r
-  return localtime (clock);\r
-}\r
-\r
-\r
-long \r
-GasketGetTimeZone (void)\r
-{\r
-  return  GetTimeZone ();\r
-}\r
-\r
-\r
-int \r
-GasketGetDayLight (void)\r
-{\r
-  return  GetDayLight ();\r
-}\r
-\r
-\r
-int \r
-Gasketpoll (struct pollfd *pfd, unsigned int nfds, int timeout)\r
-{\r
-  return poll (pfd, nfds, timeout);\r
-}\r
-\r
-\r
-long\r
-Gasketread (int fd, void *buf, int count)\r
-{\r
-  return  read (fd, buf, count);\r
-}\r
-\r
-\r
-long\r
-Gasketwrite (int fd, const void *buf, int count)\r
-{\r
-  return  write (fd, buf, count);\r
-}\r
-\r
-\r
-char *\r
-Gasketgetenv (const char *name)\r
-{\r
-  return getenv (name);\r
-}\r
-\r
-\r
-int \r
-Gasketopen (const char *name, int flags, int mode)\r
-{\r
-  return open (name, flags, mode);\r
-}\r
-\r
-\r
-off_t \r
-Gasketlseek (int fd, off_t off, int whence)\r
-{\r
-  return lseek (fd, off, whence);\r
-}\r
-\r
-\r
-int \r
-Gasketftruncate (int fd, long int len)\r
-{\r
-  return ftruncate (fd, len);\r
-}\r
-\r
-\r
-int \r
-Gasketclose (int fd)\r
-{\r
-  return close (fd);\r
-}\r
-\r
-\r
-int \r
-Gasketmkdir (const char *pathname, mode_t mode)\r
-{\r
-  return mkdir (pathname, mode);\r
-}\r
-\r
-\r
-int \r
-Gasketunlink (const char *pathname)\r
-{\r
-  return unlink (pathname);\r
-}\r
-\r
-\r
-int \r
-GasketGetErrno (void)\r
-{\r
-  return GetErrno ();\r
-}\r
-\r
-\r
-void \r
-Gasketrewinddir (DIR *dir)\r
-{\r
- rewinddir (dir);\r
-  return;\r
-}\r
-\r
-\r
-struct dirent *\r
-Gasketreaddir (DIR *dir)\r
-{\r
-  return readdir (dir);\r
-}\r
-\r
-\r
-int \r
-Gasketclosedir (DIR *dir)\r
-{\r
-  return closedir (dir);\r
-}\r
-\r
-\r
-int \r
-Gasketrename (const char *oldpath, const char *newpath)\r
-{\r
-  return rename (oldpath, newpath);\r
-}\r
-\r
-\r
-time_t \r
-Gasketmktime (struct tm *tm)\r
-{\r
-  return mktime (tm);\r
-}\r
-\r
-\r
-int \r
-Gasketfsync (int fd)\r
-{\r
-  return fsync (fd);\r
-}\r
-\r
-\r
-int \r
-Gasketchmod (const char *path, mode_t mode)\r
-{\r
-  return chmod (path, mode);\r
-}\r
-\r
-\r
-int \r
-Gasketutime (const char *filename, const struct utimbuf *buf)\r
-{\r
-  return utime (filename, buf);\r
-}\r
-\r
-\r
-int \r
-Gaskettcflush (int fildes, int queue_selector)\r
-{\r
-  return tcflush (fildes, queue_selector);\r
-}\r
-\r
-\r
-EFI_STATUS \r
-GasketUgaCreate (struct _EFI_UNIX_UGA_IO_PROTOCOL **UgaIo, CONST CHAR16 *Title)\r
-{\r
-  return UgaCreate (UgaIo, Title);\r
-}\r
-\r
-\r
-void \r
-Gasketperror (__const char *__s)\r
-{\r
-  perror (__s);\r
-  return;\r
-}\r
-\r
-\r
-\r
-//\r
-// ... is always an int or pointer to device specific data structure\r
-//\r
-int \r
-Gasketioctl (int fd, unsigned long int __request, ...)\r
-{\r
-  VA_LIST Marker;\r
-  \r
-  VA_START (Marker, __request);\r
-  return ioctl (fd, __request, VA_ARG (Marker, UINTN));\r
-}\r
-\r
-\r
-int \r
-Gasketfcntl (int __fd, int __cmd, ...)\r
-{\r
-  VA_LIST Marker;\r
-  \r
-  VA_START (Marker, __cmd);\r
-  return fcntl (__fd, __cmd, VA_ARG (Marker, UINTN));\r
-}\r
-\r
-\r
-\r
-int \r
-Gasketcfsetispeed (struct termios *__termios_p, speed_t __speed)\r
-{\r
-  return cfsetispeed (__termios_p, __speed);\r
-}\r
-\r
-\r
-int \r
-Gasketcfsetospeed (struct termios *__termios_p, speed_t __speed)\r
-{\r
-  return cfsetospeed (__termios_p, __speed);\r
-}\r
-\r
-\r
-int \r
-Gaskettcgetattr (int __fd, struct termios *__termios_p)\r
-{\r
-  return tcgetattr (__fd, __termios_p);\r
-}\r
-\r
\r
-int \r
-Gaskettcsetattr (int __fd, int __optional_actions, __const struct termios *__termios_p)\r
-{\r
-  return tcsetattr (__fd, __optional_actions, __termios_p);\r
-}\r
-\r
-\r
-\r
-\r
-RETURN_STATUS\r
-GasketUnixPeCoffGetEntryPoint (\r
-  IN     VOID  *Pe32Data,\r
-  IN OUT VOID  **EntryPoint\r
-  )\r
-{\r
-  return SecPeCoffGetEntryPoint (Pe32Data, EntryPoint);\r
-}\r
-\r
-\r
-\r
-VOID\r
-GasketUnixPeCoffRelocateImageExtraAction (\r
-  IN OUT PE_COFF_LOADER_IMAGE_CONTEXT  *ImageContext\r
-  )\r
-{\r
-  SecPeCoffRelocateImageExtraAction (ImageContext);\r
-  return;\r
-}\r
-\r
-\r
-\r
-VOID\r
-GasketUnixPeCoffUnloadImageExtraAction (\r
-  IN OUT PE_COFF_LOADER_IMAGE_CONTEXT  *ImageContext\r
-  )\r
-{\r
-  SecPeCoffLoaderUnloadImageExtraAction (ImageContext);\r
-  return;\r
-}\r
-\r
-\r
-//\r
-// Gasket functions for EFI_UNIX_UGA_IO_PROTOCOL\r
-//\r
-\r
-EFI_STATUS \r
-EFIAPI \r
-GasketUgaClose (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo)\r
-{\r
-  return UgaClose (UgaIo);\r
-}\r
-\r
-EFI_STATUS \r
-EFIAPI \r
-GasketUgaSize (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, UINT32 Width, UINT32 Height)\r
-{\r
-  return UgaSize (UgaIo, Width, Height);\r
-}\r
-\r
-EFI_STATUS \r
-EFIAPI \r
-GasketUgaCheckKey (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo)\r
-{\r
-  return UgaCheckKey (UgaIo);\r
-}\r
-\r
-EFI_STATUS \r
-EFIAPI \r
-GasketUgaGetKey (EFI_UNIX_UGA_IO_PROTOCOL *UgaIo, EFI_INPUT_KEY *key)\r
-{\r
-  return UgaGetKey (UgaIo, key);\r
-}\r
-\r
-EFI_STATUS \r
-EFIAPI \r
-GasketUgaBlt (\r
-   EFI_UNIX_UGA_IO_PROTOCOL                    *UgaIo,\r
-   IN  EFI_UGA_PIXEL                           *BltBuffer OPTIONAL,\r
-   IN  EFI_UGA_BLT_OPERATION                   BltOperation,\r
-        IN  UGA_BLT_ARGS                            *Args\r
-   )\r
-{\r
-  return UgaBlt (UgaIo, BltBuffer, BltOperation, Args);\r
-}\r
-\r
-typedef void (*SET_TIMER_CALLBACK)(UINT64 delta);\r
-\r
-\r
-UINTN \r
-ReverseGasketUint64 (SET_TIMER_CALLBACK settimer_callback, UINT64 a)\r
-{\r
-  (*settimer_callback)(a);\r
-  return 0;\r
-}\r
-\r