summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2012-01-31 08:52:08 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2012-03-27 15:20:17 +0200
commit9f0e9b928b78863272af5cb88e9a921a8c078c48 (patch)
tree7c181c8a1d15ca532fac233ab496e476004c74eb
parentef16c83600dd403b6d34853c4e95fd3efc72fa0c (diff)
LEON2: SMC9111 IRQ setup fix, shared-IRQ conversion miss
-rw-r--r--c/src/lib/libbsp/sparc/leon2/leon_smc91111/leon_smc91111.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sparc/leon2/leon_smc91111/leon_smc91111.c b/c/src/lib/libbsp/sparc/leon2/leon_smc91111/leon_smc91111.c
index 3faca9b80f..3a065f9ec1 100644
--- a/c/src/lib/libbsp/sparc/leon2/leon_smc91111/leon_smc91111.c
+++ b/c/src/lib/libbsp/sparc/leon2/leon_smc91111/leon_smc91111.c
@@ -55,7 +55,7 @@ int rtems_smc91111_driver_attach_leon2(struct rtems_bsdnet_ifconfig *config)
*((volatile unsigned int *)0x80000000) |= 0x10f80000;
*((volatile unsigned int *)0x800000A8) |=
(0xe0 | leon_scmv91111_configuration.pio)
- << (8 * ((leon_scmv91111_configuration.vector & 0x0f) - 4));
+ << (8 * (leon_scmv91111_configuration.irq - 4));
return _rtems_smc91111_driver_attach(config,&leon_scmv91111_configuration);