diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/boot.h | 6 | ||||
-rw-r--r-- | src/condvar.h | 6 | ||||
-rw-r--r-- | src/cpu.h | 6 | ||||
-rw-r--r-- | src/io.h | 6 | ||||
-rw-r--r-- | src/mem.h | 6 | ||||
-rw-r--r-- | src/mutex.h | 6 | ||||
-rw-r--r-- | src/panic.h | 6 | ||||
-rw-r--r-- | src/sw.h | 6 | ||||
-rw-r--r-- | src/thread.h | 6 | ||||
-rw-r--r-- | src/timer.h | 6 | ||||
-rw-r--r-- | src/uart.h | 6 |
11 files changed, 33 insertions, 33 deletions
@@ -21,8 +21,8 @@ * DEALINGS IN THE SOFTWARE. */ -#ifndef _BOOT_H -#define _BOOT_H +#ifndef BOOT_H +#define BOOT_H /* * The size of the boot stack. @@ -31,4 +31,4 @@ */ #define BOOT_STACK_SIZE 4096 -#endif /* _BOOT_H */ +#endif /* BOOT_H */ diff --git a/src/condvar.h b/src/condvar.h index 1448d69..ad93505 100644 --- a/src/condvar.h +++ b/src/condvar.h @@ -40,8 +40,8 @@ * [1] http://pubs.opengroup.org/onlinepubs/9699919799/ */ -#ifndef _CONDVAR_H -#define _CONDVAR_H +#ifndef CONDVAR_H +#define CONDVAR_H #include <lib/list.h> @@ -146,4 +146,4 @@ void condvar_broadcast(struct condvar *condvar); */ void condvar_wait(struct condvar *condvar, struct mutex *mutex); -#endif /* _CONDVAR_H */ +#endif /* CONDVAR_H */ @@ -28,8 +28,8 @@ * See the i8259 module. */ -#ifndef _CPU_H -#define _CPU_H +#ifndef CPU_H +#define CPU_H /* * EFLAGS register flags. @@ -133,4 +133,4 @@ void cpu_setup(void); #endif /* __ASSEMBLER__ */ -#endif /* _CPU_H */ +#endif /* CPU_H */ @@ -29,8 +29,8 @@ * used for this purpose, at least for some legacy devices. */ -#ifndef _IO_H -#define _IO_H +#ifndef IO_H +#define IO_H #include <stdint.h> @@ -44,4 +44,4 @@ uint8_t io_read(uint16_t port); */ void io_write(uint16_t port, uint8_t byte); -#endif /* _IO_H */ +#endif /* IO_H */ @@ -27,8 +27,8 @@ * memory allocated at compile time by the linker. */ -#ifndef _MEM_H -#define _MEM_H +#ifndef MEM_H +#define MEM_H #include <stddef.h> @@ -89,4 +89,4 @@ void * mem_alloc(size_t size); */ void mem_free(void *ptr); -#endif /* _MEM_H */ +#endif /* MEM_H */ diff --git a/src/mutex.h b/src/mutex.h index fedbb8f..a52bb41 100644 --- a/src/mutex.h +++ b/src/mutex.h @@ -113,8 +113,8 @@ * particular, a mutex cannot be locked recursively. */ -#ifndef _MUTEX_H -#define _MUTEX_H +#ifndef MUTEX_H +#define MUTEX_H #include <stdbool.h> @@ -162,4 +162,4 @@ int mutex_trylock(struct mutex *mutex); */ void mutex_unlock(struct mutex *mutex); -#endif /* _MUTEX_H */ +#endif /* MUTEX_H */ diff --git a/src/panic.h b/src/panic.h index be91405..2b557f7 100644 --- a/src/panic.h +++ b/src/panic.h @@ -20,8 +20,8 @@ * DEALINGS IN THE SOFTWARE. */ -#ifndef _PANIC_H -#define _PANIC_H +#ifndef PANIC_H +#define PANIC_H #include <lib/macros.h> @@ -29,4 +29,4 @@ void panic(const char *format, ...) __attribute__((noreturn)) __attribute__((format(printf, 1, 2))); -#endif /* _PANIC_H */ +#endif /* PANIC_H */ @@ -23,12 +23,12 @@ * Stopwatch demo application. */ -#ifndef _SW_H -#define _SW_H +#ifndef SW_H +#define SW_H /* * Initialize the sw module. */ void sw_setup(void); -#endif /* _SW_H */ +#endif /* SW_H */ diff --git a/src/thread.h b/src/thread.h index 78f87da..61c802e 100644 --- a/src/thread.h +++ b/src/thread.h @@ -80,8 +80,8 @@ * preemption enabled during the critical section. */ -#ifndef _THREAD_H -#define _THREAD_H +#ifndef THREAD_H +#define THREAD_H #include <stdbool.h> #include <stddef.h> @@ -323,4 +323,4 @@ void thread_report_tick(void); */ void thread_enable_scheduler(void) __attribute__((noreturn)); -#endif /* _THREAD_H */ +#endif /* THREAD_H */ diff --git a/src/timer.h b/src/timer.h index e4a531e..218d28b 100644 --- a/src/timer.h +++ b/src/timer.h @@ -23,8 +23,8 @@ * Software timer module. */ -#ifndef _TIMER_H -#define _TIMER_H +#ifndef TIMER_H +#define TIMER_H #include <stdbool.h> @@ -133,4 +133,4 @@ unsigned long timer_get_time(const struct timer *timer); */ void timer_report_tick(void); -#endif /* _TIMER_H */ +#endif /* TIMER_H */ @@ -30,8 +30,8 @@ * communication. */ -#ifndef _UART_H -#define _UART_H +#ifndef UART_H +#define UART_H #include <stdint.h> @@ -58,4 +58,4 @@ void uart_write(uint8_t byte); */ int uart_read(uint8_t *byte); -#endif /* _UART_H */ +#endif /* UART_H */ |