Processor$context_init function <nucleus/kernel.h>

The Processor$context_init function initialises a Context structure to prepare it for executing from a new state.

Syntax

void
Processor$context_init(
	struct Context *ctx,
	void *ip,
	void *sp
);

Parameters

ctx

The address of a Context structure containing the saved processor state.

ip

The address to start executing from.

sp

The address of the top of the stack that should be used.