AnsweredAssumed Answered

Instructions SVC (ARM)

Question asked by avi_crak.videocrak on Sep 29, 2015
Latest reply on Oct 10, 2015 by avi_crak.videocrak
__asm volatile ("SVC 0x4"); code
08000D7A svc 4; debugger Assembler
And even in the final bin contains 4 SVC team in the junior ranks.
0x4 - (0x0 ~ 0x255) - should be added to the current "PC" register at the beginning of the interrupt code is SVC.

But it ignores the core. I thought that the kernel should automatically add this number to the register pc as soon as it changes to interrupt, but is not.
0x4 number does not change the registers, and generally seems to leave no trace. Take the number obtained by reading already made svc mnemonic code of the program, at the very interruption. And about the many examples of this in the global garbage.
Why such a crutch ???? and even at the kernel level.

How to use the constant jump in the body of SVC, with minimal effort.
/// перевод Google.
Хочется разобраться с этой хренью, раз и навсегда.

Outcomes