This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Big problems using DSB, ISB, DMB and SMC mnemonics with armv7 A8 TI Sitara am335x

I implemented the following C snippet as normal  C file:

This code compiles, links, and while being in privileged Supervisor mode does work as expected.

Now, if I do from this code a simplistic kernel driver such as:

I get while compiling the following errors!?

I use native gcc on the target BeagleBone Black (manual for silicon TI am335x here: http://www.ti.com/lit/ug/spruh73p/spruh73p.pdf )

Why in the first case gcc compiles DSB, ISB, DMB instructions without any problems, while in the second it does not?

The SMC instruction is not recognized in both cases?!

/tmp/ccrM1hRS.s:278: Error: selected processor does not support `smc #1' in ARM mode

Why?

Thank you in advance,

_nobody_

0