Subversion Repositories HelenOS

Rev

Rev 2586 | Rev 4526 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2586 Rev 4482
Line 38... Line 38...
38
#include <libarch/fibril.h>
38
#include <libarch/fibril.h>
39
#include <libadt/list.h>
39
#include <libadt/list.h>
40
#include <libarch/tls.h>
40
#include <libarch/tls.h>
41
 
41
 
42
#ifndef context_set
42
#ifndef context_set
43
#define context_set(c, _pc, stack, size, ptls)          \
43
#define context_set(c, _pc, stack, size, ptls) \
44
    (c)->pc = (sysarg_t) (_pc);             \
44
    (c)->pc = (sysarg_t) (_pc); \
45
    (c)->sp = ((sysarg_t) (stack)) + (size) - SP_DELTA;     \
45
    (c)->sp = ((sysarg_t) (stack)) + (size) - SP_DELTA; \
46
        (c)->tls = (sysarg_t) (ptls);
46
    (c)->tls = (sysarg_t) (ptls);
47
#endif /* context_set */
47
#endif /* context_set */
48
 
48
 
49
#define FIBRIL_SERIALIZED   1
49
#define FIBRIL_SERIALIZED  1
50
 
50
 
51
typedef enum {
51
typedef enum {
52
    FIBRIL_PREEMPT,
52
    FIBRIL_PREEMPT,
53
    FIBRIL_TO_MANAGER,
53
    FIBRIL_TO_MANAGER,
54
    FIBRIL_FROM_MANAGER,
54
    FIBRIL_FROM_MANAGER,