amiga_boottest
diff src/intr.h @ 1:48093e4bd99a
stuff
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 21 Feb 2018 18:00:45 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/intr.h Wed Feb 21 18:00:45 2018 +0200 1.3 @@ -0,0 +1,7 @@ 1.4 +#ifndef INTR_H_ 1.5 +#define INTR_H_ 1.6 + 1.7 +#define enable_intr() asm volatile ("andi.w #0xf8ff, %sr") 1.8 +#define disable_intr() asm volatile ("ori.w #0x0300, %sr") 1.9 + 1.10 +#endif /* INTR_H_ */