aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv64')
-rw-r--r--arch/riscv64/asm/asm-offsets.c2
-rw-r--r--arch/riscv64/asm/source.mk9
-rw-r--r--arch/riscv64/conf/init-link.S2
-rw-r--r--arch/riscv64/conf/init.c3
-rw-r--r--arch/riscv64/conf/kernel-link.S2
-rw-r--r--arch/riscv64/conf/s.S2
-rw-r--r--arch/riscv64/config.h2
-rw-r--r--arch/riscv64/include/arch.h2
-rw-r--r--arch/riscv64/include/cpu.h2
-rw-r--r--arch/riscv64/include/irq.h2
-rw-r--r--arch/riscv64/include/lock.h2
-rw-r--r--arch/riscv64/include/pmem.h2
-rw-r--r--arch/riscv64/include/proc.h2
-rw-r--r--arch/riscv64/include/tcb.h2
-rw-r--r--arch/riscv64/include/timer.h2
-rw-r--r--arch/riscv64/include/types.h2
-rw-r--r--arch/riscv64/include/vmem.h2
-rw-r--r--arch/riscv64/init/init.c2
-rw-r--r--arch/riscv64/init/start.S2
-rw-r--r--arch/riscv64/kernel/cpu.c2
-rw-r--r--arch/riscv64/kernel/csr.h2
-rw-r--r--arch/riscv64/kernel/entry.S2
-rw-r--r--arch/riscv64/kernel/irq.c2
-rw-r--r--arch/riscv64/kernel/main.c2
-rw-r--r--arch/riscv64/kernel/pages.h2
-rw-r--r--arch/riscv64/kernel/pmem.c2
-rw-r--r--arch/riscv64/kernel/power.c2
-rw-r--r--arch/riscv64/kernel/proc.c2
-rw-r--r--arch/riscv64/kernel/regs.h2
-rw-r--r--arch/riscv64/kernel/sbi.c2
-rw-r--r--arch/riscv64/kernel/sbi.h2
-rw-r--r--arch/riscv64/kernel/timer.c2
-rw-r--r--arch/riscv64/kernel/vmem.c2
33 files changed, 41 insertions, 33 deletions
diff --git a/arch/riscv64/asm/asm-offsets.c b/arch/riscv64/asm/asm-offsets.c
index 4bc1179..7a8ea01 100644
--- a/arch/riscv64/asm/asm-offsets.c
+++ b/arch/riscv64/asm/asm-offsets.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
/**
diff --git a/arch/riscv64/asm/source.mk b/arch/riscv64/asm/source.mk
index b9a64bc..86cd367 100644
--- a/arch/riscv64/asm/source.mk
+++ b/arch/riscv64/asm/source.mk
@@ -3,11 +3,16 @@ OFFSET_SOURCE := $(ARCH_SOURCE)/asm/asm-offsets.c
$(OFFSET_HEADER): $(OFFSET_SOURCE)
mkdir -p $$(dirname $(OFFSET_HEADER))
- echo "#ifndef KMI_ASM_OFFSETS_H" > $(OFFSET_HEADER)
+ echo "/* SPDX-License-Identifier: copyleft-next-0.3.1 */" >> $(OFFSET_HEADER)
+ echo "/* Copyright 2023 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */" >> $(OFFSET_HEADER)
+ echo "/* This file is autogenerated, see arch/riscv64/asm/source.mk. */" >> $(OFFSET_HEADER)
+ echo "/* As such, license and copyright info is sort of meaningless" >> $(OFFSET_HEADER)
+ echo " * but at least the build system doesn't crap out warnings */" >> $(OFFSET_HEADER)
+ echo "#ifndef KMI_ASM_OFFSETS_H" >> $(OFFSET_HEADER)
echo "#define KMI_ASM_OFFSETS_H" >> $(OFFSET_HEADER)
echo "/**" >> $(OFFSET_HEADER)
echo " * @file asm-offsets.h" >> $(OFFSET_HEADER)
- echo " * This comment is to shut up warnings." >> $(OFFSET_HEADER)
+ echo " * This comment is also to shut up warnings." >> $(OFFSET_HEADER)
echo " */" >> $(OFFSET_HEADER)
$(COMPILER) $(CFLAGS) $(INCLUDE_FLAGS) -S $(OFFSET_SOURCE) -o - |\
awk '($$1 == "#->") { print "#define " $$2 " " $$3 }' >> $(OFFSET_HEADER)
diff --git a/arch/riscv64/conf/init-link.S b/arch/riscv64/conf/init-link.S
index f827245..600304f 100644
--- a/arch/riscv64/conf/init-link.S
+++ b/arch/riscv64/conf/init-link.S
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
OUTPUT_ARCH(riscv)
diff --git a/arch/riscv64/conf/init.c b/arch/riscv64/conf/init.c
index 3a1a517..b2f4024 100644
--- a/arch/riscv64/conf/init.c
+++ b/arch/riscv64/conf/init.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
+/* Copyright 2023 Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* Header for silencing scripts/warn-undocumented
*
diff --git a/arch/riscv64/conf/kernel-link.S b/arch/riscv64/conf/kernel-link.S
index 2f000c9..181f49d 100644
--- a/arch/riscv64/conf/kernel-link.S
+++ b/arch/riscv64/conf/kernel-link.S
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
OUTPUT_ARCH(riscv)
diff --git a/arch/riscv64/conf/s.S b/arch/riscv64/conf/s.S
index 7dbaf4f..aff9b40 100644
--- a/arch/riscv64/conf/s.S
+++ b/arch/riscv64/conf/s.S
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
.text
diff --git a/arch/riscv64/config.h b/arch/riscv64/config.h
index 86f591a..1d4a6e0 100644
--- a/arch/riscv64/config.h
+++ b/arch/riscv64/config.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_RISCV_CONFIG_H
diff --git a/arch/riscv64/include/arch.h b/arch/riscv64/include/arch.h
index d30232c..c75377b 100644
--- a/arch/riscv64/include/arch.h
+++ b/arch/riscv64/include/arch.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_RISCV_ARCH_H
diff --git a/arch/riscv64/include/cpu.h b/arch/riscv64/include/cpu.h
index f8131ae..9c92349 100644
--- a/arch/riscv64/include/cpu.h
+++ b/arch/riscv64/include/cpu.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_RISCV_CPU_H
diff --git a/arch/riscv64/include/irq.h b/arch/riscv64/include/irq.h
index 574b6d2..248cec3 100644
--- a/arch/riscv64/include/irq.h
+++ b/arch/riscv64/include/irq.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_RISCV_IRQ_H
diff --git a/arch/riscv64/include/lock.h b/arch/riscv64/include/lock.h
index cbdad63..f66ec16 100644
--- a/arch/riscv64/include/lock.h
+++ b/arch/riscv64/include/lock.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_RISCV_LOCK_H
diff --git a/arch/riscv64/include/pmem.h b/arch/riscv64/include/pmem.h
index ae23ca5..7101757 100644
--- a/arch/riscv64/include/pmem.h
+++ b/arch/riscv64/include/pmem.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_RISCV_PMEM_H
diff --git a/arch/riscv64/include/proc.h b/arch/riscv64/include/proc.h
index dac57ed..9adae84 100644
--- a/arch/riscv64/include/proc.h
+++ b/arch/riscv64/include/proc.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_RISCV_PROC_H
diff --git a/arch/riscv64/include/tcb.h b/arch/riscv64/include/tcb.h
index f3e4cd0..33e8fad 100644
--- a/arch/riscv64/include/tcb.h
+++ b/arch/riscv64/include/tcb.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef ARCH_RISCV_TCB_H
diff --git a/arch/riscv64/include/timer.h b/arch/riscv64/include/timer.h
index 33e02f8..f02ffa4 100644
--- a/arch/riscv64/include/timer.h
+++ b/arch/riscv64/include/timer.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_RISCV_TIMER_H
diff --git a/arch/riscv64/include/types.h b/arch/riscv64/include/types.h
index bcf96c6..68d312d 100644
--- a/arch/riscv64/include/types.h
+++ b/arch/riscv64/include/types.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_RISCV_TYPES_H
diff --git a/arch/riscv64/include/vmem.h b/arch/riscv64/include/vmem.h
index 5defc5a..ed99843 100644
--- a/arch/riscv64/include/vmem.h
+++ b/arch/riscv64/include/vmem.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_RISCV_VMAP_H
diff --git a/arch/riscv64/init/init.c b/arch/riscv64/init/init.c
index a306b59..08462f6 100644
--- a/arch/riscv64/init/init.c
+++ b/arch/riscv64/init/init.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
/**
diff --git a/arch/riscv64/init/start.S b/arch/riscv64/init/start.S
index e5b6ced..b54f685 100644
--- a/arch/riscv64/init/start.S
+++ b/arch/riscv64/init/start.S
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
.section .init.start
diff --git a/arch/riscv64/kernel/cpu.c b/arch/riscv64/kernel/cpu.c
index 629e2db..44950ea 100644
--- a/arch/riscv64/kernel/cpu.c
+++ b/arch/riscv64/kernel/cpu.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
/**
diff --git a/arch/riscv64/kernel/csr.h b/arch/riscv64/kernel/csr.h
index 2dda0cb..9a23127 100644
--- a/arch/riscv64/kernel/csr.h
+++ b/arch/riscv64/kernel/csr.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_CSR_H
diff --git a/arch/riscv64/kernel/entry.S b/arch/riscv64/kernel/entry.S
index b4308b4..fe25854 100644
--- a/arch/riscv64/kernel/entry.S
+++ b/arch/riscv64/kernel/entry.S
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#include "../kernel/gen/asm-offsets.h"
diff --git a/arch/riscv64/kernel/irq.c b/arch/riscv64/kernel/irq.c
index 023653e..698a834 100644
--- a/arch/riscv64/kernel/irq.c
+++ b/arch/riscv64/kernel/irq.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
/**
diff --git a/arch/riscv64/kernel/main.c b/arch/riscv64/kernel/main.c
index 7e6fbf6..01b8957 100644
--- a/arch/riscv64/kernel/main.c
+++ b/arch/riscv64/kernel/main.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
/**
diff --git a/arch/riscv64/kernel/pages.h b/arch/riscv64/kernel/pages.h
index 28478a7..0b03199 100644
--- a/arch/riscv64/kernel/pages.h
+++ b/arch/riscv64/kernel/pages.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_RISCV_PAGES_H
diff --git a/arch/riscv64/kernel/pmem.c b/arch/riscv64/kernel/pmem.c
index 3076dc5..945cb38 100644
--- a/arch/riscv64/kernel/pmem.c
+++ b/arch/riscv64/kernel/pmem.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
/**
diff --git a/arch/riscv64/kernel/power.c b/arch/riscv64/kernel/power.c
index 43d1b4d..49fc9c5 100644
--- a/arch/riscv64/kernel/power.c
+++ b/arch/riscv64/kernel/power.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
/**
diff --git a/arch/riscv64/kernel/proc.c b/arch/riscv64/kernel/proc.c
index 9b28fc3..2cc3f36 100644
--- a/arch/riscv64/kernel/proc.c
+++ b/arch/riscv64/kernel/proc.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
/**
diff --git a/arch/riscv64/kernel/regs.h b/arch/riscv64/kernel/regs.h
index da62a74..cc9ef1d 100644
--- a/arch/riscv64/kernel/regs.h
+++ b/arch/riscv64/kernel/regs.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_RISCV_REGS_H
diff --git a/arch/riscv64/kernel/sbi.c b/arch/riscv64/kernel/sbi.c
index a11fab9..1a1f54a 100644
--- a/arch/riscv64/kernel/sbi.c
+++ b/arch/riscv64/kernel/sbi.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
/**
diff --git a/arch/riscv64/kernel/sbi.h b/arch/riscv64/kernel/sbi.h
index 8484d7c..9b3ffbc 100644
--- a/arch/riscv64/kernel/sbi.h
+++ b/arch/riscv64/kernel/sbi.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
#ifndef KMI_RISCV_SBI_H
diff --git a/arch/riscv64/kernel/timer.c b/arch/riscv64/kernel/timer.c
index 015a230..c7752f8 100644
--- a/arch/riscv64/kernel/timer.c
+++ b/arch/riscv64/kernel/timer.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
/**
diff --git a/arch/riscv64/kernel/vmem.c b/arch/riscv64/kernel/vmem.c
index 72e069b..6fd7069 100644
--- a/arch/riscv64/kernel/vmem.c
+++ b/arch/riscv64/kernel/vmem.c
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* SPDX-License-Identifier: copyleft-next-0.3.1 */
/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
/**