Changeset 4b2c872d in mainline for arch/ia64/include/context.h


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.

File:
1 edited

Legend:

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

    r22f7769 r4b2c872d  
    3131
    3232#include <arch/types.h>
     33#include <typedefs.h>
    3334#include <align.h>
    3435
     
    5152        (c)->pc = (__address) _pc;                                                      \
    5253        (c)->bsp = ((__address) stack) + ALIGN(sizeof(the_t), STACK_ALIGNMENT);         \
    53         (c)->sp = ((__address) stack) + ALIGN((size) - SP_DELTA, STACK_ALIGNMENT);
     54        (c)->sp = ((__address) stack) + ALIGN((size), STACK_ALIGNMENT) - SP_DELTA;
    5455
    5556/*
     
    6667        __u64 ar_unat_callee;
    6768        __u64 ar_rsc;
    68         __u64 bsp;      /* ar_bsp */
     69        __address bsp;          /* ar_bsp */
    6970        __u64 ar_rnat;
    7071        __u64 ar_lc;
     
    7879        __u64 r6;
    7980        __u64 r7;
    80         __u64 sp;               /* r12 */
     81        __address sp;           /* r12 */
    8182        __u64 r13;
    8283       
     
    8485         * Branch registers
    8586         */
    86         __u64 pc;               /* b0 */
     87        __address pc;           /* b0 */
    8788        __u64 b1;
    8889        __u64 b2;
Note: See TracChangeset for help on using the changeset viewer.