示例#1
0
        public Kernel(Bios bios)
        {
            Debug.Assert(bios != null);
            Bios     = bios;
            Emulator = Bios.Emulator;

            Debug.Assert(Emulator.Cpu != null);
            Cpu          = Emulator.Cpu;
            CpuCore      = Cpu.Cores[0];
            Memory       = Cpu.Memory;
            MemorySystem = Memory.MemorySystem;

            Devices = new List <KDevice>();

            UserModules = new List <KModule>(10);

            Threads            = new List <KThread>(128);
            SchedulableThreads = new FastLinkedList <KThread>();

            Handles  = new Dictionary <uint, KHandle>();
            _lastUid = 100;

            SpeedLocked = true;
        }
示例#2
0
 public Loader( Bios bios )
 {
     Debug.Assert( bios != null );
     _bios = bios;
 }
示例#3
0
 public BiosDebugHook(Bios bios)
 {
     this.Bios = bios;
 }
示例#4
0
 public Loader(Bios bios)
 {
     Debug.Assert(bios != null);
     _bios = bios;
 }