Add needed volatile qualifications. Add volatile qualifications to two blocks of inline asm to stop GCC from eliminating them as dead code.