Ignore:
Timestamp:
2014-10-27T15:10:14Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aef669b
Parents:
ec443d5
Message:

Let the fast MMU traps use exc_dispatch() in their slow-path.

In order to get proper exception accounting, the MMU related traps need
to go through the code in exc_dispatch(). To make this possible, we pass
the DTLB Tag Access register in istate_t in order to make way for the
trap type argument, which needs to be passed as the first argument to
exc_dispatch().

As a collateral change, this commit modifies the istate_t structure to
match the SPARC V9 ABI stack frame layout. It gives us a richer istate_t
with more information in it and also simplifies calculation of stack
offsets inside of preemptible_handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/include/arch/stack.h

    rec443d5 rd70ebffe  
    5454#define STACK_ARG_SAVE_AREA_SIZE  (6 * STACK_ITEM_SIZE)
    5555
    56 /**
    57  * Offsets of arguments on stack.
    58  */
    59 #define STACK_ARG0  0
    60 #define STACK_ARG1  4
    61 #define STACK_ARG2  8
    62 #define STACK_ARG3  12
    63 #define STACK_ARG4  16
    64 #define STACK_ARG5  20
    65 #define STACK_ARG6  24
    66 
    6756#endif
    6857
Note: See TracChangeset for help on using the changeset viewer.