Changeset 33add3a8 in mainline for kernel/arch/mips32/include


Ignore:
Timestamp:
2014-09-03T21:37:33Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d5955a5
Parents:
4b334fd6
Message:

Autogenerate mips32 kernel context_t and its offsets.

Location:
kernel/arch/mips32/include/arch
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/arch/context.h

    r4b334fd6 r33add3a8  
    3838#include <align.h>
    3939#include <arch/stack.h>
     40#include <arch/context_struct.h>
     41#include <typedefs.h>
    4042
    4143/*
     
    4446#define SP_DELTA  (ABI_STACK_FRAME + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT))
    4547
    46 #ifndef __ASM__
    47 
    48 #include <typedefs.h>
    49 
    5048#define context_set(ctx, pc, stack, size) \
    5149    context_set_generic(ctx, pc, stack, size)
    52 
    53 /*
    54  * Only save registers that must be preserved across
    55  * function calls.
    56  */
    57 typedef struct {
    58         uintptr_t sp;
    59         uintptr_t pc;
    60        
    61         uint32_t s0;
    62         uint32_t s1;
    63         uint32_t s2;
    64         uint32_t s3;
    65         uint32_t s4;
    66         uint32_t s5;
    67         uint32_t s6;
    68         uint32_t s7;
    69         uint32_t s8;
    70         uint32_t gp;
    71 
    72         ipl_t ipl;
    73 } context_t;
    74 
    75 #endif /* __ASM__ */
    7650
    7751#endif
Note: See TracChangeset for help on using the changeset viewer.