5
#define SP_LOC(ctx) (&(ctx)->sp)
7
unsigned long return_addr;
10
/* General registers */
11
unsigned long regs[34];
17
/* Optional stack contents */
18
unsigned long param[0];
21
/* Create a new context in the given stack */
23
init_context(uint8_t *stack, uint32_t stack_size, int num_param);
26
struct context *switch_to(struct context *);
28
/* Holds physical address of boot context */
29
extern unsigned long __boot_ctx;
31
/* This can always be safely used to refer to the boot context */
32
#define boot_ctx ((struct context *) phys_to_virt(__boot_ctx))
34
#endif /* PPC_CONTEXT_H */