Comment 5 for bug 1812084

Revision history for this message
Andrew Johnson (anj) wrote :

They do have a pthread.h header, and I was able to build 3.15 for the uC5282 target with calls to those APIs added to the osdThread.c file (I didn't apply your patch in full but I did add the calls to pthread_getschedparam() and rtems_task_set_priority() plus the supporting declarations). The build reconstructed all the bootable test harnesses, and the .boot files are all about 200 bytes larger, so doing this isn't pulling in lots of additional code.

I don't think you meant the above diff to be the final set of changes since the code below your additions is still accessing the internal structures instead of using the values you're looking up, but I believe this approach will work.

I don't have the ability to actually run the result, but I'll be willing to apply a patch using this approach without doing that. If you can produce it in the next couple of days I can probably still get it into the 3.15.8 release.

Thanks.