Question
Instructions SVC (ARM)
Posted on September 29, 2015 at 22:18
__asm ??volatile (''SVC 0x4''); code
08000D7A svc 4; debugger AssemblerAnd 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.
??????? ??????????? ? ???? ??????, ??? ? ????????. #svc-(arm)