Changeset 14271


Ignore:
Timestamp:
Sep 17, 2010, 10:44:10 PM (9 years ago)
Author:
gb
Message:

Some Android conditionalization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/arm-exceptions.c

    r14197 r14271  
    2828#include <strings.h>
    2929#include <sys/mman.h>
     30#ifndef ANDROID
    3031#include <fpu_control.h>
    3132#include <linux/prctl.h>
     33#endif
    3234#endif
    3335
     
    4850
    4951#ifdef LINUX
    50 /* Some relatively recent kernels support this interface.
    51    If this prctl isn't supported, assume that we're always
    52    running with excptions enabled and "precise".
    53 */
    54 #ifndef PR_SET_FPEXC
    55 #define PR_SET_FPEXC 12
    56 #endif
    57 #ifndef PR_FP_EXC_DISABLED
    58 #define PR_FP_EXC_DISABLED 0
    59 #endif
    60 #ifndef PR_FP_EXC_PRECISE
    61 #define PR_FP_EXC_PRECISE 3
    62 #endif
    6352
    6453void
    6554enable_fp_exceptions()
    6655{
    67   prctl(PR_SET_FPEXC, PR_FP_EXC_PRECISE);
    6856}
    6957
     
    7159disable_fp_exceptions()
    7260{
    73   prctl(PR_SET_FPEXC, PR_FP_EXC_DISABLED);
    74 }
    75 
     61}
    7662#endif
    7763
     
    11871173  natural  callback_ptr;
    11881174  area *a;
    1189   natural fnreg = fn,  codevector, offset;
     1175  natural fnreg = Rfn,  codevector, offset;
    11901176  pc where = xpPC(xp);
    11911177  int delta;
Note: See TracChangeset for help on using the changeset viewer.