[haiku-commits] r38128 - haiku/trunk/src/add-ons/kernel/generic/ata_adapter

Author: andreasf
Date: 2010-08-16 00:38:41 +0200 (Mon, 16 Aug 2010)
New Revision: 38128
Changeset: http://dev.haiku-os.org/changeset/38128

Modified:
   haiku/trunk/src/add-ons/kernel/generic/ata_adapter/ata_adapter.c
Log:
Generic: Type fixes for atomic op

Cast uint32* arguments for atomic_or() to int32*.

Resolves warnings treated as errors for Big Endian targets.


Modified: haiku/trunk/src/add-ons/kernel/generic/ata_adapter/ata_adapter.c
===================================================================
--- haiku/trunk/src/add-ons/kernel/generic/ata_adapter/ata_adapter.c    
2010-08-15 22:32:58 UTC (rev 38127)
+++ haiku/trunk/src/add-ons/kernel/generic/ata_adapter/ata_adapter.c    
2010-08-15 22:38:41 UTC (rev 38128)
@@ -473,7 +473,7 @@
 
        if (channel != NULL)
                // disable access instantly
-               atomic_or(&channel->lost, 1);
+               atomic_or((int32*)&channel->lost, 1);
 }
 
 
@@ -684,7 +684,7 @@
 
        if (controller != NULL) {
                // disable access instantly; unit_device takes care of 
unregistering ioports
-               atomic_or(&controller->lost, 1);
+               atomic_or((int32*)&controller->lost, 1);
        }
 }
 


Other related posts:

  • » [haiku-commits] r38128 - haiku/trunk/src/add-ons/kernel/generic/ata_adapter - andreas . faerber