Пример #1
0
        /// <summary>
        /// Gets the boot stage factory.
        /// </summary>
        /// <param name="bootFormat">The boot format.</param>
        /// <returns></returns>
        /// <exception cref="Mosa.Compiler.Common.NotImplementCompilerException"></exception>
        /// <exception cref="NotImplementCompilerException"></exception>
        private static Func <ICompilerStage> GetBootStageFactory(BootFormat bootFormat)
        {
            switch (bootFormat)
            {
            case BootFormat.Multiboot_0_7: return(delegate { return new Mosa.Platform.x86.Stages.Multiboot0695Stage(); });

            default: return(null);
            }
        }
Пример #2
0
 /// <summary>
 /// Gets the boot stage factory.
 /// </summary>
 /// <param name="bootFormat">The boot format.</param>
 /// <returns></returns>
 /// <exception cref="Mosa.Compiler.Common.NotImplementCompilerException"></exception>
 /// <exception cref="NotImplementCompilerException"></exception>
 private static Func<ICompilerStage> GetBootStageFactory(BootFormat bootFormat)
 {
     switch (bootFormat)
     {
         case BootFormat.Multiboot_0_7: return delegate { return new Mosa.Platform.x86.Stages.Multiboot0695Stage(); };
         default: return null;
     }
 }