U0 Auto() { I64 i, ata_port = -1; CAHCIPort *port; U8 *in_str; for (i = 0; i < AHCI_MAX_PORTS; i++) { if (PCIBt(&blkdev.ahci_hba->ports_implemented, i)) { port = &blkdev.ahci_hba->ports[i]; if (port->signature == AHCI_PxSIG_ATA) { ata_port = i; break; } } } WinMax; BootMHDIns('C'); Copy("C:/Tmp/OSBuild/Kernel/KStart16.ZC", "C:/Kernel/"); Copy("C:/Tmp/OSBuild/Kernel/KernelA.HH", "C:/Kernel/"); in_str = MStrPrint("CC\n%d\n\n\n\n", ata_port); Sleep(700); In(in_str); BootHDIns; OnceFlush; Free(in_str); in_str = MStrPrint( "OnceFlush;" "Once(\"#include \\\"/Misc/Auto/AutoFullDistro2\\\";;Auto;\");" "Reboot;"); OnceDrive('C', in_str); Reboot; } Auto;