Ignore:
Timestamp:
2007-11-16T16:24:05Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9cc0d7c
Parents:
454889c
Message:

Support for six syscall arguments for sparc64.
There is a minor stability issue which needs to be fixed (kernel panics upon entering kconsole from the
console task).

File:
1 edited

Legend:

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

    r454889c r05ae7081  
    7878
    7979/*
    80  * The following needs to be in sync with the
    81  * definition of the istate structure.
     80 * The following needs to be in sync with the definition of the istate
     81 * structure. The one STACK_ITEM_SIZE is counted for space holding the 7th
     82 * argument to syscall_handler (i.e. syscall number) and the other
     83 * STACK_ITEM_SIZE is counted because of the required alignment.
    8284 */
    83 #define PREEMPTIBLE_HANDLER_STACK_FRAME_SIZE    (STACK_WINDOW_SAVE_AREA_SIZE+(12*8))
    84 #define SAVED_TSTATE    -(1*8)
    85 #define SAVED_TPC       -(2*8)
    86 #define SAVED_TNPC      -(3*8)          /* <-- istate_t begins here */
    87 #define SAVED_Y         -(4*8)
    88 #define SAVED_I0        -(5*8)
    89 #define SAVED_I1        -(6*8)
    90 #define SAVED_I2        -(7*8)
    91 #define SAVED_I3        -(8*8)
    92 #define SAVED_I4        -(9*8)
    93 #define SAVED_I5        -(10*8)
    94 #define SAVED_I6        -(11*8)
    95 #define SAVED_I7        -(12*8)
     85#define PREEMPTIBLE_HANDLER_STACK_FRAME_SIZE    \
     86    (STACK_WINDOW_SAVE_AREA_SIZE + STACK_ARG_SAVE_AREA_SIZE + \
     87    (2 * STACK_ITEM_SIZE) + (12 * 8))
     88#define SAVED_TSTATE    -(1 * 8)
     89#define SAVED_TPC       -(2 * 8)
     90#define SAVED_TNPC      -(3 * 8)        /* <-- istate_t begins here */
     91#define SAVED_Y         -(4 * 8)
     92#define SAVED_I0        -(5 * 8)
     93#define SAVED_I1        -(6 * 8)
     94#define SAVED_I2        -(7 * 8)
     95#define SAVED_I3        -(8 * 8)
     96#define SAVED_I4        -(9 * 8)
     97#define SAVED_I5        -(10 * 8)
     98#define SAVED_I6        -(11 * 8)
     99#define SAVED_I7        -(12 * 8)
    96100
    97101.macro PREEMPTIBLE_HANDLER f
Note: See TracChangeset for help on using the changeset viewer.