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

Changeset 9b3f77c in mainline


Ignore:
Timestamp:
2014-08-28T20:48:21Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
101e3050
Parents:
da5ba3a
Message:

Autogenerate arm32 istate_t and its offsets.

Files:
2 added
2 edited

Legend:

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

    rda5ba3a r9b3f77c  
    9696        ARCH_SOURCES += genarch/src/drivers/pl050/pl050.c
    9797endif
     98
     99ARCH_AUTOGENS_AG = \
     100        arch/$(KARCH)/include/arch/istate_struct.ag
     101
  • kernel/arch/arm32/include/arch/istate.h

    rda5ba3a r9b3f77c  
    3939#ifdef KERNEL
    4040
     41#include <arch/istate_struct.h>
    4142#include <arch/regutils.h>
    4243
    4344#else /* KERNEL */
    4445
     46#include <libarch/istate_struct.h>
    4547#include <libarch/regutils.h>
    4648
    4749#endif /* KERNEL */
    48 
    49 /** Struct representing CPU state saved when an exception occurs. */
    50 typedef struct istate {
    51         uint32_t dummy;
    52         uint32_t spsr;
    53         uint32_t sp;
    54         uint32_t lr;
    55        
    56         uint32_t r0;
    57         uint32_t r1;
    58         uint32_t r2;
    59         uint32_t r3;
    60         uint32_t r4;
    61         uint32_t r5;
    62         uint32_t r6;
    63         uint32_t r7;
    64         uint32_t r8;
    65         uint32_t r9;
    66         uint32_t r10;
    67         uint32_t fp;
    68         uint32_t r12;
    69        
    70         uint32_t pc;
    71 } istate_t;
    7250
    7351/** Set Program Counter member of given istate structure.
Note: See TracChangeset for help on using the changeset viewer.