Re:Apple Silicon Hardware: SPRR and Guarded Exception Levels...
by saagarjha on Friday May 07, 2021 @06:30PM
(#27081564)
Apple (and I’m pretty sure ARM as well) does not want you writing programs that rely on its proprietary extensions to the ISA. The specific things mentioned here are either not exposed to userspace or wrapped in API that hides these implementation details so that third party developers don’t have to deal with them. And Apple changes all these almost every year, which they certainly wouldn’t be able to do if they exposed these; you’ll note that some of my experiments that I wrote not even a year ago are linked in the article as being fundamentally broken now.
[ Parent
| on HN ]
Re:Apple Silicon Hardware: SPRR and Guarded Exception Levels...
by Wowfunhappy on Friday May 07, 2021 @07:48PM
(#27082115)
> Apple (and I’m pretty sure ARM as well) does not want you writing programs that rely on its proprietary extensions to the ISA.
Well, but at least some people at Apple do. Kind of. They built a mechanism for loading alternate kernels while knowing full well that it would require reverse engineering in order to use. A former engineer said as much. https://twitter.com/XenoKovah/status/1339914716454526979
In a way, Apple has done this for years. Their Mail app contains a third-party plugin API (which dates back to at least Tiger, so it's not some unfinished feature they forgot to remove), but it's completely undocumented. You can't use it unless you reverse engineer it.
I don't quite get it, really.
Re:Apple Silicon Hardware: SPRR and Guarded Exception Levels...
by saagarjha on Friday May 07, 2021 @08:29PM
(#27082440)
Ok, perhaps I should qualify that: they don’t want normal app developers doing this, because those ones want stability. But I believe there are some at Apple that (correctly) see that allowing certain extension points like these is healthy for the overall community. But it’s all under the table…