Subversion Repositories HelenOS

Rev

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

Rev 2568 Rev 2586
Line 35... Line 35...
35
#ifndef LIBC_FIBRIL_H_
35
#ifndef LIBC_FIBRIL_H_
36
#define LIBC_FIBRIL_H_
36
#define LIBC_FIBRIL_H_
37
 
37
 
38
#include <libarch/fibril.h>
38
#include <libarch/fibril.h>
39
#include <libadt/list.h>
39
#include <libadt/list.h>
40
#include <libarch/thread.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;     \