summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2014-05-20 11:04:15 +0200
committerDaniel Cederman <cederman@gaisler.com>2014-06-27 11:03:25 +0200
commitb09b8e5255f6ae94445b12fecbbd38ab536b5956 (patch)
treef8350af2c4faa433c83884228ed0ec4ddb56ee1c
parentd20ba4e1150f89d9a460131821340ff7559b530f (diff)
LEON3 SMP: remove unused code
This code is confusing since the LEON3 SMP requires mcpu=leon3 and the _CPU_SMP_Get_current_processor() is declared in cpu.h and inline.
-rw-r--r--c/src/lib/libbsp/sparc/leon3/startup/bspsmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/startup/bspsmp.c b/c/src/lib/libbsp/sparc/leon3/startup/bspsmp.c
index 567eecc819..b90fb2f094 100644
--- a/c/src/lib/libbsp/sparc/leon3/startup/bspsmp.c
+++ b/c/src/lib/libbsp/sparc/leon3/startup/bspsmp.c
@@ -20,7 +20,7 @@
#include <rtems/score/smpimpl.h>
#include <stdlib.h>
-#if !defined(__leon__) || defined(RTEMS_PARAVIRT)
+#if defined(RTEMS_PARAVIRT)
uint32_t _CPU_SMP_Get_current_processor( void )
{
return _LEON3_Get_current_processor();