[rtems commit] smptests/smpfatal08: Support RTEMS_PARAVIRT

Sebastian Huber sebh at rtems.org
Mon Jun 30 10:22:43 UTC 2014


Module:    rtems
Branch:    master
Commit:    0b4ec4d74ea7b1a6dcb6fd92fd1227d97ede6ca5
Changeset: http://git.rtems.org/rtems/commit/?id=0b4ec4d74ea7b1a6dcb6fd92fd1227d97ede6ca5

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jun 30 12:30:12 2014 +0200

smptests/smpfatal08: Support RTEMS_PARAVIRT

---

 testsuites/smptests/smpfatal08/init.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/testsuites/smptests/smpfatal08/init.c b/testsuites/smptests/smpfatal08/init.c
index b005443..9fd855a 100644
--- a/testsuites/smptests/smpfatal08/init.c
+++ b/testsuites/smptests/smpfatal08/init.c
@@ -56,7 +56,8 @@ void _CPU_SMP_Finalize_initialization(uint32_t cpu_count)
   assert(0);
 }
 
-#if !defined(__leon__) && !defined(__PPC__) && !defined(__arm__)
+#if defined(RTEMS_PARAVIRT) \
+  || (!defined(__leon__) && !defined(__PPC__) && !defined(__arm__))
 uint32_t _CPU_SMP_Get_current_processor(void)
 {
   return 0;



More information about the vc mailing list