@LiveForIt
Quote:
what is correct why to do it? get it from the interface?
Sorry, I don't remember, it's been about 20-25 years ago since I did any serious AmigaOS 4.x development...
But one of the arguments the _start() function of PPC native executables, no matter if ELF REL (ancient AmigaOS 4.x versions, no idea if still supported) or ELF EXEC (current) called by dos.library, either gets a pointer to SysBase or to IExec in it's arguments (IIRC r4), and both are interchangeable and don't prevent SMP.
Accessing the unmaped zero page, incl. **4, causes an exception, and either isn't usable at all for SMP, or causes
huge additional work.