From ce01b558dc730bb96da0dac904ba98b6d0c4d282 Mon Sep 17 00:00:00 2001 From: weissms Date: Mon, 8 Aug 2011 08:41:44 +0000 Subject: [PATCH] Init control word to zero, cdrom-handler reads this and will crash if it is non-zero by bad luck. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@40589 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/devs/ata/ata_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rom/devs/ata/ata_init.c b/rom/devs/ata/ata_init.c index 609f33af30..9174ed1370 100644 --- a/rom/devs/ata/ata_init.c +++ b/rom/devs/ata/ata_init.c @@ -119,6 +119,7 @@ BOOL ata_RegisterVolume(ULONG StartCyl, ULONG EndCyl, struct ata_Unit *unit) pp[DE_MASK + 4] = 0x7FFFFFFE; pp[DE_BOOTPRI + 4] = ((unit->au_DevType == DG_DIRECT_ACCESS) ? 0 : 10); pp[DE_DOSTYPE + 4] = ((unit->au_DevType == DG_DIRECT_ACCESS) ? IdDOS : IdCDVD); + pp[DE_CONTROL + 4] = 0; pp[DE_BOOTBLOCKS + 4] = 2; devnode = MakeDosNode(pp); -- 2.11.4.GIT