Call thread_yield() in timer_sleep() if interrupts are on.
[pintos-anon] / src / devices / 16550a.h
index bfe948489dbcb0a052765794cb052f94842b5a60..99b7e578ad23478e13e06ed96c443c35cf9aabae 100644 (file)
@@ -1,9 +1,9 @@
-#ifndef HEADER_16550A_H
-#define HEADER_16550A_H 1
+#ifndef DEVICES_16550A_H
+#define DEVICES_16550A_H
 
+#include <debug.h>
 #include <stdbool.h>
 #include <stdint.h>
-#include "debug.h"
 
 /* Register definitions for the 16550A UART used in PCs.  This is
    a full definition of all the registers and their bits.  We
@@ -120,4 +120,4 @@ make_lcr (int bits, enum parity_type parity, int stop, bool send_break,
 #define MSR_RI   0x40           /* Ring Indicator. */
 #define MSR_DCD  0x80           /* Data Carrier Detect. */
 
-#endif /* 16550a.h */
+#endif /* devices/16550a.h */