Hi Mike,

On 10/11/25 5:42 AM, Michael Kelly wrote:
> 1) If I run my modified acpi server against an unmodified gnumach
> kernel, there doesn't seem to be a way of detecting that your new
> feature is absent. The old 'get_stat' for "irq" was nulldev_getstat()
> which returns D_SUCCESS and an unmodified 'count'. I would have thought
> that function would return either a failure result or at least a count
> of zero? In any case, it doesn't help detect an old kernel. The actual
> value returned for pic_mode in these circumstances was consistently 46
> but I'm assuming that is a meaningless or uninitialised value.

Set count = 0 and then check that count was set to 1,
if it remains 0 then the feature is not available.

> 2) It would be handy if the ACPI_PICMODE_xxxx defines were available on
> the userland side but since the values are copied from standards it
> hardly matters by duplicating them on the client side anyway.
>
Yes, I'm not sure how to pass that in the system headers.

Damien



Reply via email to