UART code for a 16550.
[uccvend-snackrom.git] / ROM2 / asm.h
index 2c07ac8..41e9fe2 100644 (file)
@@ -34,4 +34,12 @@ extern inline void bclr(const void* addr, const u8 mask) {
        //      );
 }
 
+extern inline void lock() {
+       asm volatile ("cli");
+}
+
+extern inline void unlock() {
+       asm volatile ("sei");
+}
+
 #endif /* _ASM_H_ */

UCC git Repository :: git.ucc.asn.au