mirror of
https://github.com/drasko/codezero.git
synced 2026-01-14 03:43:15 +01:00
Changes to platform device handling, irqs, userspace device configuration
Revised irq handling and device address naming on internal devices.
This commit is contained in:
@@ -32,10 +32,11 @@
|
||||
l4id_t pl190_read_irq(void)
|
||||
{
|
||||
l4id_t irq;
|
||||
if ((irq =__clz(read(PL190_VIC_IRQSTATUS))))
|
||||
return irq;
|
||||
else
|
||||
|
||||
if ((irq = (31 - __clz(read(PL190_VIC_IRQSTATUS)))) < 0)
|
||||
return IRQ_NIL;
|
||||
else
|
||||
return irq;
|
||||
}
|
||||
|
||||
void pl190_mask_irq(l4id_t irq)
|
||||
@@ -60,10 +61,10 @@ l4id_t pl190_sic_read_irq(void)
|
||||
{
|
||||
l4id_t irq;
|
||||
|
||||
if ((irq =__clz(read(PL190_SIC_STATUS))))
|
||||
return irq;
|
||||
else
|
||||
if ((irq =(31 - __clz(read(PL190_SIC_STATUS)))) < 0)
|
||||
return IRQ_NIL;
|
||||
else
|
||||
return irq;
|
||||
}
|
||||
|
||||
void pl190_sic_mask_irq(l4id_t irq)
|
||||
|
||||
@@ -233,7 +233,7 @@ int pl011_initialise_device(struct pl011_uart * uart)
|
||||
/* Initialise data register for 8 bit data read/writes */
|
||||
pl011_set_word_width(uart->base, 8);
|
||||
|
||||
/*
|
||||
/*
|
||||
* Fifos are disabled because by default it is assumed the port
|
||||
* will be used as a user terminal, and in that case the typed
|
||||
* characters will only show up when fifos are flushed, rather than
|
||||
|
||||
Reference in New Issue
Block a user