Changeset cc74cb5 in mainline
- Timestamp:
- 2018-09-14T23:15:04Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6f58770
- Parents:
- 09ab0a9a
- Location:
- kernel/arch/ia64
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/include/arch/context.h
r09ab0a9a rcc74cb5 57 57 (c)->bsp = ((uintptr_t) stack) + ALIGN_UP((size / 2), REGISTER_STACK_ALIGNMENT); \ 58 58 (c)->ar_pfs &= PFM_MASK; \ 59 (c)->ar_fpsr = FPSR_TRAPS_ALL ; \59 (c)->ar_fpsr = FPSR_TRAPS_ALL | FPSR_SF1_CTRL; \ 60 60 (c)->sp = ((uintptr_t) stack) + ALIGN_UP((size / 2), STACK_ALIGNMENT) - SP_DELTA; \ 61 61 (c)->r1 = (uintptr_t) &__gp; \ -
kernel/arch/ia64/include/arch/register.h
r09ab0a9a rcc74cb5 78 78 #define FPSR_TRAPS_ALL (FPSR_TRAPS_VD | FPSR_TRAPS_DD | FPSR_TRAPS_ZD | \ 79 79 FPSR_TRAPS_OD | FPSR_TRAPS_UD | FPSR_TRAPS_ID) 80 81 #define FPSR_SF1_SHIFT 19 82 83 #define FPSR_CTRL_WRE (1 << 1) 84 #define FPSR_CTRL_PC_EXTENDED (3 << 2) 85 #define FPSR_CTRL_RC_NEAREST (0 << 4) 86 #define FPSR_CTRL_TD (1 << 6) 87 88 #define FPSR_SF1_CTRL ((FPSR_CTRL_WRE | FPSR_CTRL_PC_EXTENDED | \ 89 FPSR_CTRL_RC_NEAREST | FPSR_CTRL_TD) << FPSR_SF1_SHIFT) 80 90 81 91 /** Application registers. */ -
kernel/arch/ia64/src/fpu_context.c
r09ab0a9a rcc74cb5 491 491 "mov ar.fpsr = %0 ;;\n" 492 492 : "+r" (a) 493 : "r" (FPSR_TRAPS_ALL )493 : "r" (FPSR_TRAPS_ALL | FPSR_SF1_CTRL) 494 494 ); 495 495
Note:
See TracChangeset
for help on using the changeset viewer.