Class Kernel
Provides a base kernel class for a Cosmos-based system
Inheritance
System.Object
Kernel
Namespace: Cosmos.System
Assembly: Cosmos.System2.dll
Syntax
public abstract class Kernel : object
Constructors
| Improve this Doc View SourceKernel()
Kernal object constructor.
Declaration
public Kernel()
Fields
| Improve this Doc View SourceClearScreen
Clear screen.
Declaration
public bool ClearScreen
Field Value
Type | Description |
---|---|
System.Boolean |
mDebugger
User ring debugger instance, with the tag "Kernel".
Declaration
public readonly Debugger mDebugger
Field Value
Type | Description |
---|---|
Debugger |
mStarted
Kernel started.
Declaration
protected bool mStarted
Field Value
Type | Description |
---|---|
System.Boolean |
mStopped
Kernel stopped.
Declaration
protected bool mStopped
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
| Improve this Doc View SourceInterruptsEnabled
Get interrupts status.
Declaration
public static bool InterruptsEnabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceAfterRun()
After the Run() method is exited (?)
Declaration
protected virtual void AfterRun()
BeforeRun()
Pre-run events
Declaration
protected virtual void BeforeRun()
GetKeyboardScanMap()
Get keyboard key layout.
Declaration
protected ScanMapBase GetKeyboardScanMap()
Returns
Type | Description |
---|---|
ScanMapBase | Keyboard key layout. |
GetTextScreen()
Get text screen device.
Declaration
protected virtual TextScreenBase GetTextScreen()
Returns
Type | Description |
---|---|
TextScreenBase | null |
PrintDebug(String)
Print message to the debbuger at system ring with "Global"-tag.
Declaration
public static void PrintDebug(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A message to print. |
Restart()
Shutdown and restart. Not implemented.
Declaration
public void Restart()
Run()
Main kernel loop
Declaration
protected abstract void Run()
SetKeyboardScanMap(ScanMapBase)
Set keyboard key layout.
Declaration
protected void SetKeyboardScanMap(ScanMapBase ScanMap)
Parameters
Type | Name | Description |
---|---|---|
ScanMapBase | ScanMap | Keyboard key layout. |
Start()
Start the system up using the properties for configuration.
Declaration
public virtual void Start()
Stop()
Shut down the system and power off
Declaration
public void Stop()