Moved __ASM_GLOBAL_FUNC macros and interlocked functions to port.[ch]

24 files changed