Class Kernel
Provides a base kernel class for a Cosmos-based system
Inheritance
Inherited Members
Namespace: Cosmos.System
Assembly: Cosmos.System2.dll
Syntax
public abstract class Kernel
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 |
OnBoot()
This Method controls the Driver initialisation process and is intended for Advanced users developing their drivers and takes 4 additional booleans.
- Mousewheel, if you experience your mouse cursors being stuck in the lower left corner set this to "false", default: true
- PS2 Driver initialisation, true/false , default: true
- Network Driver initialisation, true/false, default: true
- IDE initialisation, true/false, default: true If you need anything else to be initialised really early on, place it here.
Declaration
protected virtual void OnBoot()
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. 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()
Exceptions
Type | Condition |
---|---|
System.IO.IOException | Thrown on IO error. |
Stop()
Shut down the system and power off
Declaration
public void Stop()