From a17d3b76532a4dcf8d0c20eca1f273d40b7cabe5 Mon Sep 17 00:00:00 2001 From: "Rustem Gimadutdinov (rgimad)" Date: Mon, 30 Aug 2021 10:59:18 +0000 Subject: [PATCH] kolibri-ahci: - fix bug with identical names for all disks git-svn-id: svn://kolibrios.org@9168 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/kolibri-ahci/blkdev/ahci.inc | 1 + kernel/branches/kolibri-ahci/run_img_ahci.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/branches/kolibri-ahci/blkdev/ahci.inc b/kernel/branches/kolibri-ahci/blkdev/ahci.inc index dbaf927838..9cc99eadbb 100644 --- a/kernel/branches/kolibri-ahci/blkdev/ahci.inc +++ b/kernel/branches/kolibri-ahci/blkdev/ahci.inc @@ -574,6 +574,7 @@ ahci_init: push ecx mov eax, [hd_counter] + inc [hd_counter] xor edx, edx mov ecx, 10 div ecx ; eax = hd_counter / 10, edx = hd_counter % 10 diff --git a/kernel/branches/kolibri-ahci/run_img_ahci.sh b/kernel/branches/kolibri-ahci/run_img_ahci.sh index db6644b28b..7ad6cd88bf 100755 --- a/kernel/branches/kolibri-ahci/run_img_ahci.sh +++ b/kernel/branches/kolibri-ahci/run_img_ahci.sh @@ -1 +1 @@ -qemu-system-i386 -m 256 -M q35 -fda kolibri_test2.img -boot a -vga vmware -net nic,model=rtl8139 -net user -soundhw ac97 -usb -usbdevice tablet -enable-kvm -drive file=fat:rw:. \ No newline at end of file +qemu-system-i386 -m 256 -M q35 -fda kolibri_test2.img -boot a -vga vmware -net nic,model=rtl8139 -net user -soundhw ac97 -usb -usbdevice tablet -enable-kvm -drive file=fat:rw:. -drive file=fat:rw:two_hard \ No newline at end of file