Changeset cd8db93 in mainline


Ignore:
Timestamp:
2013-01-16T23:09:44Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a640bc1
Parents:
3de8aaa6
Message:

arm32: check only monitor mode to determine secure state.

Accessing SCR may cause undef isntr trap.
Fixes fpu on bbxm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/fpu_context.c

    r3de8aaa6 rcd8db93  
    163163#endif
    164164        if (sec_ext_is_implemented()) {
    165                 printf("Enabling FPU in %s context (%x)\n",
    166                         sec_ext_is_secure() ? "secure" : "unsecure",
    167                         SCR_read());
    168                 if (!sec_ext_is_secure()) {
    169                         sec_ext_call(SECURITY_CALL_ENABLE_CP10_11);
     165                if (!sec_ext_is_monitor_mode()) {
     166                // TODO enable this when we implement SMC handling
     167                //      sec_ext_call(SECURITY_CALL_ENABLE_CP10_11);
    170168                } else {
    171169                        uint32_t nsacr = NSACR_read();
Note: See TracChangeset for help on using the changeset viewer.