From 51a788fa9e13ead0c504a1369797f8b49d73634c Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Mon, 5 Jan 2026 01:31:55 +0800 Subject: Important: License changed from MIT to GPL. Rewrote the README based on the actual project. --- include/kernel/buf.h | 5 +++++ include/kernel/config.h | 5 +++++ include/kernel/cpu.h | 5 +++++ include/kernel/elf.h | 5 +++++ include/kernel/exec.h | 5 +++++ include/kernel/mm.h | 5 +++++ include/kernel/pmm.h | 5 +++++ include/kernel/proc.h | 5 +++++ include/kernel/proc_def.h | 5 +++++ include/kernel/runqueue.h | 5 +++++ include/kernel/sbi.h | 5 +++++ include/kernel/slab.h | 5 +++++ include/kernel/spinlock.h | 5 +++++ include/kernel/sync.h | 5 +++++ include/kernel/syscall.h | 5 +++++ include/kernel/timer.h | 5 +++++ include/kernel/trap.h | 5 +++++ 17 files changed, 85 insertions(+) (limited to 'include/kernel') 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" -- cgit v1.2.3