Changeset 04803bf in mainline for uspace/lib/c/arch/amd64/include/fibril.h
- Timestamp:
- 2011-03-21T22:00:17Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 143932e3
- Parents:
- b50b5af2 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 moved
-
uspace/lib/c/arch/amd64/include/fibril.h (moved) (moved from uspace/lib/libc/arch/amd64/include/fibril.h ) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/amd64/include/fibril.h
rb50b5af2 r04803bf 44 44 #define SP_DELTA 16 45 45 46 #define context_set(c, _pc, stack, size, ptls) \ 47 do { \ 48 (c)->pc = (sysarg_t) (_pc); \ 49 (c)->sp = ((sysarg_t) (stack)) + (size) - SP_DELTA; \ 50 (c)->tls = (sysarg_t) (ptls); \ 51 (c)->rbp = 0; \ 52 } while (0) 53 46 54 /* We include only registers that must be preserved 47 55 * during function call 48 56 */ 49 57 typedef struct { 50 uint64_t sp; 51 uint64_t pc; 52 53 uint64_t rbx; 54 uint64_t rbp; 58 uint64_t sp; 59 uint64_t pc; 55 60 56 uint64_t r12; 57 uint64_t r13; 58 uint64_t r14; 59 uint64_t r15; 61 uint64_t rbx; 62 uint64_t rbp; 60 63 61 uint64_t tls; 64 uint64_t r12; 65 uint64_t r13; 66 uint64_t r14; 67 uint64_t r15; 68 69 uint64_t tls; 62 70 } context_t; 71 72 static inline uintptr_t context_get_fp(context_t *ctx) 73 { 74 return ctx->rbp; 75 } 63 76 64 77 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
