1
2
3
4
5
6
7
8
#define L_CALL(func) ({ \
    typeof(func) * _ptr = &func; \
        asm volatile ( \
            "ldr %0, =" #func \
            : "=r" (_ptr) \
        ); \
    _ptr; \
})