[haiku-development] Re: ACPI and IRQ descriptors

  • From: Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 28 Jun 2010 22:44:04 +0200

2010/6/28 Clemens Zeidler <clemens.zeidler@xxxxxxxxxxxxxx>:
> I think the source must be transformed into a acpi_handle at
> http://haiku.it.su.se:8180/source/xref/src/system/kernel/arch/x86/irq_routing_table.cpp#read_irq_routing_table
> line 121
> will investigate it, there are also some possible leaks in
> read_irq_descriptor...

Yes, I see what you mean source looks ok, but it is used as a acpi_handle when
calling read_current_irq, which will fail.

Probably would be cleaner to use AcpiCurrentResources and
AcpiPossibleResources instead of calling _CRS and _PRS manually.

Needs a bit of work.

/Fredrik Holmqvist, TQH

Other related posts: