Ignore:
Timestamp:
May 5, 2013, 12:03:56 AM (7 years ago)
Author:
gb
Message:

New arm architecture detection scheme.
Needs testing on armv6.

File:
1 edited

Legend:

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

    r15747 r15802  
    20532053
    20542054
     2055
     2056
     2057void
     2058early_signal_handler(int signum, siginfo_t *info, ExceptionInformation  *context)
     2059{
     2060  extern pc feature_check_fpu,feature_check_ldrex,feature_check_clrex;
     2061  extern int arm_architecture_version;
     2062 
     2063  if ((xpPC(context) == feature_check_fpu) ||
     2064      (xpPC(context) == feature_check_ldrex)) {
     2065    arm_architecture_version = 5;
     2066  } else {
     2067    arm_architecture_version = 6;
     2068  }
     2069  xpPC(context) = xpLR(context);
     2070}
Note: See TracChangeset for help on using the changeset viewer.