Changes in uspace/lib/c/arch/abs32le/include/fibril.h [619e2a6b:63f8966] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/abs32le/include/fibril.h
r619e2a6b r63f8966 44 44 (ctx)->pc = (uintptr_t) (_pc); \ 45 45 (ctx)->sp = ((uintptr_t) (stack)) + (size) - SP_DELTA; \ 46 (ctx)->fp = 0; \47 46 (ctx)->tls = ((uintptr_t) (ptls)) + sizeof(tcb_t); \ 48 47 } while (0) … … 54 53 typedef struct { 55 54 uintptr_t sp; 56 uintptr_t fp;57 55 uintptr_t pc; 58 56 uintptr_t tls; 59 57 } context_t; 60 61 static inline uintptr_t context_get_fp(context_t *ctx)62 {63 /* On real hardware, this function returns the frame pointer. */64 return ctx->fp;65 }66 58 67 59 #endif
Note:
See TracChangeset
for help on using the changeset viewer.