Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

main.cc File Reference

#include "copyright.h"
#include "main.h"

Go to the source code of this file.

Defines

#define MAIN

Functions

void Cleanup (int x)
int main (int argc, char **argv)

Variables

KernelType* kernel
 global variables. More...

Debugdebug


Define Documentation

#define MAIN
 

Value:

Definition at line 17 of file main.cc.


Function Documentation

void Cleanup ( int x ) [static]
 

Cleanup Delete kernel data structures; called when user hits "ctl-C".

Definition at line 34 of file main.cc.

int main ( int argc,
char ** argv )
 

main Bootstrap the operating system kernel.

Initialize kernel data structures Call selftest procedure Run the kernel

"argc" is the number of command line arguments (including the name of the command) -- ex: "nachos -d +" -> argc = 3 "argv" is an array of strings, one for each command line argument ex: "nachos -d +" -> argv = {"nachos", "-d", "+"}

Definition at line 56 of file main.cc.


Variable Documentation

Debug* debug
 

Definition at line 25 of file main.cc.

KernelType * kernel
 

global variables.

Definition at line 24 of file main.cc.


Generated at Wed Jul 4 11:32:22 2001 for Nachos by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001