diff options
Diffstat (limited to 'include')
41 files changed, 200 insertions, 0 deletions
diff --git a/include/common/fcntl.h b/include/common/fcntl.h index 24d40fa..6059538 100644 --- a/include/common/fcntl.h +++ b/include/common/fcntl.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #define O_RDONLY 0x000 diff --git a/include/common/types.h b/include/common/types.h index 8924699..aa2cb08 100644 --- a/include/common/types.h +++ b/include/common/types.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once typedef unsigned char uint8_t; diff --git a/include/drivers/plic.h b/include/drivers/plic.h index 11e8c8a..cdcd0ce 100644 --- a/include/drivers/plic.h +++ b/include/drivers/plic.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" diff --git a/include/drivers/uart.h b/include/drivers/uart.h index 85b04b0..1cdc938 100644 --- a/include/drivers/uart.h +++ b/include/drivers/uart.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" #include "drivers/uart_color.h" diff --git a/include/drivers/uart_color.h b/include/drivers/uart_color.h index a63d57a..7ecc28b 100644 --- a/include/drivers/uart_color.h +++ b/include/drivers/uart_color.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + // ANSI Escape Codes for Modern Terminal Colors #define ANSI_RESET "\033[0m" #define ANSI_RED "\033[31m" diff --git a/include/drivers/virtio.h b/include/drivers/virtio.h index ea2c9a6..9fda8cf 100644 --- a/include/drivers/virtio.h +++ b/include/drivers/virtio.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" diff --git a/include/fs/fat32.h b/include/fs/fat32.h index 1bd60ef..63d62ae 100644 --- a/include/fs/fat32.h +++ b/include/fs/fat32.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "fs/fs.h" #include "kernel/buf.h" diff --git a/include/fs/file.h b/include/fs/file.h index a92d8f8..9aff1af 100644 --- a/include/fs/file.h +++ b/include/fs/file.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" #include "fs/fs.h" diff --git a/include/fs/fs.h b/include/fs/fs.h index 235ec80..967858b 100644 --- a/include/fs/fs.h +++ b/include/fs/fs.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" #include "kernel/spinlock.h" diff --git a/include/fs/stat.h b/include/fs/stat.h index cdce05a..e60ae42 100644 --- a/include/fs/stat.h +++ b/include/fs/stat.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" diff --git a/include/kernel/buf.h b/include/kernel/buf.h index 099523d..d0d849c 100644 --- a/include/kernel/buf.h +++ b/include/kernel/buf.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" #include "kernel/spinlock.h" diff --git a/include/kernel/config.h b/include/kernel/config.h index 56a1aa6..45d85cd 100644 --- a/include/kernel/config.h +++ b/include/kernel/config.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" diff --git a/include/kernel/cpu.h b/include/kernel/cpu.h index 92890b6..62bdc17 100644 --- a/include/kernel/cpu.h +++ b/include/kernel/cpu.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" #include "kernel/proc_def.h" diff --git a/include/kernel/elf.h b/include/kernel/elf.h index c216f1c..30193d2 100644 --- a/include/kernel/elf.h +++ b/include/kernel/elf.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" diff --git a/include/kernel/exec.h b/include/kernel/exec.h index 964e3bb..304e03f 100644 --- a/include/kernel/exec.h +++ b/include/kernel/exec.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once namespace Exec diff --git a/include/kernel/mm.h b/include/kernel/mm.h index 3b59edb..e3de09a 100644 --- a/include/kernel/mm.h +++ b/include/kernel/mm.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" diff --git a/include/kernel/pmm.h b/include/kernel/pmm.h index d31473f..1fc3070 100644 --- a/include/kernel/pmm.h +++ b/include/kernel/pmm.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" #include "kernel/spinlock.h" diff --git a/include/kernel/proc.h b/include/kernel/proc.h index c740d53..e11dc47 100644 --- a/include/kernel/proc.h +++ b/include/kernel/proc.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" #include "kernel/proc_def.h" diff --git a/include/kernel/proc_def.h b/include/kernel/proc_def.h index c671f8d..50f27d7 100644 --- a/include/kernel/proc_def.h +++ b/include/kernel/proc_def.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" #include "common/fcntl.h" diff --git a/include/kernel/runqueue.h b/include/kernel/runqueue.h index ea6e4cc..14704ce 100644 --- a/include/kernel/runqueue.h +++ b/include/kernel/runqueue.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "kernel/spinlock.h" #include "kernel/proc_def.h" diff --git a/include/kernel/sbi.h b/include/kernel/sbi.h index ec262ee..a6be5b3 100644 --- a/include/kernel/sbi.h +++ b/include/kernel/sbi.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" diff --git a/include/kernel/slab.h b/include/kernel/slab.h index 650f8a9..bb7b699 100644 --- a/include/kernel/slab.h +++ b/include/kernel/slab.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" diff --git a/include/kernel/spinlock.h b/include/kernel/spinlock.h index 3102e68..1511199 100644 --- a/include/kernel/spinlock.h +++ b/include/kernel/spinlock.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" diff --git a/include/kernel/sync.h b/include/kernel/sync.h index 83d88c8..7f7c208 100644 --- a/include/kernel/sync.h +++ b/include/kernel/sync.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" #include "kernel/spinlock.h" diff --git a/include/kernel/syscall.h b/include/kernel/syscall.h index 348fd63..af4c474 100644 --- a/include/kernel/syscall.h +++ b/include/kernel/syscall.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn +*/ + #pragma once #define SYS_putc 1 diff --git a/include/kernel/timer.h b/include/kernel/timer.h index 193c47d..8b97bbe 100644 --- a/include/kernel/timer.h +++ b/include/kernel/timer.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #include "common/types.h" namespace Timer{ diff --git a/include/kernel/trap.h b/include/kernel/trap.h index 35b225c..ddc1d12 100644 --- a/include/kernel/trap.h +++ b/include/kernel/trap.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" diff --git a/include/lib/string.h b/include/lib/string.h index 309bf02..6a74942 100644 --- a/include/lib/string.h +++ b/include/lib/string.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #pragma once #include "common/types.h" diff --git a/include/ulib/assert.h b/include/ulib/assert.h index a083aff..014be9b 100644 --- a/include/ulib/assert.h +++ b/include/ulib/assert.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #ifndef _ASSERT_H #define _ASSERT_H diff --git a/include/ulib/cstdlib b/include/ulib/cstdlib index 69b9bb6..8b07338 100644 --- a/include/ulib/cstdlib +++ b/include/ulib/cstdlib @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #ifndef _CPP_CSTDLIB #define _CPP_CSTDLIB diff --git a/include/ulib/cstring b/include/ulib/cstring index bb8ab44..d65dc8d 100644 --- a/include/ulib/cstring +++ b/include/ulib/cstring @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #ifndef _CPP_CSTRING #define _CPP_CSTRING diff --git a/include/ulib/ctypes.h b/include/ulib/ctypes.h index 3e0bc22..1ec204e 100644 --- a/include/ulib/ctypes.h +++ b/include/ulib/ctypes.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #ifndef _CTYPE_H #define _CTYPE_H diff --git a/include/ulib/cxx.cc b/include/ulib/cxx.cc index d24de1e..f454fea 100644 --- a/include/ulib/cxx.cc +++ b/include/ulib/cxx.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #include "ulib/stdlib.h" diff --git a/include/ulib/errno.h b/include/ulib/errno.h index 03ff8fd..19da4d1 100644 --- a/include/ulib/errno.h +++ b/include/ulib/errno.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #ifndef _ERRNO_H #define _ERRNO_H diff --git a/include/ulib/iostream b/include/ulib/iostream index 83ed74c..b05f603 100644 --- a/include/ulib/iostream +++ b/include/ulib/iostream @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #ifndef _IOSTREAM #define _IOSTREAM diff --git a/include/ulib/limits.h b/include/ulib/limits.h index 030ffbb..b317e6a 100644 --- a/include/ulib/limits.h +++ b/include/ulib/limits.h @@ -1,3 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ #pragma once #define CHAR_BIT 8 diff --git a/include/ulib/stdio.h b/include/ulib/stdio.h index 2e19b87..a6df21d 100644 --- a/include/ulib/stdio.h +++ b/include/ulib/stdio.h @@ -1,3 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ /* Standard I/O Library for Lume OS */ #ifndef _STDIO_H diff --git a/include/ulib/stdlib.h b/include/ulib/stdlib.h index 7dc325e..6d8f75d 100644 --- a/include/ulib/stdlib.h +++ b/include/ulib/stdlib.h @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ + #ifndef _STDLIB_H #define _STDLIB_H diff --git a/include/ulib/string.h b/include/ulib/string.h index 6e87157..c7519ea 100644 --- a/include/ulib/string.h +++ b/include/ulib/string.h @@ -1,3 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ #ifndef _STRING_H #define _STRING_H diff --git a/include/ulib/types.h b/include/ulib/types.h index 2f15bf1..69ee233 100644 --- a/include/ulib/types.h +++ b/include/ulib/types.h @@ -1,3 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ #ifndef _ULIB_TYPES_H #define _ULIB_TYPES_H diff --git a/include/user/user.h b/include/user/user.h index 345f8be..0be036b 100644 --- a/include/user/user.h +++ b/include/user/user.h @@ -1,3 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2026 Richard QIn + */ #pragma once typedef unsigned long long uint64; |
