diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-06-12 13:58:42 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-06-12 13:58:42 +0300 |
| commit | 6c529c5c6c2d016d77b143171c5e27fbec0d2bfd (patch) | |
| tree | 5b01b803f3839665da04beae0f8e887db14aec17 /arch | |
| parent | 62ee0f7e1936a9eccb55fa360a1dce223819e0b8 (diff) | |
| download | kmi-6c529c5c6c2d016d77b143171c5e27fbec0d2bfd.tar.gz kmi-6c529c5c6c2d016d77b143171c5e27fbec0d2bfd.zip | |
add license texts
Diffstat (limited to 'arch')
31 files changed, 93 insertions, 0 deletions
diff --git a/arch/riscv64/conf/init-link.S b/arch/riscv64/conf/init-link.S index baabcc6..ac7f858 100644 --- a/arch/riscv64/conf/init-link.S +++ b/arch/riscv64/conf/init-link.S @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + OUTPUT_ARCH(riscv) ENTRY(_start) diff --git a/arch/riscv64/conf/kernel-link.S b/arch/riscv64/conf/kernel-link.S index c6a910a..5673a64 100644 --- a/arch/riscv64/conf/kernel-link.S +++ b/arch/riscv64/conf/kernel-link.S @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + OUTPUT_ARCH(riscv) ENTRY(main) diff --git a/arch/riscv64/conf/s.S b/arch/riscv64/conf/s.S index 97c66ff..516dc39 100644 --- a/arch/riscv64/conf/s.S +++ b/arch/riscv64/conf/s.S @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + .text .global _start _start: diff --git a/arch/riscv64/config.h b/arch/riscv64/config.h index e060555..0421341 100644 --- a/arch/riscv64/config.h +++ b/arch/riscv64/config.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_RISCV_CONFIG_H #define APOS_RISCV_CONFIG_H diff --git a/arch/riscv64/gen/asm-offsets.c b/arch/riscv64/gen/asm-offsets.c index 8c31561..8852d8f 100644 --- a/arch/riscv64/gen/asm-offsets.c +++ b/arch/riscv64/gen/asm-offsets.c @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + /** * @file asm-offsets.c * riscv64 file used to generate offsets to register slots in stack. Used by diff --git a/arch/riscv64/include/arch.h b/arch/riscv64/include/arch.h index 0930543..4d083e7 100644 --- a/arch/riscv64/include/arch.h +++ b/arch/riscv64/include/arch.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_RISCV_ARCH_H #define APOS_RISCV_ARCH_H /** diff --git a/arch/riscv64/include/cpu.h b/arch/riscv64/include/cpu.h index 5d496ea..73d3d15 100644 --- a/arch/riscv64/include/cpu.h +++ b/arch/riscv64/include/cpu.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_RISCV_CPU_H #define APOS_RISCV_CPU_H /** diff --git a/arch/riscv64/include/irq.h b/arch/riscv64/include/irq.h index 95ce62a..cba6b31 100644 --- a/arch/riscv64/include/irq.h +++ b/arch/riscv64/include/irq.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_RISCV_IRQ_H #define APOS_RISCV_IRQ_H /** diff --git a/arch/riscv64/include/lock.h b/arch/riscv64/include/lock.h index 15e5765..a85f72e 100644 --- a/arch/riscv64/include/lock.h +++ b/arch/riscv64/include/lock.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_RISCV_LOCK_H #define APOS_RISCV_LOCK_H /** diff --git a/arch/riscv64/include/pmem.h b/arch/riscv64/include/pmem.h index 56d22ca..1b1d55a 100644 --- a/arch/riscv64/include/pmem.h +++ b/arch/riscv64/include/pmem.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_RISCV_PMEM_H #define APOS_RISCV_PMEM_H /** diff --git a/arch/riscv64/include/proc.h b/arch/riscv64/include/proc.h index c0bf3af..8b531ce 100644 --- a/arch/riscv64/include/proc.h +++ b/arch/riscv64/include/proc.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_RISCV_PROC_H #define APOS_RISCV_PROC_H diff --git a/arch/riscv64/include/tcb.h b/arch/riscv64/include/tcb.h index 8cd32ed..ed2fd71 100644 --- a/arch/riscv64/include/tcb.h +++ b/arch/riscv64/include/tcb.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef ARCH_RISCV_TCB_H #define ARCH_RISCV_TCB_H diff --git a/arch/riscv64/include/timer.h b/arch/riscv64/include/timer.h index 2e468ba..6299662 100644 --- a/arch/riscv64/include/timer.h +++ b/arch/riscv64/include/timer.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_RISCV_TIMER_H #define APOS_RISCV_TIMER_H /** diff --git a/arch/riscv64/include/types.h b/arch/riscv64/include/types.h index de7a85f..2a6dcb5 100644 --- a/arch/riscv64/include/types.h +++ b/arch/riscv64/include/types.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_RISCV_TYPES_H #define APOS_RISCV_TYPES_H diff --git a/arch/riscv64/include/vmem.h b/arch/riscv64/include/vmem.h index 46c12b1..9945051 100644 --- a/arch/riscv64/include/vmem.h +++ b/arch/riscv64/include/vmem.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_RISCV_VMAP_H #define APOS_RISCV_VMAP_H diff --git a/arch/riscv64/init/init.c b/arch/riscv64/init/init.c index 4b20614..2c71ea4 100644 --- a/arch/riscv64/init/init.c +++ b/arch/riscv64/init/init.c @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + /** * @file init.c * riscv64 'bootstrap', move actual kernel into place and jump to virtual diff --git a/arch/riscv64/init/start.S b/arch/riscv64/init/start.S index f5ed2fe..646a4af 100644 --- a/arch/riscv64/init/start.S +++ b/arch/riscv64/init/start.S @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + .section .init.start .global _start /* Entry point to the kernel loader. */ diff --git a/arch/riscv64/kernel/cpu.c b/arch/riscv64/kernel/cpu.c index 966dfec..38cf262 100644 --- a/arch/riscv64/kernel/cpu.c +++ b/arch/riscv64/kernel/cpu.c @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + /** * @file cpu.c * riscv64 implementation of cpu handling. diff --git a/arch/riscv64/kernel/csr.h b/arch/riscv64/kernel/csr.h index 0af2dbe..321af3d 100644 --- a/arch/riscv64/kernel/csr.h +++ b/arch/riscv64/kernel/csr.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_CSR_H #define APOS_CSR_H diff --git a/arch/riscv64/kernel/entry.S b/arch/riscv64/kernel/entry.S index ee7b10f..9c7a54c 100644 --- a/arch/riscv64/kernel/entry.S +++ b/arch/riscv64/kernel/entry.S @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #include "../kernel/gen/asm-offsets.h" #include "../kernel/csr.h" diff --git a/arch/riscv64/kernel/irq.c b/arch/riscv64/kernel/irq.c index 6fdfe85..a2913a4 100644 --- a/arch/riscv64/kernel/irq.c +++ b/arch/riscv64/kernel/irq.c @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + /** * @file irq.c * riscv64 implementation of irq handling. diff --git a/arch/riscv64/kernel/main.c b/arch/riscv64/kernel/main.c index 9b321ae..3d36a22 100644 --- a/arch/riscv64/kernel/main.c +++ b/arch/riscv64/kernel/main.c @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + /** * @file main.c * riscv64 main diff --git a/arch/riscv64/kernel/pages.h b/arch/riscv64/kernel/pages.h index 887baca..b26732e 100644 --- a/arch/riscv64/kernel/pages.h +++ b/arch/riscv64/kernel/pages.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_RISCV_PAGES_H #define APOS_RISCV_PAGES_H diff --git a/arch/riscv64/kernel/pmem.c b/arch/riscv64/kernel/pmem.c index 0657244..e438131 100644 --- a/arch/riscv64/kernel/pmem.c +++ b/arch/riscv64/kernel/pmem.c @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + /** * @file pmem.c * riscv64 implementation of arch-specific physical memory handling diff --git a/arch/riscv64/kernel/power.c b/arch/riscv64/kernel/power.c index b79b7ba..9ea94d6 100644 --- a/arch/riscv64/kernel/power.c +++ b/arch/riscv64/kernel/power.c @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + /** * @file power.c * riscv64 implementation of arch-specific power handling. diff --git a/arch/riscv64/kernel/proc.c b/arch/riscv64/kernel/proc.c index efbf7df..ab833b2 100644 --- a/arch/riscv64/kernel/proc.c +++ b/arch/riscv64/kernel/proc.c @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + /** * @file proc.c * riscv64 implementation of arch-specific process handling. diff --git a/arch/riscv64/kernel/regs.h b/arch/riscv64/kernel/regs.h index fafc84d..f674f69 100644 --- a/arch/riscv64/kernel/regs.h +++ b/arch/riscv64/kernel/regs.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_RISCV_REGS_H #define APOS_RISCV_REGS_H diff --git a/arch/riscv64/kernel/sbi.c b/arch/riscv64/kernel/sbi.c index 5602dd9..a11fab9 100644 --- a/arch/riscv64/kernel/sbi.c +++ b/arch/riscv64/kernel/sbi.c @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + /** * @file sbi.c * riscv64 specific OpenSBI handling. diff --git a/arch/riscv64/kernel/sbi.h b/arch/riscv64/kernel/sbi.h index 36497f1..2add35f 100644 --- a/arch/riscv64/kernel/sbi.h +++ b/arch/riscv64/kernel/sbi.h @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + #ifndef APOS_RISCV_SBI_H #define APOS_RISCV_SBI_H diff --git a/arch/riscv64/kernel/timer.c b/arch/riscv64/kernel/timer.c index e529e55..015a230 100644 --- a/arch/riscv64/kernel/timer.c +++ b/arch/riscv64/kernel/timer.c @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + /** * @file timer.c * riscv64 implementation of arch-specific timers. diff --git a/arch/riscv64/kernel/vmem.c b/arch/riscv64/kernel/vmem.c index 1677103..381ef5c 100644 --- a/arch/riscv64/kernel/vmem.c +++ b/arch/riscv64/kernel/vmem.c @@ -1,3 +1,6 @@ +/* SPDX-License-Identifier: GPL-3.0-or-later */ +/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + /** * @file vmem.c * riscv64 implementation of arch-specific virtual memory handling. |
