mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-17 06:38:28 +00:00
committed by
Christian Helmuth
parent
fb66e733b5
commit
9debad4e91
@ -26,7 +26,7 @@ Timer::Time_source::Time_source(Env &env)
|
||||
:
|
||||
Attached_mmio(env, Imx6::EPIT_2_MMIO_BASE, Imx6::EPIT_2_MMIO_SIZE),
|
||||
Signalled_time_source(env),
|
||||
_timer_irq(env, Imx6::EPIT_2_IRQ)
|
||||
_timer_irq(env, unsigned(Imx6::EPIT_2_IRQ))
|
||||
{
|
||||
_timer_irq.sigh(_signal_handler);
|
||||
while (read<Cr::Swr>()) ;
|
||||
|
@ -26,4 +26,4 @@ enum {
|
||||
Timer::Time_source::Time_source(Env &env)
|
||||
: Attached_mmio(env, MMIO_BASE, MMIO_SIZE),
|
||||
Signalled_time_source(env),
|
||||
_timer_irq(env, IRQ) { _initialize(); }
|
||||
_timer_irq(env, unsigned(IRQ)) { _initialize(); }
|
||||
|
@ -200,7 +200,7 @@ Timer::Time_source::Time_source(Env &env)
|
||||
:
|
||||
Signalled_time_source(env),
|
||||
_io_port(env, PIT_DATA_PORT_0, PIT_CMD_PORT - PIT_DATA_PORT_0 + 1),
|
||||
_timer_irq(env, IRQ_PIT)
|
||||
_timer_irq(env, unsigned(IRQ_PIT))
|
||||
{
|
||||
/* operate PIT in one-shot mode */
|
||||
_io_port.outb(PIT_CMD_PORT, PIT_CMD_SELECT_CHANNEL_0 |
|
||||
|
Reference in New Issue
Block a user