Changeset 37c8975 in mainline for arch/ppc32/include/context.h


Ignore:
Timestamp:
2006-02-17T11:40:46Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0e4dd7b
Parents:
ba52899
Message:

fix stupid bug in ppc32 context_save_arch
save only non-volatile registers in context

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc32/include/context.h

    rba52899 r37c8975  
    3030#define __ppc32_CONTEXT_H__
    3131
    32 #include <arch/types.h>
     32#ifndef __ppc32_TYPES_H__
     33# include <arch/types.h>
     34#endif
    3335
    34 #define SP_DELTA        8
     36#define SP_DELTA        4
    3537
    3638struct context {
    37         __u32 r0;
    3839        __address sp;
     40        __address pc;
     41       
    3942        __u32 r2;
    40         __u32 r3;
    41         __u32 r4;
    42         __u32 r5;
    43         __u32 r6;
    44         __u32 r7;
    45         __u32 r8;
    46         __u32 r9;
    47         __u32 r10;
    48         __u32 r11;
    49         __u32 r12;
    5043        __u32 r13;
    5144        __u32 r14;
     
    6760        __u32 r30;
    6861        __u32 r31;
    69         __address pc;
     62       
     63        __u32 cr;
     64       
    7065        ipl_t ipl;
    7166} __attribute__ ((packed));
Note: See TracChangeset for help on using the changeset viewer.