Changeset fa23560 in mainline for uspace/lib/libc/arch/ia64/include/thread.h
- Timestamp:
- 2007-10-30T22:54:11Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4d21cf8
- Parents:
- b2a0f6dd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/ia64/include/thread.h
rb2a0f6dd rfa23560 38 38 #define THREAD_INITIAL_STACK_PAGES_NO 2 39 39 40 /* This structure must be exactly 16 bytes long */41 typedef struct {42 void *dtv; /* unused in static linking*/43 void *fibril_data;44 } tcb_t;45 46 static inline void __tcb_set(tcb_t *tcb)47 {48 asm volatile ("mov r13 = %0\n" : : "r" (tcb) : "r13");49 }50 51 static inline tcb_t *__tcb_get(void)52 {53 void *retval;54 55 asm volatile ("mov %0 = r13\n" : "=r" (retval));56 57 return retval;58 }59 60 40 #endif 61 41
Note:
See TracChangeset
for help on using the changeset viewer.