Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 6a8ddd37 in mainline


Ignore:
Timestamp:
2014-09-03T19:28:05Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
fb41d44
Parents:
95b2276
Message:

Autogenerate arm32 kernel context_t and its offsets.

Location:
kernel/arch/arm32
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/Makefile.inc

    r95b2276 r6a8ddd37  
    9797
    9898ARCH_AUTOGENS_AG = \
    99         arch/$(KARCH)/include/arch/istate_struct.ag
     99        arch/$(KARCH)/include/arch/istate_struct.ag \
     100        arch/$(KARCH)/include/arch/context_struct.ag
    100101
  • kernel/arch/arm32/include/arch/context.h

    r95b2276 r6a8ddd37  
    3939#include <align.h>
    4040#include <arch/stack.h>
     41#include <arch/context_struct.h>
    4142
    4243/* Put one item onto the stack to support get_stack_base() and align it up. */
     
    5253#ifndef __ASM__
    5354
    54 #include <typedefs.h>
    55 
    56 /** Thread context containing registers that must be preserved across function
    57  * calls.
    58  */
    59 typedef struct {
    60         uint32_t cpu_mode;
    61         uintptr_t sp;
    62         uintptr_t pc;
    63        
    64         uint32_t r4;
    65         uint32_t r5;
    66         uint32_t r6;
    67         uint32_t r7;
    68         uint32_t r8;
    69         uint32_t r9;
    70         uint32_t r10;
    71         uint32_t fp;    /* r11 */
    72        
    73         ipl_t ipl;
    74 } context_t;
    75 
    76 
    7755#endif /* __ASM__ */
    7856
Note: See TracChangeset for help on using the changeset viewer.