Andreas Färber wrote:
The callback function apparently provides a way for the OS to take over memory management from OpenFirmware. Thus the relation to ofmem.
Haiku sets up a new page table based on the one from OpenFirmware, calls set-callback and expects to be asked for future memory allocations etc.
That's really strange - that doesn't seem to match the spec at all, plus I don't see any mention of callbacks in the memory routines within the OpenBOOT source code? I'm really not convinced that code is doing what it thinks it should.