[haiku-commits] haiku: hrev46355 - src/add-ons/kernel/bus_managers/acpi headers/os/drivers

  • From: korli@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 11 Nov 2013 19:09:23 +0100 (CET)

hrev46355 adds 1 changeset to branch 'master'
old head: e94bffa072e285d4f77f39d6db510899fb6beda9
new head: 847ab5a73455d77d0510dcaccf46d844877926d6
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=847ab5a+%5Ee94bffa

----------------------------------------------------------------------------

847ab5a: acpi: EcGpeHandler() should return ACPI_REENABLE_GPE.
  
  * this clears the GPE if level triggered and possibly enables the GPE.
  See AcpiEvFinishGpe() and AcpiEvGpeDispatch().

                                   [ Jérôme Duval <jerome.duval@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev46355
Commit:      847ab5a73455d77d0510dcaccf46d844877926d6
URL:         http://cgit.haiku-os.org/haiku/commit/?id=847ab5a
Author:      Jérôme Duval <jerome.duval@xxxxxxxxx>
Date:        Mon Nov 11 17:59:38 2013 UTC

----------------------------------------------------------------------------

2 files changed, 4 insertions(+), 1 deletion(-)
headers/os/drivers/ACPI.h                                   | 3 +++
src/add-ons/kernel/bus_managers/acpi/EmbeddedController.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/headers/os/drivers/ACPI.h b/headers/os/drivers/ACPI.h
index 874587c..32bb5a4 100644
--- a/headers/os/drivers/ACPI.h
+++ b/headers/os/drivers/ACPI.h
@@ -151,6 +151,9 @@ typedef uint32 acpi_status;
 
 typedef struct acpi_resource acpi_resource;
 
+#define ACPI_REENABLE_GPE      0x80
+
+
 #endif // __ACTYPES_H__
 
 
diff --git a/src/add-ons/kernel/bus_managers/acpi/EmbeddedController.cpp 
b/src/add-ons/kernel/bus_managers/acpi/EmbeddedController.cpp
index 8e1ea4a..481e6b6 100644
--- a/src/add-ons/kernel/bus_managers/acpi/EmbeddedController.cpp
+++ b/src/add-ons/kernel/bus_managers/acpi/EmbeddedController.cpp
@@ -604,7 +604,7 @@ EcGpeHandler(acpi_handle gpeDevice, uint32 gpeNumber, void* 
context)
                else
                        dprintf("EcGpeHandler: queuing GPE query handler 
failed\n");
        }
-       return B_INVOKE_SCHEDULER;
+       return ACPI_REENABLE_GPE;
 }
 
 


Other related posts:

  • » [haiku-commits] haiku: hrev46355 - src/add-ons/kernel/bus_managers/acpi headers/os/drivers - korli