Rev 2479 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2479 | Rev 2482 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef LIBC_ia64_PSTHREAD_H_ |
35 | #ifndef LIBC_ia64_FIBRIL_H_ |
36 | #define LIBC_ia64_PSTHREAD_H_ |
36 | #define LIBC_ia64_FIBRIL_H_ |
37 | 37 | ||
38 | #include <types.h> |
38 | #include <types.h> |
39 | #include <align.h> |
39 | #include <align.h> |
40 | #include <libarch/stack.h> |
40 | #include <libarch/stack.h> |
41 | #include <libarch/types.h> |
41 | #include <libarch/types.h> |
42 | 42 | ||
43 | /* |
43 | /* |
44 | * context_save() and context_restore() are both leaf procedures. |
44 | * context_save() and context_restore() are both leaf procedures. |
45 | * No need to allocate scratch area. |
45 | * No need to allocate scratch area. |
46 | */ |
46 | */ |
47 | #define SP_DELTA (0+ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT)) |
47 | #define SP_DELTA (0 + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT)) |
48 | 48 | ||
49 | #define PFM_MASK (~0x3fffffffff) |
49 | #define PFM_MASK (~0x3fffffffff) |
50 | 50 | ||
51 | #define PSTHREAD_INITIAL_STACK_PAGES_NO 2 |
51 | #define PSTHREAD_INITIAL_STACK_PAGES_NO 2 |
52 | /* Stack is divided into two equal parts (for memory stack and register stack). */ |
52 | /* Stack is divided into two equal parts (for memory stack and register stack). */ |