This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mach".
The branch, master has been updated
via 91d041c2cf9a3f289efde748a1c2a2d6b908b44a (commit)
from 872bde05c5acea800ab0562af7f099678b5368be (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 91d041c2cf9a3f289efde748a1c2a2d6b908b44a
Author: Damien Zammit <[email protected]>
Date: Tue Oct 14 07:54:34 2025 +0000
irq: Add irqgetstat device status IRQGETPICMODE flavor
This allows reading irq device status 0 for the mode of the interrupt
controller, pic or apic.
TESTED using:
```
\#include <stdio.h>
\#include <device/device.h>
\#include <hurd.h>
\#include <mach.h>
int main()
{
mach_port_t devices, irq;
int pic_mode, cnt = 1;
int err;
err = get_privileged_ports(NULL, &devices);
if (err)
return 1;
err = device_open(devices, D_READ, "irq", &irq);
if (err)
return 2;
err = device_get_status(irq, 0, &pic_mode, &cnt);
if (err)
return 3;
printf("pic_mode = %d\n", pic_mode);
return 0;
}
```
amd64-apic $ sudo ./test
pic_mode = 1
i386-pic $ sudo ./test
pic_mode = 0
i386-apic $ sudo ./test
pic_mode = 1
--enable-platform=xen compiles
Message-ID: <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
Makefrag.am | 1 +
device/intr.c | 26 ++++++++++++++++++++++++++
device/intr.h | 6 ++++--
i386/i386/irq.h | 1 +
i386/i386/pic.c | 3 +++
i386/i386at/conf.c | 2 +-
i386/i386at/ioapic.c | 2 ++
include/device/irq_status.h | 25 +++++++++++++++++++++++++
8 files changed, 63 insertions(+), 3 deletions(-)
create mode 100644 include/device/irq_status.h
hooks/post-receive
--
GNU Mach