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