Any hardware access is always going to be unsafe, because the compiler cannot know what the hardware does. For all it knows, it could change the memory of the running app. There's no implementation that cares about ownership where that goes away.
I was specifically thinking about register access. That you can make safe if you provide a way to describe what the hardware needs.
Something like this: https://en.wikibooks.org/wiki/Ada_Programming/Representation...
I was specifically thinking about register access. That you can make safe if you provide a way to describe what the hardware needs.
Something like this: https://en.wikibooks.org/wiki/Ada_Programming/Representation...