Recent GCC have SPARC multilib with muser-mode. This makes
CAS instruction operating in both user and priveleged mode.
It is required to allow the CAS in systems where RTEMS run
in user mode.
---
 c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg 
b/c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg
index 5e3d196..f0d119e 100644
--- a/c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg
+++ b/c/src/lib/libbsp/sparc/leon3/make/custom/ngmp.cfg
@@ -1,3 +1,3 @@
 include $(RTEMS_ROOT)/make/custom/leon3.cfg
 
-CPU_CFLAGS = -mcpu=leon3 -msoft-float
+CPU_CFLAGS = -mcpu=leon3 -msoft-float -muser-mode
-- 
1.7.0.4

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to