Changeset 909c6e3 in mainline for arch/mips/include/exception.h


Ignore:
Timestamp:
2005-09-07T09:44:30Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d246e7e
Parents:
24bd23a
Message:

MIPS exception now saves all necesssary information only on stack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips/include/exception.h

    r24bd23a r909c6e3  
    3030#define __EXCEPTION_H__
    3131
     32#ifndef __mips_TYPES_H_
     33#  include <arch/types.h>
     34#endif
     35
    3236#define EXC_Int         0
    3337#define EXC_Mod         1
     
    4953#define EXC_VCED        31
    5054
    51 extern void exception(void);
     55struct exception_regdump {
     56        __u32 at;
     57        __u32 v0;
     58        __u32 v1;
     59        __u32 a0;
     60        __u32 a1;
     61        __u32 a2;
     62        __u32 a3;
     63        __u32 t0;
     64        __u32 t1;
     65        __u32 t2;
     66        __u32 t3;
     67        __u32 t4;
     68        __u32 t5;
     69        __u32 t6;
     70        __u32 t7;
     71        __u32 s0;
     72        __u32 s1;
     73        __u32 s2;
     74        __u32 s3;
     75        __u32 s4;
     76        __u32 s5;
     77        __u32 s6;
     78        __u32 s7;
     79        __u32 t8;
     80        __u32 t9;
     81        __u32 gp;
     82        __u32 sp;
     83        __u32 s8;
     84        __u32 ra;
     85       
     86        __u32 lo;
     87        __u32 hi;
     88
     89        __u32 status; /* cp0_status */
     90        __u32 epc; /* cp0_epc */
     91};
     92
     93extern void exception(struct exception_regdump *pstate);
    5294
    5395#endif
Note: See TracChangeset for help on using the changeset viewer.