all pios_irq: add PIOS_IRQ_GetInISR() method
pios_com: ensure proper usage of Semaphore_Give depending on context