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'); CopyTree("C:/Tmp/OSBuild/Kernel/", "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/AutoFullDistro3\\\";;Auto;\");" "Reboot;"); OnceDrive('C', in_str); Reboot; } Auto;