
Go backward to Interrupt Handling
Go up to The Kernel
Go forward to The Input/Output Support System
System Initialization
Like any program run on the WC34020, your program will begin execution
with function "main". This function should be considered part of
your kernel code, rather than part of the user code running under its
support. This routine should initialize any kernel data structures.
In particular, as just mentioned, it should at least initialize the
"interruptBox" mail boxes. It should also set the DEVINTEN bits on
the system terminals. Once this is done, it should initialize two
processes. One should be the null process, which should execute a
simple loop and have the lowest possible priority. The other process
will begin its execution by invoking a function named "systeminit".
This function will contain code to create processes (by calling
createproc), and to initialize mail boxes and other data
structures required by the system your kernel is being used to
support. The actual details of the actions performed by "systeminit"
will depend on what sort of system you are using your kernel to support.