Created originally on Bitbucket by calle2010 (Christian Schäfer)
Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.
New stub task_info_by_id for tasks.c
Tested in Qemu for 77D and 200D.
The stub "task_info_by_id" replaces the stub "is_taskid_valid". The stub code is much simpler, e. g. doesn't disable interrupts.
This will break builds for models without the new stub defined.
The test implementation brute forces task IDs and prints the name of found tasks.
Invalid tasks return 0.
By passing -1 the pointer to the current task structure is returned.