Fixed some warnings on ARM

Signed-off-by: Haru <haru@dotalux.com>
Tweaked a platform check to support ARMv6+

Signed-off-by: Haru <haru@dotalux.com>