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-2003  Red Hat, Inc.
00003    Target configuration macros for CRIS.
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 #ifndef LIBFFI_ASM
00030 typedef unsigned long          ffi_arg;
00031 typedef signed long            ffi_sarg;
00032 
00033 typedef enum ffi_abi {
00034   FFI_FIRST_ABI = 0,
00035   FFI_SYSV,
00036   FFI_DEFAULT_ABI = FFI_SYSV,
00037   FFI_LAST_ABI = FFI_DEFAULT_ABI + 1
00038 } ffi_abi;
00039 #endif
00040 
00041 /* ---- Definitions for closures ----------------------------------------- */
00042 
00043 #define FFI_CLOSURES 1
00044 #define FFI_CRIS_TRAMPOLINE_CODE_PART_SIZE 36
00045 #define FFI_CRIS_TRAMPOLINE_DATA_PART_SIZE (7*4)
00046 #define FFI_TRAMPOLINE_SIZE \
00047  (FFI_CRIS_TRAMPOLINE_CODE_PART_SIZE + FFI_CRIS_TRAMPOLINE_DATA_PART_SIZE)
00048 #define FFI_NATIVE_RAW_API 0
00049 
00050 #endif