Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/exception.h

    rce890ec9 r7a0359b  
    6060
    6161typedef struct istate {
    62         /*
    63          * The first seven registers are arranged so that the istate structure
    64          * can be used both for exception handlers and for the syscall handler.
    65          */
    66         uint32_t a0;    /* arg1 */
    67         uint32_t a1;    /* arg2 */
    68         uint32_t a2;    /* arg3 */
    69         uint32_t a3;    /* arg4 */
    70         uint32_t t0;    /* arg5 */
    71         uint32_t t1;    /* arg6 */
    72         uint32_t v0;    /* arg7 */
     62        uint32_t at;
     63        uint32_t v0;
    7364        uint32_t v1;
    74         uint32_t at;
     65        uint32_t a0;
     66        uint32_t a1;
     67        uint32_t a2;
     68        uint32_t a3;
     69        uint32_t t0;
     70        uint32_t t1;
    7571        uint32_t t2;
    7672        uint32_t t3;
     
    7975        uint32_t t6;
    8076        uint32_t t7;
    81         uint32_t s0;
    82         uint32_t s1;
    83         uint32_t s2;
    84         uint32_t s3;
    85         uint32_t s4;
    86         uint32_t s5;
    87         uint32_t s6;
    88         uint32_t s7;
    8977        uint32_t t8;
    9078        uint32_t t9;
    91         uint32_t kt0;
    92         uint32_t kt1;   /* We use it as thread-local pointer */
    9379        uint32_t gp;
    9480        uint32_t sp;
    95         uint32_t s8;
    9681        uint32_t ra;
    9782       
     
    9984        uint32_t hi;
    10085       
    101         uint32_t status;        /* cp0_status */
    102         uint32_t epc;           /* cp0_epc */
    103 
    104         uint32_t alignment;     /* to make sizeof(istate_t) a multiple of 8 */
     86        uint32_t status;  /* cp0_status */
     87        uint32_t epc;     /* cp0_epc */
     88        uint32_t k1;      /* We use it as thread-local pointer */
    10589} istate_t;
    10690
     
    124108NO_TRACE static inline unative_t istate_get_fp(istate_t *istate)
    125109{
    126         return istate->sp;
     110        /* FIXME */
     111       
     112        return 0;
    127113}
    128114
Note: See TracChangeset for help on using the changeset viewer.