Author: tfaber
Date: Mon Oct 19 08:00:47 2015
New Revision: 69613
URL:
http://svn.reactos.org/svn/reactos?rev=69613&view=rev
Log:
[HAL]
- Don't probe for EISA DMA capability on non-EISA machines (i.e. currently never).
Patch by Andrey Kudravets.
CORE-9895 #resolve
Modified:
trunk/reactos/hal/halx86/generic/dma.c
Modified: trunk/reactos/hal/halx86/generic/dma.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/dma.c?r…
==============================================================================
--- trunk/reactos/hal/halx86/generic/dma.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/generic/dma.c [iso-8859-1] Mon Oct 19 08:00:47 2015
@@ -146,15 +146,18 @@
HalpDmaOperations.FreeMapRegisters = (PFREE_MAP_REGISTERS)IoFreeMapRegisters;
HalpDmaOperations.MapTransfer = (PMAP_TRANSFER)IoMapTransfer;
- /*
- * Check if Extended DMA is available. We're just going to do a random
- * read and write.
- */
- WRITE_PORT_UCHAR((PUCHAR)FIELD_OFFSET(EISA_CONTROL, DmaController2Pages.Channel2),
0x2A);
- if (READ_PORT_UCHAR((PUCHAR)FIELD_OFFSET(EISA_CONTROL, DmaController2Pages.Channel2))
== 0x2A)
- {
- DPRINT1("Machine supports EISA DMA. Bus type: %lu\n", HalpBusType);
- HalpEisaDma = TRUE;
+ if (HalpBusType == MACHINE_TYPE_EISA)
+ {
+ /*
+ * Check if Extended DMA is available. We're just going to do a random
+ * read and write.
+ */
+ WRITE_PORT_UCHAR((PUCHAR)FIELD_OFFSET(EISA_CONTROL,
DmaController2Pages.Channel2), 0x2A);
+ if (READ_PORT_UCHAR((PUCHAR)FIELD_OFFSET(EISA_CONTROL,
DmaController2Pages.Channel2)) == 0x2A)
+ {
+ DPRINT1("Machine supports EISA DMA. Bus type: %lu\n",
HalpBusType);
+ HalpEisaDma = TRUE;
+ }
}
/*