- The instructions starting with a
.
are really assembler directives. You can look them up in GAS: ARM machine directives .syntax unified
signals the use of unified ARM / Thumb assembly syntax. The concept is explained here and here..thumb_func
signals the start of a Thumb mode function for ARM-Thumb interwork. The concept is explained here and here.raise_privilege
looks exactly like avoid raise_privilege(void)
leaf function (i.e. it doesn't call other functions) in C to me. Call it with:
bl raise_privilege