Changeset 15d0046 in mainline for kernel/arch/mips32/src/start.S


Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/start.S

    r8db09e4 r15d0046  
    3030#include <arch/mm/page.h>
    3131#include <arch/asm/boot.h>
    32 #include <arch/context_offset.h>
    3332#include <arch/stack.h>
     33#include <arch/istate_struct.h>
    3434
    3535.text
     
    5151#define REG_SAVE_MASK 0x1f
    5252
    53 #define ISTATE_OFFSET_A0        0
    54 #define ISTATE_OFFSET_A1        4
    55 #define ISTATE_OFFSET_A2        8
    56 #define ISTATE_OFFSET_A3        12
    57 #define ISTATE_OFFSET_T0        16
    58 #define ISTATE_OFFSET_T1        20
    59 #define ISTATE_OFFSET_V0        24
    60 #define ISTATE_OFFSET_V1        28
    61 #define ISTATE_OFFSET_AT        32
    62 #define ISTATE_OFFSET_T2        36
    63 #define ISTATE_OFFSET_T3        40
    64 #define ISTATE_OFFSET_T4        44
    65 #define ISTATE_OFFSET_T5        48
    66 #define ISTATE_OFFSET_T6        52
    67 #define ISTATE_OFFSET_T7        56
    68 #define ISTATE_OFFSET_S0        60
    69 #define ISTATE_OFFSET_S1        64
    70 #define ISTATE_OFFSET_S2        68
    71 #define ISTATE_OFFSET_S3        72
    72 #define ISTATE_OFFSET_S4        76
    73 #define ISTATE_OFFSET_S5        80
    74 #define ISTATE_OFFSET_S6        84
    75 #define ISTATE_OFFSET_S7        88
    76 #define ISTATE_OFFSET_T8        92
    77 #define ISTATE_OFFSET_T9        96
    78 #define ISTATE_OFFSET_KT0       100
    79 #define ISTATE_OFFSET_KT1       104
    80 #define ISTATE_OFFSET_GP        108
    81 #define ISTATE_OFFSET_SP        112
    82 #define ISTATE_OFFSET_S8        116
    83 #define ISTATE_OFFSET_RA        120
    84 #define ISTATE_OFFSET_LO        124
    85 #define ISTATE_OFFSET_HI        128
    86 #define ISTATE_OFFSET_STATUS    132
    87 #define ISTATE_OFFSET_EPC       136
    88 #define ISTATE_OFFSET_ALIGNMENT 140
    89 
    90 #define ISTATE_SOFT_SIZE        144
    91 
    9253/*
    9354 * The fake ABI prologue is never executed and may not be part of the
     
    9758 */
    9859.macro FAKE_ABI_PROLOGUE
    99         sub $sp, ISTATE_SOFT_SIZE
     60        sub $sp, ISTATE_SIZE
    10061        sw $ra, ISTATE_OFFSET_EPC($sp)
    10162.endm
     
    265226        KERNEL_STACK_TO_K0
    266227       
    267         sub $k0, ISTATE_SOFT_SIZE
     228        sub $k0, ISTATE_SIZE
    268229        sw $sp, ISTATE_OFFSET_SP($k0)
    269230        move $sp, $k0
     
    355316tlb_refill_handler:
    356317        KERNEL_STACK_TO_K0
    357         sub $k0, ISTATE_SOFT_SIZE
     318        sub $k0, ISTATE_SIZE
    358319        REGISTERS_STORE_AND_EXC_RESET $k0
    359320        sw $sp, ISTATE_OFFSET_SP($k0)
     
    371332cache_error_handler:
    372333        KERNEL_STACK_TO_K0
    373         sub $k0, ISTATE_SOFT_SIZE
     334        sub $k0, ISTATE_SIZE
    374335        REGISTERS_STORE_AND_EXC_RESET $k0
    375336        sw $sp, ISTATE_OFFSET_SP($k0)
Note: See TracChangeset for help on using the changeset viewer.