aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-04-19 11:58:09 +0200
committerHimbeer <himbeer@disroot.org>2024-04-19 11:58:09 +0200
commitfcd3c6c71299b8261aa631b52c7b67a2d1ffdf8d (patch)
treec61b13c8518724b70c19b4515563ddb79d0b844e /src
parent26cfb621bc6eff820f9b38f193617651943895d8 (diff)
become REUSE compliant
Fixes #4.
Diffstat (limited to 'src')
-rw-r--r--src/fdt.zig4
-rw-r--r--src/instructions.zig4
-rw-r--r--src/main.zig4
-rw-r--r--src/paging.zig4
-rw-r--r--src/pci.zig4
-rw-r--r--src/sbi/base.zig4
-rw-r--r--src/sbi/debug_console.zig4
-rw-r--r--src/sbi/error.zig4
-rw-r--r--src/sbi/sys_reset.zig4
-rw-r--r--src/slice.zig4
-rw-r--r--src/u_boot.zig4
11 files changed, 44 insertions, 0 deletions
diff --git a/src/fdt.zig b/src/fdt.zig
index f7106a0..74c987b 100644
--- a/src/fdt.zig
+++ b/src/fdt.zig
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2024 Himbeer <himbeer@disroot.org>
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
const std = @import("std");
const slice = @import("slice.zig");
diff --git a/src/instructions.zig b/src/instructions.zig
index a129c41..0adc6d3 100644
--- a/src/instructions.zig
+++ b/src/instructions.zig
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2024 Himbeer <himbeer@disroot.org>
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
pub const SbiRet = struct {
err: isize,
val: isize,
diff --git a/src/main.zig b/src/main.zig
index 0c88cf5..dcef94c 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2024 Himbeer <himbeer@disroot.org>
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
const std = @import("std");
const debug_console = @import("sbi/debug_console.zig");
diff --git a/src/paging.zig b/src/paging.zig
index 98dba06..b4b0eb2 100644
--- a/src/paging.zig
+++ b/src/paging.zig
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2024 Himbeer <himbeer@disroot.org>
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
// This is an implementation of Sv39 paging, meaning that the virtual addresses
// are 39 bits wide. Sv32 and Sv48 are currently not implemented.
diff --git a/src/pci.zig b/src/pci.zig
index 34da6bc..78fb141 100644
--- a/src/pci.zig
+++ b/src/pci.zig
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2024 Himbeer <himbeer@disroot.org>
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
const std = @import("std");
const fdt = @import("fdt.zig");
diff --git a/src/sbi/base.zig b/src/sbi/base.zig
index b96add2..053d4dc 100644
--- a/src/sbi/base.zig
+++ b/src/sbi/base.zig
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2024 Himbeer <himbeer@disroot.org>
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
const instructions = @import("../instructions.zig");
const sbierr = @import("error.zig");
diff --git a/src/sbi/debug_console.zig b/src/sbi/debug_console.zig
index 18274e0..91bf24b 100644
--- a/src/sbi/debug_console.zig
+++ b/src/sbi/debug_console.zig
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2024 Himbeer <himbeer@disroot.org>
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
const std = @import("std");
const base = @import("base.zig");
diff --git a/src/sbi/error.zig b/src/sbi/error.zig
index ab66b78..5aaeb7d 100644
--- a/src/sbi/error.zig
+++ b/src/sbi/error.zig
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2024 Himbeer <himbeer@disroot.org>
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
pub const SbiError = error{
Success,
Failed,
diff --git a/src/sbi/sys_reset.zig b/src/sbi/sys_reset.zig
index a5dde8c..aa410e5 100644
--- a/src/sbi/sys_reset.zig
+++ b/src/sbi/sys_reset.zig
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2024 Himbeer <himbeer@disroot.org>
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
const base = @import("base.zig");
const instructions = @import("../instructions.zig");
const sbierr = @import("error.zig");
diff --git a/src/slice.zig b/src/slice.zig
index a0368fd..1e4a095 100644
--- a/src/slice.zig
+++ b/src/slice.zig
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2024 Himbeer <himbeer@disroot.org>
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
pub fn Filter(comptime T: type, comptime U: type) type {
return struct {
pub const Predicate = *const fn (T, U) bool;
diff --git a/src/u_boot.zig b/src/u_boot.zig
index a934e7a..c17704d 100644
--- a/src/u_boot.zig
+++ b/src/u_boot.zig
@@ -1,3 +1,7 @@
+// SPDX-FileCopyrightText: 2024 Himbeer <himbeer@disroot.org>
+//
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
const std = @import("std");
const fdt = @import("fdt.zig");