Ignore:
Timestamp:
2006-09-13T14:12:58Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
da02e69
Parents:
6eabb6e6
Message:

More sparc64 FPU trap handlers.

File:
1 edited

Legend:

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

    r6eabb6e6 r34d9469e  
    8383}
    8484
     85/** Handle unimplemented_LDD. (0x12) */
     86void unimplemented_LDD(int n, istate_t *istate)
     87{
     88        fault_if_from_uspace(istate, "%s\n", __FUNCTION__);
     89        dump_istate(istate);
     90        panic("%s\n", __FUNCTION__);
     91}
     92
     93/** Handle unimplemented_STD. (0x13) */
     94void unimplemented_STD(int n, istate_t *istate)
     95{
     96        fault_if_from_uspace(istate, "%s\n", __FUNCTION__);
     97        dump_istate(istate);
     98        panic("%s\n", __FUNCTION__);
     99}
     100
    85101/** Handle fp_disabled. (0x20) */
    86102void fp_disabled(int n, istate_t *istate)
     
    104120}
    105121
     122/** Handle fp_exception_ieee_754. (0x21) */
     123void fp_exception_ieee_754(int n, istate_t *istate)
     124{
     125        fault_if_from_uspace(istate, "%s\n", __FUNCTION__);
     126        dump_istate(istate);
     127        panic("%s\n", __FUNCTION__);
     128}
     129
     130/** Handle fp_exception_other. (0x22) */
     131void fp_exception_other(int n, istate_t *istate)
     132{
     133        fault_if_from_uspace(istate, "%s\n", __FUNCTION__);
     134        dump_istate(istate);
     135        panic("%s\n", __FUNCTION__);
     136}
     137
     138/** Handle tag_overflow. (0x23) */
     139void tag_overflow(int n, istate_t *istate)
     140{
     141        fault_if_from_uspace(istate, "%s\n", __FUNCTION__);
     142        dump_istate(istate);
     143        panic("%s\n", __FUNCTION__);
     144}
     145
    106146/** Handle division_by_zero. (0x28) */
    107147void division_by_zero(int n, istate_t *istate)
     
    136176}
    137177
     178/** Handle LDDF_mem_address_not_aligned. (0x35) */
     179void LDDF_mem_address_not_aligned(int n, istate_t *istate)
     180{
     181        fault_if_from_uspace(istate, "%s\n", __FUNCTION__);
     182        dump_istate(istate);
     183        panic("%s\n", __FUNCTION__);
     184}
     185
     186/** Handle STDF_mem_address_not_aligned. (0x36) */
     187void STDF_mem_address_not_aligned(int n, istate_t *istate)
     188{
     189        fault_if_from_uspace(istate, "%s\n", __FUNCTION__);
     190        dump_istate(istate);
     191        panic("%s\n", __FUNCTION__);
     192}
     193
    138194/** Handle privileged_action. (0x37) */
    139195void privileged_action(int n, istate_t *istate)
     
    144200}
    145201
     202/** Handle LDQF_mem_address_not_aligned. (0x38) */
     203void LDQF_mem_address_not_aligned(int n, istate_t *istate)
     204{
     205        fault_if_from_uspace(istate, "%s\n", __FUNCTION__);
     206        dump_istate(istate);
     207        panic("%s\n", __FUNCTION__);
     208}
     209
     210/** Handle STQF_mem_address_not_aligned. (0x39) */
     211void STQF_mem_address_not_aligned(int n, istate_t *istate)
     212{
     213        fault_if_from_uspace(istate, "%s\n", __FUNCTION__);
     214        dump_istate(istate);
     215        panic("%s\n", __FUNCTION__);
     216}
     217
    146218/** @}
    147219 */
Note: See TracChangeset for help on using the changeset viewer.