StuBS
context.cc File Reference
#include "machine/context.h"
#include "debug/assert.h"
#include "debug/kernelpanic.h"
Include dependency graph for context.cc:

Functions

void panic ()
 Panic function.
 
void * prepareContext (void *tos, void(*kickoff)(void *), void *param1)
 Prepares a context for its first activation.
 

Function Documentation

◆ panic()

void panic ( )

Panic function.

If the kickoff function (assigned in prepareContext) returns, this parameterless function will be called – and stop the execution. For this to happen, a pointer to this function must be placed on the stack.