Changeset 6b96ab44 in mainline for arch/ia64/include/context.h


Ignore:
Timestamp:
2005-05-17T22:43:57Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1eee8383
Parents:
7f1bfce
Message:

IA-64 work.
Add the rest of branch registers to context_t.
Add predicate registers to context_t.
Modify context_save()/context_restore() to save/restore branch registers and predicate registers.
Change SP_DELTA to 0 since both context_save() and context_restore() are leaf procedures and as such don't use the scratch area.
Change pri_t to be u64 instead of u32.

File:
1 edited

Legend:

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

    r7f1bfce r6b96ab44  
    3232#include <arch/types.h>
    3333
    34 #define SP_DELTA        16
     34/*
     35 * context_save() and context_restore() are both leaf procedures.
     36 * No need to allocate scratch area.
     37 */
     38#define SP_DELTA        0
    3539
    3640struct context {
     41        /*
     42         * General registers
     43         */
    3744        __u64 r1;
    3845        __u64 r2;
     
    6673        __u64 r30;
    6774        __u64 r31;
     75       
     76        /*
     77         * Branch registers
     78         */
    6879        __u64 pc;               /* b0 */
     80        __u64 b1;
     81        __u64 b2;
     82        __u64 b3;
     83        __u64 b4;
     84        __u64 b5;
     85        __u64 b6;
     86        __u64 b7;
     87
     88        /*
     89         * Predicate registers
     90         */
     91        __u64 pr;
     92       
    6993        pri_t pri;
    7094} __attribute__ ((packed));
Note: See TracChangeset for help on using the changeset viewer.