Changeset 4b2c872d in mainline for arch/ppc32


Ignore:
Timestamp:
2005-10-18T09:33:02Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8005218
Parents:
22f7769
Message:

Create generic context_save() and context_restore().
These two functions are defined inline and only call context_save_arch() and context_restore_arch(), respectively.
The main purpose of this is to enable centralized commenting of these important and tricky functions.

Location:
arch/ppc32
Files:
2 edited

Legend:

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

    r22f7769 r4b2c872d  
    3636struct context {
    3737        __u32 r0;
    38         __u32 sp;
     38        __address sp;
    3939        __u32 r2;
    4040        __u32 r3;
     
    6767        __u32 r30;
    6868        __u32 r31;
    69         __u32 pc;
     69        __address pc;
    7070        ipl_t ipl;
    7171} __attribute__ ((packed));
  • arch/ppc32/src/context.S

    r22f7769 r4b2c872d  
    3131.text   
    3232
    33 .global context_save
    34 .global context_restore
     33.global context_save_arch
     34.global context_restore_arch
    3535
    36 context_save:
     36context_save_arch:
    3737        REGISTERS_STORE r3
    3838       
     
    4444        blr
    4545       
    46 context_restore:
     46context_restore_arch:
    4747        REGISTERS_LOAD r3
    4848       
Note: See TracChangeset for help on using the changeset viewer.