Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2345 → Rev 2346

/branches/arm/uspace/libc/arch/arm32/include/psthread.h
38,6 → 38,8
 
#include <types.h>
#include <align.h>
#include "thread.h"
 
#define STACK_ITEM_SIZE 4
 
/** see <a href="http://www.arm.com/support/faqdev/14269.html">ABI</a> for details */
48,7 → 50,7
#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)) + sizeof(tcb_t);
(c)->tls = ((sysarg_t)(ptls)) + sizeof(tcb_t) + ARM_TP_OFFSET;
 
 
typedef struct {