aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/bits.c3
-rw-r--r--common/debug.c3
-rw-r--r--common/dmem.c3
-rw-r--r--common/elf.c3
-rw-r--r--common/fdt.c3
-rw-r--r--common/initrd.c3
-rw-r--r--common/main.c3
-rw-r--r--common/mem.c3
-rw-r--r--common/mem_nodes.c3
-rw-r--r--common/mem_regions.c3
-rw-r--r--common/nodes.c3
-rw-r--r--common/pmem.c3
-rw-r--r--common/proc.c3
-rw-r--r--common/sp_tree.c3
-rw-r--r--common/string.c3
-rw-r--r--common/tcb.c3
-rw-r--r--common/timer.c3
-rw-r--r--common/uapi/conf.c3
-rw-r--r--common/uapi/dispatch.c3
-rw-r--r--common/uapi/ipc.c3
-rw-r--r--common/uapi/mem.c3
-rw-r--r--common/uapi/proc.c3
-rw-r--r--common/uapi/timers.c3
-rw-r--r--common/vmem.c3
24 files changed, 72 insertions, 0 deletions
diff --git a/common/bits.c b/common/bits.c
index 92e7be2..2efbe2f 100644
--- a/common/bits.c
+++ b/common/bits.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file bits.c
* Bit manipulation helper implementations, currently just byte swaps.
diff --git a/common/debug.c b/common/debug.c
index 924c0dd..1012887 100644
--- a/common/debug.c
+++ b/common/debug.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file debug.c
* Handle printing to serial. Note that the serial drivers are only included
diff --git a/common/dmem.c b/common/dmem.c
index 3a50768..88b06fd 100644
--- a/common/dmem.c
+++ b/common/dmem.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file dmem.c
* Handle device memory, i.e. anything outside the physical RAM.
diff --git a/common/elf.c b/common/elf.c
index 97f164d..977906f 100644
--- a/common/elf.c
+++ b/common/elf.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file elf.c
* Handle elf executables, set up requested memory mappings etc.
diff --git a/common/fdt.c b/common/fdt.c
index a6368dd..3fc3010 100644
--- a/common/fdt.c
+++ b/common/fdt.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file fdt.c
* Helper functions for handling the global FDT.
diff --git a/common/initrd.c b/common/initrd.c
index 2a254f1..835ccf1 100644
--- a/common/initrd.c
+++ b/common/initrd.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file initrd.c
* Handle initrd, implement cpio with newc format.
diff --git a/common/main.c b/common/main.c
index a608266..fa5434c 100644
--- a/common/main.c
+++ b/common/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
* Entry point for actual kernel setup.
diff --git a/common/mem.c b/common/mem.c
index 51a51af..1f893d4 100644
--- a/common/mem.c
+++ b/common/mem.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file mem.c
* Generic memory handling, used both by physical and virtual memory.
diff --git a/common/mem_nodes.c b/common/mem_nodes.c
index 927634b..ffa089f 100644
--- a/common/mem_nodes.c
+++ b/common/mem_nodes.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file mem_nodes.c
* Memory node wrapper around the node subsystem, used by \ref
diff --git a/common/mem_regions.c b/common/mem_regions.c
index 11a167b..3729caf 100644
--- a/common/mem_regions.c
+++ b/common/mem_regions.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file mem_regions.c
* Memory region handling, used by both device memory and user virtual memory
diff --git a/common/nodes.c b/common/nodes.c
index c54bbe8..ce33547 100644
--- a/common/nodes.c
+++ b/common/nodes.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file nodes.c
* The node subsystem. Each client has to initialize their own node system,
diff --git a/common/pmem.c b/common/pmem.c
index fdde12a..2b2fb00 100644
--- a/common/pmem.c
+++ b/common/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
* Physical memory subsystem. Allocates physical memory pages, with support for
diff --git a/common/proc.c b/common/proc.c
index 6de22c1..b2caa54 100644
--- a/common/proc.c
+++ b/common/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
* Process handling, might be merged into \ref common/tcb.c.
diff --git a/common/sp_tree.c b/common/sp_tree.c
index da2785b..dbd0e8b 100644
--- a/common/sp_tree.c
+++ b/common/sp_tree.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file sp_tree.c
* Implementation of my sp_trees. An sp_tree is a mix of rb-trees and avl-trees,
diff --git a/common/string.c b/common/string.c
index 156f7f8..c005c9f 100644
--- a/common/string.c
+++ b/common/string.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file string.c
* Implementations of some string.h stdlib functions.
diff --git a/common/tcb.c b/common/tcb.c
index a31ac87..c8260ff 100644
--- a/common/tcb.c
+++ b/common/tcb.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file tcb.c
* Thread control block handling implementation.
diff --git a/common/timer.c b/common/timer.c
index f008851..aaaf62e 100644
--- a/common/timer.c
+++ b/common/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
* Timer handling implementation. Currently we only expect an architecture to
diff --git a/common/uapi/conf.c b/common/uapi/conf.c
index 26eb9cc..47a7a0f 100644
--- a/common/uapi/conf.c
+++ b/common/uapi/conf.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file conf.c
* Runtime configuration sycall implementations.
diff --git a/common/uapi/dispatch.c b/common/uapi/dispatch.c
index 848fc3f..52cf8d9 100644
--- a/common/uapi/dispatch.c
+++ b/common/uapi/dispatch.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file dispatch.c
* Syscall dispatch.
diff --git a/common/uapi/ipc.c b/common/uapi/ipc.c
index c163c93..8584673 100644
--- a/common/uapi/ipc.c
+++ b/common/uapi/ipc.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file ipc.c
* Interprocess communication syscall implementations.
diff --git a/common/uapi/mem.c b/common/uapi/mem.c
index 45480a9..374e722 100644
--- a/common/uapi/mem.c
+++ b/common/uapi/mem.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file mem.c
* Memory handling syscall implementations.
diff --git a/common/uapi/proc.c b/common/uapi/proc.c
index b2fc4f0..79d243f 100644
--- a/common/uapi/proc.c
+++ b/common/uapi/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
* Process/thread handling syscall implementations.
diff --git a/common/uapi/timers.c b/common/uapi/timers.c
index 27928a3..bc3ef59 100644
--- a/common/uapi/timers.c
+++ b/common/uapi/timers.c
@@ -1,3 +1,6 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+/* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */
+
/**
* @file timers.c
* Timer syscall implementations.
diff --git a/common/vmem.c b/common/vmem.c
index 9761e3e..eb88552 100644
--- a/common/vmem.c
+++ b/common/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
* Virtual memory handling, mainly userspace virtual memory.