cpu/arm7_common: Make irq_*() compiler barriers
cpu/arm7_common: Make irq_*() compiler barriers

Previously the compiler was allowed to reorder access to the interrupt control
registers in regard to memory access not marked as `volatile` (at least some
people - most notably some compiler developers - read the C standard this way).
In practise this did not happen as irq_disable(), irq_restore(), irq_enable()
are part of a separate compilation unit: Calls to external functions unknown to
the compiler are treated as if they were memory barriers. But if link time
optimization (LTO) is enabled, this no longer would work: The compiler could
inline the code accessing the interrupt control registers and reorder the memory
accesses wrapped in irq_disable() and irq_restore() outside of their protection.

This commit adds the "memory" clobber to the inline assembly accessing the
interrupt control registers. This makes those accesses explicit compiler memory
barriers. The machine code generated without LTO enabled should not differ in
any way by this commit. But the use of irq_*() should now be safe with LTO.

toonst/RIOT,toonst/RIOT,authmillenon/RIOT,yogo1212/RIOT,cladmi/RIOT,mfrey/RIOT,OTAkeys/RIOT,kaspar030/RIOT,OlegHahm/RIOT,OlegHahm/RIOT,kYc0o/RIOT,OTAkeys/RIOT,mfrey/RIOT,cladmi/RIOT,cladmi/RIOT,kYc0o/RIOT,aeneby/RIOT,kYc0o/RIOT,authmillenon/RIOT,jasonatran/RIOT,mfrey/RIOT,aeneby/RIOT,rfuentess/RIOT,OTAkeys/RIOT,basilfx/RIOT,cladmi/RIOT,jasonatran/RIOT,authmillenon/RIOT,authmillenon/RIOT,basilfx/RIOT,yogo1212/RIOT,RIOT-OS/RIOT,cladmi/RIOT,basilfx/RIOT,miri64/RIOT,x3ro/RIOT,miri64/RIOT,yogo1212/RIOT,OlegHahm/RIOT,kYc0o/RIOT,ant9000/RIOT,smlng/RIOT,OlegHahm/RIOT,yogo1212/RIOT,josephnoir/RIOT,kYc0o/RIOT,kaspar030/RIOT,rfuentess/RIOT,mtausig/RIOT,RIOT-OS/RIOT,rfuentess/RIOT,toonst/RIOT,ant9000/RIOT,jasonatran/RIOT,yogo1212/RIOT,rfuentess/RIOT,josephnoir/RIOT,josephnoir/RIOT,josephnoir/RIOT,jasonatran/RIOT,basilfx/RIOT,OTAkeys/RIOT,x3ro/RIOT,smlng/RIOT,yogo1212/RIOT,RIOT-OS/RIOT,aeneby/RIOT,miri64/RIOT,mtausig/RIOT,aeneby/RIOT,jasonatran/RIOT,josephnoir/RIOT,ant9000/RIOT,mfrey/RIOT,kaspar030/RIOT,basilfx/RIOT,RIOT-OS/RIOT,toonst/RIOT,authmillenon/RIOT,rfuentess/RIOT,OlegHahm/RIOT,mfrey/RIOT,x3ro/RIOT,x3ro/RIOT,OTAkeys/RIOT,miri64/RIOT,smlng/RIOT,authmillenon/RIOT,ant9000/RIOT,miri64/RIOT,smlng/RIOT,x3ro/RIOT,kaspar030/RIOT,ant9000/RIOT,mtausig/RIOT,toonst/RIOT,mtausig/RIOT,aeneby/RIOT,mtausig/RIOT,RIOT-OS/RIOT,kaspar030/RIOT,smlng/RIOT