diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2012-04-05 10:23:17 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-04-06 11:38:31 -0500 |
commit | 7499b84f415844f92ca3fa27a0036ac8252357fc (patch) | |
tree | 612cd2593d4074d62b2fe99b09906ebda43e4532 /c/src/lib/libbsp | |
parent | SMC91111: updated to use shared IRQ service (diff) | |
download | rtems-7499b84f415844f92ca3fa27a0036ac8252357fc.tar.bz2 |
GRETH: use shared-irq service instead of BSP specific set_vec()
The ISR code is updated to use argument instead of global greth
structure, now that the greth private is available in the ISR.
The shared-irq routines will unmask the IRQ, so the forced LEON3
BSP unmask/clear IRQ is removed.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Diffstat (limited to 'c/src/lib/libbsp')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/leon_greth/leon_greth.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/leon_greth/leon_greth.c b/c/src/lib/libbsp/sparc/leon3/leon_greth/leon_greth.c index dd301d7737..5641575795 100644 --- a/c/src/lib/libbsp/sparc/leon3/leon_greth/leon_greth.c +++ b/c/src/lib/libbsp/sparc/leon3/leon_greth/leon_greth.c @@ -48,13 +48,10 @@ int rtems_leon_greth_driver_attach( *(volatile int *) base_addr = GRETH_CTRL_RST; *(volatile int *) base_addr = 0; leon_greth_configuration.base_address = base_addr; - leon_greth_configuration.vector = eth_irq + 0x10; + leon_greth_configuration.vector = eth_irq; /* on LEON vector is IRQ no. */ leon_greth_configuration.txd_count = TDA_COUNT; leon_greth_configuration.rxd_count = RDA_COUNT; - if (rtems_greth_driver_attach( config, &leon_greth_configuration )) { - LEON_Clear_interrupt(eth_irq); - LEON_Unmask_interrupt(eth_irq); - } + rtems_greth_driver_attach(config, &leon_greth_configuration); } return 0; } |