Correcting header guards across the kernel

This commit is contained in:
Imbus 2025-09-02 03:27:36 +02:00
parent 8d126a6dfd
commit 4ed3650089
12 changed files with 50 additions and 59 deletions

View file

@ -13,4 +13,4 @@
*/
size_t probe_memory(void);
#endif
#endif // MEMORY_KARNEL_H

View file

@ -5,4 +5,4 @@
void __panic(const char *restrict fmt, ...);
#endif
#endif // KERNEL_PANIC_H

View file

@ -77,4 +77,4 @@ static inline int intr_get() {
return (x & SSTATUS_SIE) != 0;
}
#endif
#endif // RISCV_KERNEL_H

View file

@ -1,5 +1,5 @@
#ifndef KERNEL_Spinlock_H
#define KERNEL_Spinlock_H
#ifndef KERNEL_SPINLOCK_H
#define KERNEL_SPINLOCK_H
#include <proc.h>
#include <stdbool.h>
@ -19,4 +19,4 @@ void spin_unlock(spinlock_t *l);
bool spin_is_holding(spinlock_t *l);
void spin_lock(spinlock_t *l);
#endif
#endif // KERNEL_SPINLOCK_H

View file

@ -8,4 +8,4 @@ typedef __builtin_va_list va_list;
#define va_end(ap) __builtin_va_end(ap)
#define va_copy(dest, src) __builtin_va_copy(dest, src)
#endif
#endif // _STDARG_H

View file

@ -5,4 +5,4 @@
typedef char bool;
enum { false = 0, true = 1 };
#endif
#endif // _STDBOOL_H

View file

@ -1,4 +1,5 @@
#pragma once
#ifndef STDINT_H
#define STDINT_H
typedef unsigned char u8;
typedef unsigned short u16;
@ -27,3 +28,5 @@ typedef uint64_t uintptr_t;
#define UINT16_MAX (65535)
#define UINT32_MAX (4294967295U)
#define UINT64_MAX (__UINT64_C(18446744073709551615))
#endif // STDINT_H

View file

@ -42,4 +42,4 @@ char *strchr(const char *s, int c);
char *strrchr(const char *s, int c);
*/
#endif
#endif // KERNEL_STRING_H

View file

@ -4,4 +4,4 @@
/** Send a single character to the UART device */
void uart_putc(char c);
#endif
#endif // UART_KERNEL_H