os - Operating System Kernel           Back to the Source Index

23/5/2010 Here are three of the source units which make up the ChaOS kernel, along with the OS project makefile os.link.

Many more source files can be viewed in the ChaOS debugger after booting a ChaOS demo. Details are on the ChaOS Downloads page.

File startup.html contains the entry point for ChaOS from the bootstrap, GDT and LDT tables and descriptors, and minimal startup processor setups for a 32-bit ring 0 flat memory model. Interrupts are through trap gates, so the the processor task register is not initialised. On 64-bit processors TR needs a 64-bit TSS, if interrupts use the TSS switches. Calls to osmemory() and osmode() prepare for the call to osmain() in main.html which in turn calls the device setups initDEV( ), and initPCI( ), before handing control to cli( ) (the ChaOS command-line interpreter or shell).

There are currently 78 .html files in the operating system kernel, plus a few dozen header files.

startup.html

main.html

accdis.html

os.link