TaskManager_Shutdown bit 5
Rik Griffin (98) 264 posts |
The wiki (https://www.riscosopen.org/wiki/documentation/show/TaskManager_Shutdown) says that setting bit 5 of R0 will cause TaskManager_Shutdown to reboot the machine once shutdown is complete. I can’t get this to happen, either on RO4.03 (RiscPC) or 5.19 (Iyonix). Am I missing something? A cursory look at the TaskManager source suggests that this is not implemented. |
Rik Griffin (98) 264 posts |
I’ve tentatively added support for bit 5 to the TaskManager. 1 second after displaying the shutdown screen, OS_Reset is called. Thus is bit 0 is set (don’t show shutdown screen) bit 5 has no effect. Trouble is, I’m having trouble compiling the TM module. I must have set my build environment up wrong in some way. It’s trying to GET a header file using a macro “$GetIO” which is undefined. It’s also looking for a header file “Hdr.OSRSI6”. I can work round this because whatever $GetIO does it seems to be not needed anyway. And OSRSI6 just (presumably) defines constants for OS_ReadSysInfo 6, namely OSRSI6_SVCSTK, which I can define myself (16). But any clues as to what I’ve done wrong? Running !Builder and doing “Export headers” logs these errors, none of which look relevant (paths truncated for readability): Error cannot locate ‘…closed.RiscOS.Sources.HWSupport.ARM3’ |
Ben Avison (25) 445 posts |
Sounds like you may have accidentally selected one of the ROOL-internal-use-only environments. Try selecting Environment: OMAP3 (or whatever machine you’re building for) in !Builder again, or double-click on the Obey file of the same name in castle.RiscOS.Env (which is what !Builder does internally). |