diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2008-04-19 07:25:57 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2008-04-19 07:25:57 +0000 |
| commit | 3bf67daaf367e42f8b9891e8ee68da9161dad940 (patch) | |
| tree | 69f5e71e559b0094a5c645c701ae2cad34499187 /sys | |
| parent | 5b30d6ca7796d82bf6bd40c559f29c86b07ba572 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/amd64/amd64/machdep.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 887323137c18..9d26e53298c4 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -847,11 +847,23 @@ ssdtosyssd(ssd, sd) #if !defined(DEV_ATPIC) && defined(DEV_ISA) #include <isa/isavar.h> -u_int +#include <isa/isareg.h> +/* + * Return a bitmap of the current interrupt requests. This is 8259-specific + * and is only suitable for use at probe time. + * This is only here to pacify sio. It is NOT FATAL if this doesn't work. + * It shouldn't be here. There should probably be an APIC centric + * implementation in the apic driver code, if at all. + */ +intrmask_t isa_irq_pending(void) { + u_char irr1; + u_char irr2; - return (0); + irr1 = inb(IO_ICU1); + irr2 = inb(IO_ICU2); + return ((irr2 << 8) | irr1); } #endif |
