AMC-OS Loader

From AMC-OS Developers
Revision as of 18:36, 12 August 2012 by Kindman (talk | contribs) (Creation of article)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

AMC-OS Loader gives us much more flexibility in boot process, as we no longer have the limitation of 512 bytes of code. However, the CPU is still running in real mode, causing some difficulties to load more than 640KB (not enough available memory)

Process

AMC-OS Loader follow this procedure :

  • System check : Check that we have a 386+ running in real-mode
  • Load and compare the disk FATs, converts them to FAT16 for simpler management (for FAT12 floppy disks)
  • Locate the MODULES directory containing all kernel files required for boot
  • Load all kernel files in memory using the contents of the AMCOS.MOD file
  • Precisely identify the CPU using either the CPUID instruction or a CPU reset, and calculates its running frequency
  • Identify the video graphics card, check VESA support to get best text resolution during kernel initialization
  • Prepare the CPU for protected mode (GDT and system descriptors)
  • Do a first switch to protected mode to decode kernel AMCX file and relocate it in memory
  • Do a second switch to protected mode to start kernel