1 #ifndef SPARC64_CONTEXT_H
2 #define SPARC64_CONTEXT_H
4 #define STACK_BIAS 2047
7 /* General registers */
13 #define SP_LOC(ctx) (&(ctx)->regs[REG_SP])
15 /* Optional stack contents */
20 /* Create a new context in the given stack */
22 init_context(uint8_t *stack
, uint64_t stack_size
, int num_param
);
25 struct context
*switch_to(struct context
*);
27 /* Holds physical address of boot context */
28 extern unsigned long __boot_ctx
;
30 /* This can always be safely used to refer to the boot context */
31 #define boot_ctx ((struct context *) phys_to_virt(__boot_ctx))
33 #endif /* SPARC64_CONTEXT_H */