Changeset cd3868cd in rtems


Ignore:
Timestamp:
08/15/96 21:09:02 (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
02f041e
Parents:
0600e86f
Message:

updates from Tony Bennett (tbennett@…)

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/cpu/hppa1.1/cpu.c

    r0600e86f rcd3868cd  
    127127
    128128    /*
    129      * XXX; need to setup fpsr smarter perhaps
     129     * This is the default fp context for all tasks
     130     * Set it up so that denormalized results go to zero.
    130131     */
    131132
     
    133134    for (i=0 ; i<sizeof(Context_Control_fp); i++)
    134135        *fp_context++ = 0;
     136    *((unsigned32 *) &_CPU_Null_fp_context) = HPPA_FPSTATUS_D;
    135137
    136138    /*
    137      *  Set _CPU_Default_gr27 here so it will hopefully be the correct
     139     *  Save r27 into _CPU_Default_gr27 so it will hopefully be the correct
    138140     *  global data pointer for the entire system.
    139141     */
  • c/src/exec/score/cpu/hppa1.1/hppa.h

    r0600e86f rcd3868cd  
    250250#define HPPA_PROT_X3   0x07c00000   /* Execute Only, Promote to Level 3 */
    251251
     252/*
     253 * Floating point status register definitions
     254 */
     255
     256#define HPPA_FPSTATUS_ENABLE_I    0x00000001    /* inexact operation */
     257#define HPPA_FPSTATUS_ENABLE_U    0x00000002    /* underflow */
     258#define HPPA_FPSTATUS_ENABLE_O    0x00000004    /* overflow */
     259#define HPPA_FPSTATUS_ENABLE_Z    0x00000008    /* division by zero */
     260#define HPPA_FPSTATUS_ENABLE_V    0x00000010    /* invalid operation */
     261#define HPPA_FPSTATUS_D           0x00000020    /* denormalize as zero */
     262#define HPPA_FPSTATUS_T           0x00000040    /* delayed trap */
     263#define HPPA_FPSTATUS_RM_MASK     0x00000600    /* rounding mode */
     264#define HPPA_FPSTATUS_RM_SHIFT    9
     265#define HPPA_FPSTATUS_CQ_MASK     0x001FFC00    /* compare queue */
     266#define HPPA_FPSTATUS_CQ_SHIFT    13
     267#define HPPA_FPSTATUS_C           0x04000000    /* most recent ompare bit */
     268#define HPPA_FPSTATUS_FLAG_I      0x08000000    /* inexact */
     269#define HPPA_FPSTATUS_FLAG_U      0x10000000    /* underflow */
     270#define HPPA_FPSTATUS_FLAG_O      0x20000000    /* overflow */
     271#define HPPA_FPSTATUS_FLAG_Z      0x40000000    /* division by zero */
     272#define HPPA_FPSTATUS_FLAG_V      0x80000000    /* invalid operation */
     273
    252274
    253275/*
  • cpukit/score/cpu/hppa1.1/cpu.c

    r0600e86f rcd3868cd  
    127127
    128128    /*
    129      * XXX; need to setup fpsr smarter perhaps
     129     * This is the default fp context for all tasks
     130     * Set it up so that denormalized results go to zero.
    130131     */
    131132
     
    133134    for (i=0 ; i<sizeof(Context_Control_fp); i++)
    134135        *fp_context++ = 0;
     136    *((unsigned32 *) &_CPU_Null_fp_context) = HPPA_FPSTATUS_D;
    135137
    136138    /*
    137      *  Set _CPU_Default_gr27 here so it will hopefully be the correct
     139     *  Save r27 into _CPU_Default_gr27 so it will hopefully be the correct
    138140     *  global data pointer for the entire system.
    139141     */
Note: See TracChangeset for help on using the changeset viewer.