Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1124 → Rev 1125

/uspace/trunk/libc/include/psthread.h
33,9 → 33,9
#include <libadt/list.h>
 
#ifndef context_set
#define context_set(c, _pc, stack, size, ptls) \
(c)->pc = (sysarg_t) (_pc); \
(c)->sp = ((sysarg_t) (stack)) + (size) - SP_DELTA; \
#define context_set(c, _pc, stack, size, ptls) \
(c)->pc = (sysarg_t) (_pc); \
(c)->sp = ((sysarg_t) (stack)) + (size) - SP_DELTA; \
(c)->tls = (sysarg_t) (ptls);
#endif /* context_set */
 
42,7 → 42,7
typedef sysarg_t pstid_t;
 
struct psthread_data {
struct psthread_data *self; /* IA32,AMD64 needs to get self address */
struct psthread_data *self; /* ia32, amd64 needs to get self address */
 
link_t list;
context_t ctx;