Changeset 74813216 in mainline for arch/sparc64/include/context.h


Ignore:
Timestamp:
2005-12-01T13:36:01Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
22e10ab
Parents:
ee69c49
Message:

sparc64 work.
No need to save/restore local registers.

File:
1 edited

Legend:

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

    ree69c49 r74813216  
    3030#define __sparc64_CONTEXT_H__
    3131
     32#ifndef __sparc64_STACK_H__
    3233#include <arch/stack.h>
     34#endif
    3335
    3436#ifndef __sparc64_TYPES_H__
     
    4850#define context_set(c, _pc, stack, size)                                                                \
    4951        (c)->pc = ((__address) _pc) - 8;                                                                \
     52        (c)->fp = NULL;                                                                                 \
    5053        (c)->sp = ((__address) stack) + ALIGN((size), STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA)
    5154
    5255/*
    5356 * Only save registers that must be preserved across
    54  * function calls.
     57 * function calls and that are not saved in caller's
     58 * register window.
    5559 */
    5660struct context {
    57         __u64 l0;
    58         __u64 l1;
    59         __u64 l2;
    60         __u64 l3;
    61         __u64 l4;
    62         __u64 l5;
    63         __u64 l6;
    64         __u64 l7;
    6561        __u64 i1;
    6662        __u64 i2;
     
    6864        __u64 i4;
    6965        __u64 i5;
    70         __address sp;           /* %i6 */
     66        __address fp;           /* %i6 */
    7167        __address pc;           /* %i7 */
     68        __address sp;
    7269        ipl_t ipl;
    7370};
Note: See TracChangeset for help on using the changeset viewer.