Ignore:
Timestamp:
2006-09-13T13:16:30Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
34d9469e
Parents:
9a5b556
Message:

Support for sparc64 FPU context.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/trap/exception.c

    r9a5b556 r6eabb6e6  
    3838#include <interrupt.h>
    3939#include <arch/asm.h>
     40#include <arch/register.h>
    4041#include <debug.h>
    4142#include <typedefs.h>
     
    8283}
    8384
     85/** Handle fp_disabled. (0x20) */
     86void fp_disabled(int n, istate_t *istate)
     87{
     88        fprs_reg_t fprs;
     89       
     90        fprs.value = fprs_read();
     91        if (!fprs.fef) {
     92                fprs.fef = true;
     93                fprs_write(fprs.value);
     94                return;
     95        }
     96
     97#ifdef CONFIG_FPU_LAZY
     98        scheduler_fpu_lazy_request();
     99#else
     100        fault_if_from_uspace(istate, "%s\n", __FUNCTION__);
     101        dump_istate(istate);
     102        panic("%s\n", __FUNCTION__);
     103#endif
     104}
     105
    84106/** Handle division_by_zero. (0x28) */
    85107void division_by_zero(int n, istate_t *istate)
Note: See TracChangeset for help on using the changeset viewer.