Changeset ffc277e in mainline for arch/mips/src/exception.c


Ignore:
Timestamp:
2005-09-10T00:52:13Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3a6c8e5
Parents:
b02e5d1
Message:

Cleanup of makefiles to have common options in one main makefile.

Add simple build process for different simulators for MIPS.
Added FPU context & lazy FPU context switching to MIPS.
Cleanup of MIPS linker script.
Moved MIPS kernel above 1MB. Not tested on real machine yet, but it might help.

There is something broken with gcc inlined memcpy (either simulator or gcc), it is disabled on BigEndian mips now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips/src/exception.c

    rb02e5d1 rffc277e  
    5252        cp0_status_write(cp0_status_read() & ~ (cp0_status_exl_exception_bit |
    5353                                                cp0_status_um_bit));
     54        /* Save pstate so that the threads can access it */
     55        if (THREAD)
     56                THREAD->pstate = pstate;
    5457
    5558        /* decode exception number and process the exception */
     
    8689                        break;
    8790                case EXC_CpU:
     91#ifdef FPU_LAZY     
     92                        scheduler_fpu_lazy_request();
     93#else
    8894                        panic("unhandled Coprocessor Unusable Exception\n");
     95#endif
    8996                        break;
    9097                case EXC_Ov:
     
    111118       
    112119        pstate->epc += epc_shift;
     120        /* Probable not needed, but just for sure that nobody
     121         * will continue accessing it */
     122        if (THREAD)
     123                THREAD->pstate = NULL;
    113124}
Note: See TracChangeset for help on using the changeset viewer.