Changes in uspace/lib/c/arch/ia64/include/fibril.h [2902e1bb:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/ia64/include/fibril.h
r2902e1bb r9d58539 49 49 #define PFM_MASK (~0x3fffffffff) 50 50 51 #define PSTHREAD_INITIAL_STACK_PAGES_NO 2 52 51 53 /* Stack is divided into two equal parts (for memory stack and register stack). */ 52 #define FIBRIL_INITIAL_STACK_DIVISION 254 #define PSTHREAD_INITIAL_STACK_DIVISION 2 53 55 54 56 #define context_set(c, _pc, stack, size, tls) \ … … 56 58 (c)->pc = (uint64_t) _pc; \ 57 59 (c)->bsp = ((uint64_t) stack) + \ 58 size / FIBRIL_INITIAL_STACK_DIVISION; \60 size / PSTHREAD_INITIAL_STACK_DIVISION; \ 59 61 (c)->ar_pfs &= PFM_MASK; \ 60 62 (c)->sp = ((uint64_t) stack) + \ 61 ALIGN_UP((size / FIBRIL_INITIAL_STACK_DIVISION), STACK_ALIGNMENT) - \63 ALIGN_UP((size / PSTHREAD_INITIAL_STACK_DIVISION), STACK_ALIGNMENT) - \ 62 64 SP_DELTA; \ 63 65 (c)->tp = (uint64_t) tls; \
Note:
See TracChangeset
for help on using the changeset viewer.