added full support for nested interrupts: must pe intensively tetsted (best test is to use it for the UART driver)