Back to index

plt-scheme  4.2.1
ffitarget.h
Go to the documentation of this file.
00001 /* -----------------------------------------------------------------*-C-*-
00002    ffitarget.h - Copyright (c) 1996-2004  Red Hat, Inc.
00003    Target configuration macros for FR-V
00004 
00005    Permission is hereby granted, free of charge, to any person obtaining
00006    a copy of this software and associated documentation files (the
00007    ``Software''), to deal in the Software without restriction, including
00008    without limitation the rights to use, copy, modify, merge, publish,
00009    distribute, sublicense, and/or sell copies of the Software, and to
00010    permit persons to whom the Software is furnished to do so, subject to
00011    the following conditions:
00012 
00013    The above copyright notice and this permission notice shall be included
00014    in all copies or substantial portions of the Software.
00015 
00016    THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS
00017    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00018    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00019    IN NO EVENT SHALL CYGNUS SOLUTIONS BE LIABLE FOR ANY CLAIM, DAMAGES OR
00020    OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
00021    ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
00022    OTHER DEALINGS IN THE SOFTWARE.
00023 
00024    ----------------------------------------------------------------------- */
00025 
00026 #ifndef LIBFFI_TARGET_H
00027 #define LIBFFI_TARGET_H
00028 
00029 /* ---- System specific configurations ----------------------------------- */
00030 
00031 #ifndef LIBFFI_ASM
00032 typedef unsigned long          ffi_arg;
00033 typedef signed long            ffi_sarg;
00034 
00035 typedef enum ffi_abi {
00036   FFI_FIRST_ABI = 0,
00037 
00038 #ifdef FRV
00039   FFI_EABI,
00040   FFI_DEFAULT_ABI = FFI_EABI,
00041 #endif
00042 
00043   FFI_LAST_ABI = FFI_DEFAULT_ABI + 1
00044 } ffi_abi;
00045 #endif
00046 
00047 /* ---- Definitions for closures ----------------------------------------- */
00048 
00049 #define FFI_CLOSURES 1
00050 #define FFI_NATIVE_RAW_API 0
00051 
00052 #ifdef __FRV_FDPIC__
00053 /* Trampolines are 8 4-byte instructions long.  */
00054 #define FFI_TRAMPOLINE_SIZE (8*4)
00055 #else
00056 /* Trampolines are 5 4-byte instructions long.  */
00057 #define FFI_TRAMPOLINE_SIZE (5*4)
00058 #endif
00059 
00060 #endif