mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 10:38:55 +00:00
parent
f53e4ff8f5
commit
8d145bd80c
@ -25,6 +25,12 @@ namespace Kernel
|
||||
{
|
||||
class Pic : Genode::Mmio
|
||||
{
|
||||
public:
|
||||
|
||||
enum { MAX_INTERRUPT_ID = 64 };
|
||||
|
||||
private:
|
||||
|
||||
struct Irq_pending_basic : Register<0x0, 32>
|
||||
{
|
||||
struct Timer : Bitfield<0, 1> { };
|
||||
@ -42,8 +48,6 @@ namespace Kernel
|
||||
struct Irq_disable_gpu_2 : Register<0x20, 32> { };
|
||||
struct Irq_disable_basic : Register<0x24, 32> { };
|
||||
|
||||
private:
|
||||
|
||||
typedef Genode::uint32_t uint32_t;
|
||||
|
||||
/**
|
||||
@ -76,7 +80,7 @@ namespace Kernel
|
||||
}
|
||||
|
||||
/* search for lowest set bit in pending masks */
|
||||
for (unsigned i = 0; i < 64; i++) {
|
||||
for (unsigned i = 0; i < MAX_INTERRUPT_ID; i++) {
|
||||
if (!_is_pending(i, p1, p2))
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user