Ignore:
Timestamp:
2005-12-29T19:17:29Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
80bff342
Parents:
7614565
Message:

sparc64 work.
Rename saving_handler() to preemptible_handler()
and fix it to make sparc64 kernel preemptive.
Add two handlers for two fatal exceptions (i.e.
instruction_access_exception and mem_address_not_aligned.
Fix panic_printf() to not allocate its own register window.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/include/trap/trap_table.h

    r7614565 rfeb5915  
    7272.endm
    7373
    74 .macro SAVING_HANDLER f
     74#define PREEMPTIBLE_HANDLER_STACK_FRAME_SIZE    (STACK_WINDOW_SAVE_AREA_SIZE+(4*8))
     75#define SAVED_TSTATE    -(1*8)
     76#define SAVED_TPC       -(2*8)
     77#define SAVED_TNPC      -(3*8)
     78#define SAVED_PSTATE    -(4*8)
     79
     80.macro PREEMPTIBLE_HANDLER f
    7581        set \f, %l0
    76         b saving_handler
     82        b preemptible_handler
     83        nop
     84.endm
     85
     86.macro SIMPLE_HANDLER f
     87        call \f
    7788        nop
    7889.endm
Note: See TracChangeset for help on using the changeset viewer.