From a7267241a9ace0f8c1c1c9a9ee1721e04313aa91 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 26 Nov 2018 15:44:25 +0100 Subject: bsps/sparc: Add and use Reduce copy and paste. --- bsps/sparc/shared/pci/gr_rasta_tmtc.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'bsps/sparc/shared/pci/gr_rasta_tmtc.c') diff --git a/bsps/sparc/shared/pci/gr_rasta_tmtc.c b/bsps/sparc/shared/pci/gr_rasta_tmtc.c index 7f49d1de1d..f615958c84 100644 --- a/bsps/sparc/shared/pci/gr_rasta_tmtc.c +++ b/bsps/sparc/shared/pci/gr_rasta_tmtc.c @@ -23,7 +23,6 @@ #include #include -#include /* spin-lock */ #include #include @@ -36,15 +35,7 @@ #include -/* map via rtems_interrupt_lock_* API: */ -#define SPIN_DECLARE(lock) RTEMS_INTERRUPT_LOCK_MEMBER(lock) -#define SPIN_INIT(lock, name) rtems_interrupt_lock_initialize(lock, name) -#define SPIN_LOCK(lock, level) rtems_interrupt_lock_acquire_isr(lock, &level) -#define SPIN_LOCK_IRQ(lock, level) rtems_interrupt_lock_acquire(lock, &level) -#define SPIN_UNLOCK(lock, level) rtems_interrupt_lock_release_isr(lock, &level) -#define SPIN_UNLOCK_IRQ(lock, level) rtems_interrupt_lock_release(lock, &level) -#define SPIN_IRQFLAGS(k) rtems_interrupt_lock_context k -#define SPIN_ISR_IRQFLAGS(k) SPIN_IRQFLAGS(k) +#include /* Determines which PCI address the AHB masters will access, it should be * set so that the masters can access the CPU RAM. Default is base of CPU RAM, -- cgit v1.2.3