This is one of a few changes I am hoping can be made so that edk2 can clean up its dependencies. In general ArmPkg should be implementation details but should not define interfaces needed by core drivers to compile. Removing the poorly layered code will speed up CI and clean up the core modules dependencies. There has been been talk of developing a good intrinsic lib in edk2. This would be great but given no resources to work on it I would ask that we don't let that block a simple move of a library. If/When time permits maybe someone can finally build a multi-arch/multi-plat/multi-toolchain intrinsic lib. Example of this change can be seen here: https://github.com/microsoft/mu_basecore/tree/release/202108/MdePkg/Library/CompilerIntrinsicsLib This branch has all changes needed but they are scattered about across nearly all packages. https://github.com/microsoft/mu_basecore/tree/release/202108
Include Ard, Liming and Mike
Gerd Hoffmann is working on it.
this is a new feature