Move the idle loop code to an architecture dependent file