If you have a go then let me know how you get on. If it looks good then I'll roll this out to the other PIC32 devices, and maybe other devices with interrupt priority control registers.
Hello Ben.
I would not recommend doing this now ,I had a change last night to run the new files and I am sad to say not very successful.
(1) Attached is a simple project which Runs T1 Interrupt ,The interrupt only work when the priority is set at Lowest(1) if I use any other priority above 1 - 7 the interrupt does not fire at all( left the sub priority at 0
(2) I then removed the T1 interrupt and Used an UART2RX interrupt The UART is not responding at all ,No TX and NO RX polled or interrupt driven (Unfortunate on this board I can not try another UART port as the mcu is in a custom PCB which all the other pins are wired to some critical stuff.
My conclusion
The UART 2 is not reponding at all (regardles interrupts or polling)
The interrupt priorities is not working as we expect.
Please do not loose time on this issue with me I have to move on I will use the MCC tool set to complete this task and when I have time I will setup a test system to test these issues(specially if the other UART's are working)
I am under pressure to deliver this to my customer ,I have no choice, I have to use MPLAB as you were away and Leigh tried to help and in between is at least 3 weeks

I am sorry about this but my customer is getting nervous and a bit aggressive with me
Thank again for your hard work I appreciate all very much