Subversion Repositories HelenOS

Rev

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

Rev 2071 Rev 2082
Line 43... Line 43...
43
    void *pst_data;
43
    void *pst_data;
44
} tcb_t;
44
} tcb_t;
45
 
45
 
46
static inline void __tcb_set(tcb_t *tcb)
46
static inline void __tcb_set(tcb_t *tcb)
47
{
47
{
48
    __asm__ volatile ("mov %0, %%g7\n" : : "r" (tcb) : "g7");
48
    asm volatile ("mov %0, %%g7\n" : : "r" (tcb) : "g7");
49
}
49
}
50
 
50
 
51
static inline tcb_t * __tcb_get(void)
51
static inline tcb_t * __tcb_get(void)
52
{
52
{
53
    void *retval;
53
    void *retval;
54
 
54
 
55
    __asm__ volatile ("mov %%g7, %0\n" : "=r" (retval));
55
    asm volatile ("mov %%g7, %0\n" : "=r" (retval));
56
 
56
 
57
    return retval;
57
    return retval;
58
}
58
}
59
 
59
 
60
#endif
60
#endif