Thumb-2: Implement the unified arch/arm/lib functions