Find out why bootloader sometimes hangs

Sometimes the bootloader does not go beyond printing the first line of output. I suspect this has to do with the interrupt stuff I introduced in 4c9dfee7.

Maybe the attached patch can help with debugging?

pmic.patch