Changeset dc9aaf7 in rtems


Ignore:
Timestamp:
Feb 20, 2015, 1:08:01 PM (5 years ago)
Author:
Martin Galvan <martin.galvan@…>
Branches:
4.11, master
Children:
83fe4468
Parents:
a45dfa14
git-author:
Martin Galvan <martin.galvan@…> (02/20/15 13:08:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/20/15 17:52:58)
Message:

ARM: Support VFP-D16

This patch allows the existing FPU code to support both VFP-D16 and
VFP-D32. According to ARM, writes to D32DIS are ignored for D16 so
there's no need to enclose the bic instruction with an #ifdef. We tested
it on a TMS570LS3137 using TI initialization code and it works fine.

Signed-off by: Martin Galvan <martin.galvan@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/start/start.S

    ra45dfa14 rdc9aaf7  
    188188        /* Stay in SVC mode */
    189189
    190 #ifdef ARM_MULTILIB_VFP_D32
     190#ifdef ARM_MULTILIB_VFP
    191191        /* Read CPACR */
    192192        mrc p15, 0, r0, c1, c0, 2
     
    196196        orr r0, r0, #(1 << 22)
    197197
    198         /* Clear ASEDIS and D32DIS */
     198        /*
     199         * Clear ASEDIS and D32DIS.  Writes to D32DIS are ignored for VFP-D16.
     200         */
    199201        bic r0, r0, #(3 << 30)
    200202
     
    206208        mov r0, #(1 << 30)
    207209        vmsr FPEXC, r0
    208 #endif
     210#endif /* ARM_MULTILIB_VFP */
    209211
    210212        /*
Note: See TracChangeset for help on using the changeset viewer.