Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
N/A Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This is a modified copy of armv6-m/armv7-m version.