aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv64/kernel')
-rw-r--r--arch/riscv64/kernel/cpu.c3
-rw-r--r--arch/riscv64/kernel/csr.h3
-rw-r--r--arch/riscv64/kernel/entry.S3
-rw-r--r--arch/riscv64/kernel/irq.c3
-rw-r--r--arch/riscv64/kernel/main.c3
-rw-r--r--arch/riscv64/kernel/pages.h3
-rw-r--r--arch/riscv64/kernel/pmem.c3
-rw-r--r--arch/riscv64/kernel/power.c3
-rw-r--r--arch/riscv64/kernel/proc.c3
-rw-r--r--arch/riscv64/kernel/regs.h3
-rw-r--r--arch/riscv64/kernel/sbi.c3
-rw-r--r--arch/riscv64/kernel/sbi.h3
-rw-r--r--arch/riscv64/kernel/timer.c3
-rw-r--r--arch/riscv64/kernel/vmem.c3
14 files changed, 42 insertions, 0 deletions
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.