Hi.
In the following mbed SDK
https://github.com/mbedmicro/mbed
You implemented critical.c. In this file, "__get_PRIMASK()" is referenced.
However, "__get_PRIMASK()" is a function that is supported only on Cortex-M.
"__get_PRIMASK()" is not supported in Cortex-A.
Therefore, the compile error occurs in Cortex-A.
Reference: #1804, and more...
Regards,
Yamanaka