summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2014-05-20 11:04:15 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2014-06-26 10:22:33 +0200
commit627af2af982ad500230975b262caa6d2395e8ae3 (patch)
treedfae964e4929b037f81c42004edd08126b5380ae
parent528bbb5637c38c367a8bbc63452ec006736521a2 (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();