Class Boot
java.lang.Object
|
+--Boot
- public class Boot
- extends java.lang.Object
A bootstrap program for the MiniKernel.
This program creates a Disk, and launches the kernel by calling
the POWER_ON interrupt. When the Kernel returns from the interrupt,
we assume it wants to shut down.
The program expects four or more command-line arguments:
- a numeric parameter to pass to the Kernel's POWER_ON interrupt.
The kernel stores this number in its bufferSize field.
- the name of a class that implements the disk,
- the size of the disk, in blocks,
- the name of shell program, and
any arguments to the shell program.
An example invocation is
java Boot Disk 100 Shell 10
- See Also:
Kernel
,
Disk
Constructor Summary |
Boot()
|
Method Summary |
static void |
main(java.lang.String[] args)
The main program. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Boot
public Boot()
main
public static void main(java.lang.String[] args)
- The main program.
- Parameters:
args
- the command-line arguments (should be two integers).