Implement interrupts and exception handling (WIP). Use RMW instructions for locks.