Changeset d5d2a3f in mainline for include/context.h


Ignore:
Timestamp:
2005-05-25T12:29:18Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2998046
Parents:
c23fd6b1
Message:

Add context_set() macro to support extended behaviour for architectures with more than one stack (e.g. IA-64).
Now there is one generic context_set() defined in include/context.h and one IA-64 specific defined in arch/ia64/include/context.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/context.h

    rc23fd6b1 rd5d2a3f  
    3030#define __CONTEXT_H__
    3131
     32#include <arch/types.h>
    3233#include <typedefs.h>
    33 #include "fpu_context.h"
    3434
     35#ifndef context_set
     36#define context_set(c, _pc, stack, size)        \
     37        (c)->pc = (__address) (_pc);            \
     38        (c)->sp = ((__address) (stack)) + (size) - SP_DELTA;
     39#endif /* context_set */
    3540
    3641extern int context_save(context_t *c);
Note: See TracChangeset for help on using the changeset viewer.