Ignore:
Timestamp:
2018-09-14T23:15:04Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6f58770
Parents:
09ab0a9a
Message:

Set FPSR.sf1 controls to standard values

The Itanium Software Conventions and Runtime Architecture Guide reserves
the Status Field 1 of FPSR to be used by the divide and square root code
and requires that it has certain standard values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/include/arch/context.h

    r09ab0a9a rcc74cb5  
    5757                (c)->bsp = ((uintptr_t) stack) + ALIGN_UP((size / 2), REGISTER_STACK_ALIGNMENT); \
    5858                (c)->ar_pfs &= PFM_MASK; \
    59                 (c)->ar_fpsr = FPSR_TRAPS_ALL; \
     59                (c)->ar_fpsr = FPSR_TRAPS_ALL | FPSR_SF1_CTRL; \
    6060                (c)->sp = ((uintptr_t) stack) + ALIGN_UP((size / 2), STACK_ALIGNMENT) - SP_DELTA; \
    6161                (c)->r1 = (uintptr_t) &__gp; \
Note: See TracChangeset for help on using the changeset viewer.