From 0fa4f3bc4eaeaa0f1bf290277e144cace12a9245 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Tue, 29 Dec 2020 16:17:38 +0200 Subject: [PATCH] [sq] Fix copyrights --- nucleus/src/api.rs | 5 +++++ nucleus/src/arch/aarch64/boot.rs | 2 +- nucleus/src/arch/aarch64/caps/asid_control_cap.rs | 1 + nucleus/src/arch/aarch64/caps/asid_pool_cap.rs | 1 + nucleus/src/arch/aarch64/caps/frame.rs | 1 + nucleus/src/arch/aarch64/caps/mod.rs | 1 + nucleus/src/arch/aarch64/caps/page_directory_cap.rs | 1 + nucleus/src/arch/aarch64/caps/page_global_directory_cap.rs | 1 + nucleus/src/arch/aarch64/caps/page_table_cap.rs | 1 + nucleus/src/arch/aarch64/caps/page_upper_directory_cap.rs | 1 + nucleus/src/arch/aarch64/jtag.rs | 5 +++++ nucleus/src/arch/aarch64/memory/addr/mod.rs | 5 +++++ nucleus/src/arch/aarch64/memory/cache.rs | 1 + nucleus/src/arch/aarch64/objects/asid_control.rs | 1 + nucleus/src/arch/aarch64/objects/asid_pool.rs | 1 + nucleus/src/arch/aarch64/objects/mod.rs | 1 + nucleus/src/arch/aarch64/objects/page.rs | 1 + nucleus/src/arch/aarch64/objects/page_directory.rs | 1 + nucleus/src/arch/aarch64/objects/page_global_directory.rs | 1 + nucleus/src/arch/aarch64/objects/page_table.rs | 1 + nucleus/src/arch/aarch64/objects/page_upper_directory.rs | 1 + nucleus/src/caps/capnode_cap.rs | 1 + nucleus/src/caps/captable.rs | 1 + nucleus/src/caps/derivation_tree.rs | 1 + nucleus/src/caps/domain_cap.rs | 1 + nucleus/src/caps/endpoint_cap.rs | 1 + nucleus/src/caps/irq_control_cap.rs | 1 + nucleus/src/caps/irq_handler_cap.rs | 1 + nucleus/src/caps/mod.rs | 1 + nucleus/src/caps/notification_cap.rs | 1 + nucleus/src/caps/null_cap.rs | 1 + nucleus/src/caps/reply_cap.rs | 1 + nucleus/src/caps/resume_cap.rs | 1 + nucleus/src/caps/thread_cap.rs | 1 + nucleus/src/caps/untyped_cap.rs | 1 + nucleus/src/caps/zombie_cap.rs | 1 + nucleus/src/devices/console.rs | 1 + nucleus/src/devices/mod.rs | 2 ++ nucleus/src/objects/capnode.rs | 1 + nucleus/src/objects/endpoint.rs | 1 + nucleus/src/objects/irq_control.rs | 1 + nucleus/src/objects/irq_handler.rs | 1 + nucleus/src/objects/kernel_object.rs | 1 + nucleus/src/objects/mod.rs | 1 + nucleus/src/objects/notification.rs | 1 + nucleus/src/objects/thread.rs | 1 + nucleus/src/objects/untyped.rs | 1 + nucleus/src/panic.rs | 5 +++++ nucleus/src/platform/mod.rs | 1 + nucleus/src/platform/rpi3/display.rs | 1 + nucleus/src/platform/rpi3/fb.rs | 5 +++++ nucleus/src/platform/rpi3/vc.rs | 1 + nucleus/src/qemu.rs | 1 + nucleus/src/sync.rs | 1 + nucleus/src/tests.rs | 2 ++ 55 files changed, 77 insertions(+), 1 deletion(-) diff --git a/nucleus/src/api.rs b/nucleus/src/api.rs index fa3d3c2..b8ef8ed 100644 --- a/nucleus/src/api.rs +++ b/nucleus/src/api.rs @@ -1,3 +1,8 @@ +/* + * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker + */ + // Syscalls (kernel API) trait API { fn send(cap: Cap, msg_info: MessageInfo); diff --git a/nucleus/src/arch/aarch64/boot.rs b/nucleus/src/arch/aarch64/boot.rs index c99830b..cb86f26 100644 --- a/nucleus/src/arch/aarch64/boot.rs +++ b/nucleus/src/arch/aarch64/boot.rs @@ -1,8 +1,8 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker * * Based on ideas from Jorge Aparicio, Andre Richter, Phil Oppenheimer, Sergio Benitez. - * Copyright (c) Berkus Decker */ //! Low-level boot of the Raspberry's processor diff --git a/nucleus/src/arch/aarch64/caps/asid_control_cap.rs b/nucleus/src/arch/aarch64/caps/asid_control_cap.rs index 514d034..38b3927 100644 --- a/nucleus/src/arch/aarch64/caps/asid_control_cap.rs +++ b/nucleus/src/arch/aarch64/caps/asid_control_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/arch/aarch64/caps/asid_pool_cap.rs b/nucleus/src/arch/aarch64/caps/asid_pool_cap.rs index 2e77133..a188941 100644 --- a/nucleus/src/arch/aarch64/caps/asid_pool_cap.rs +++ b/nucleus/src/arch/aarch64/caps/asid_pool_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/arch/aarch64/caps/frame.rs b/nucleus/src/arch/aarch64/caps/frame.rs index 5d5f90e..9a8f355 100644 --- a/nucleus/src/arch/aarch64/caps/frame.rs +++ b/nucleus/src/arch/aarch64/caps/frame.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/arch/aarch64/caps/mod.rs b/nucleus/src/arch/aarch64/caps/mod.rs index 1e0d9f4..652ed78 100644 --- a/nucleus/src/arch/aarch64/caps/mod.rs +++ b/nucleus/src/arch/aarch64/caps/mod.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ //! AArch64-specific capabilities. diff --git a/nucleus/src/arch/aarch64/caps/page_directory_cap.rs b/nucleus/src/arch/aarch64/caps/page_directory_cap.rs index 3566407..e3ad7bf 100644 --- a/nucleus/src/arch/aarch64/caps/page_directory_cap.rs +++ b/nucleus/src/arch/aarch64/caps/page_directory_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/arch/aarch64/caps/page_global_directory_cap.rs b/nucleus/src/arch/aarch64/caps/page_global_directory_cap.rs index 60cca3c..74732fd 100644 --- a/nucleus/src/arch/aarch64/caps/page_global_directory_cap.rs +++ b/nucleus/src/arch/aarch64/caps/page_global_directory_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/arch/aarch64/caps/page_table_cap.rs b/nucleus/src/arch/aarch64/caps/page_table_cap.rs index ae93090..56bcc80 100644 --- a/nucleus/src/arch/aarch64/caps/page_table_cap.rs +++ b/nucleus/src/arch/aarch64/caps/page_table_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/arch/aarch64/caps/page_upper_directory_cap.rs b/nucleus/src/arch/aarch64/caps/page_upper_directory_cap.rs index b4f2cca..85375ca 100644 --- a/nucleus/src/arch/aarch64/caps/page_upper_directory_cap.rs +++ b/nucleus/src/arch/aarch64/caps/page_upper_directory_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/arch/aarch64/jtag.rs b/nucleus/src/arch/aarch64/jtag.rs index d264a86..b14d1db 100644 --- a/nucleus/src/arch/aarch64/jtag.rs +++ b/nucleus/src/arch/aarch64/jtag.rs @@ -1,3 +1,8 @@ +/* + * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker + */ + //! JTAG helper functions. use cortex_a::asm; diff --git a/nucleus/src/arch/aarch64/memory/addr/mod.rs b/nucleus/src/arch/aarch64/memory/addr/mod.rs index e8f669e..bfd3b94 100644 --- a/nucleus/src/arch/aarch64/memory/addr/mod.rs +++ b/nucleus/src/arch/aarch64/memory/addr/mod.rs @@ -1,3 +1,8 @@ +/* + * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker + */ + mod phys_addr; mod virt_addr; diff --git a/nucleus/src/arch/aarch64/memory/cache.rs b/nucleus/src/arch/aarch64/memory/cache.rs index 104aeaa..6c1bcb1 100644 --- a/nucleus/src/arch/aarch64/memory/cache.rs +++ b/nucleus/src/arch/aarch64/memory/cache.rs @@ -1,3 +1,4 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ diff --git a/nucleus/src/arch/aarch64/objects/asid_control.rs b/nucleus/src/arch/aarch64/objects/asid_control.rs index 305d2f4..d2fb341 100644 --- a/nucleus/src/arch/aarch64/objects/asid_control.rs +++ b/nucleus/src/arch/aarch64/objects/asid_control.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ // implemented for x86 and arm diff --git a/nucleus/src/arch/aarch64/objects/asid_pool.rs b/nucleus/src/arch/aarch64/objects/asid_pool.rs index 690a17c..68835ab 100644 --- a/nucleus/src/arch/aarch64/objects/asid_pool.rs +++ b/nucleus/src/arch/aarch64/objects/asid_pool.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ // implemented for x86 and arm diff --git a/nucleus/src/arch/aarch64/objects/mod.rs b/nucleus/src/arch/aarch64/objects/mod.rs index 9fd62ce..439d862 100644 --- a/nucleus/src/arch/aarch64/objects/mod.rs +++ b/nucleus/src/arch/aarch64/objects/mod.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ mod asid_control; diff --git a/nucleus/src/arch/aarch64/objects/page.rs b/nucleus/src/arch/aarch64/objects/page.rs index 9c878c4..b15e302 100644 --- a/nucleus/src/arch/aarch64/objects/page.rs +++ b/nucleus/src/arch/aarch64/objects/page.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ struct Page {} diff --git a/nucleus/src/arch/aarch64/objects/page_directory.rs b/nucleus/src/arch/aarch64/objects/page_directory.rs index e916a9e..2896921 100644 --- a/nucleus/src/arch/aarch64/objects/page_directory.rs +++ b/nucleus/src/arch/aarch64/objects/page_directory.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ // probably just impl some Mapping trait for these "structs"? diff --git a/nucleus/src/arch/aarch64/objects/page_global_directory.rs b/nucleus/src/arch/aarch64/objects/page_global_directory.rs index ed87933..f1775be 100644 --- a/nucleus/src/arch/aarch64/objects/page_global_directory.rs +++ b/nucleus/src/arch/aarch64/objects/page_global_directory.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ // L0 table diff --git a/nucleus/src/arch/aarch64/objects/page_table.rs b/nucleus/src/arch/aarch64/objects/page_table.rs index 947d80b..814edcd 100644 --- a/nucleus/src/arch/aarch64/objects/page_table.rs +++ b/nucleus/src/arch/aarch64/objects/page_table.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ // L3 tables diff --git a/nucleus/src/arch/aarch64/objects/page_upper_directory.rs b/nucleus/src/arch/aarch64/objects/page_upper_directory.rs index 18a38f4..f9203bf 100644 --- a/nucleus/src/arch/aarch64/objects/page_upper_directory.rs +++ b/nucleus/src/arch/aarch64/objects/page_upper_directory.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ // L1 table diff --git a/nucleus/src/caps/capnode_cap.rs b/nucleus/src/caps/capnode_cap.rs index aadf756..4252717 100644 --- a/nucleus/src/caps/capnode_cap.rs +++ b/nucleus/src/caps/capnode_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/caps/captable.rs b/nucleus/src/caps/captable.rs index 09f9faa..f6ca154 100644 --- a/nucleus/src/caps/captable.rs +++ b/nucleus/src/caps/captable.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use crate::caps::Capability; diff --git a/nucleus/src/caps/derivation_tree.rs b/nucleus/src/caps/derivation_tree.rs index c1040db..9c0b958 100644 --- a/nucleus/src/caps/derivation_tree.rs +++ b/nucleus/src/caps/derivation_tree.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ //! DerivationTree nodes record the tree of inheritance for caps: diff --git a/nucleus/src/caps/domain_cap.rs b/nucleus/src/caps/domain_cap.rs index 0eb5025..11b00a0 100644 --- a/nucleus/src/caps/domain_cap.rs +++ b/nucleus/src/caps/domain_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/caps/endpoint_cap.rs b/nucleus/src/caps/endpoint_cap.rs index 3335a8e..89d7670 100644 --- a/nucleus/src/caps/endpoint_cap.rs +++ b/nucleus/src/caps/endpoint_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/caps/irq_control_cap.rs b/nucleus/src/caps/irq_control_cap.rs index 3f71a3b..3fe8e9b 100644 --- a/nucleus/src/caps/irq_control_cap.rs +++ b/nucleus/src/caps/irq_control_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/caps/irq_handler_cap.rs b/nucleus/src/caps/irq_handler_cap.rs index b267289..846927f 100644 --- a/nucleus/src/caps/irq_handler_cap.rs +++ b/nucleus/src/caps/irq_handler_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/caps/mod.rs b/nucleus/src/caps/mod.rs index fa4cb37..204dd2f 100644 --- a/nucleus/src/caps/mod.rs +++ b/nucleus/src/caps/mod.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ //! Implementation of system capabilities. diff --git a/nucleus/src/caps/notification_cap.rs b/nucleus/src/caps/notification_cap.rs index ce4cacc..0082e35 100644 --- a/nucleus/src/caps/notification_cap.rs +++ b/nucleus/src/caps/notification_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ //! @todo replace with Event diff --git a/nucleus/src/caps/null_cap.rs b/nucleus/src/caps/null_cap.rs index 77b52e1..52bf645 100644 --- a/nucleus/src/caps/null_cap.rs +++ b/nucleus/src/caps/null_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/caps/reply_cap.rs b/nucleus/src/caps/reply_cap.rs index 4524ecc..6b4207b 100644 --- a/nucleus/src/caps/reply_cap.rs +++ b/nucleus/src/caps/reply_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/caps/resume_cap.rs b/nucleus/src/caps/resume_cap.rs index 13d937e..55ec760 100644 --- a/nucleus/src/caps/resume_cap.rs +++ b/nucleus/src/caps/resume_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/caps/thread_cap.rs b/nucleus/src/caps/thread_cap.rs index eddad9e..4fa7437 100644 --- a/nucleus/src/caps/thread_cap.rs +++ b/nucleus/src/caps/thread_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/caps/untyped_cap.rs b/nucleus/src/caps/untyped_cap.rs index 033cfe9..05062e0 100644 --- a/nucleus/src/caps/untyped_cap.rs +++ b/nucleus/src/caps/untyped_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/caps/zombie_cap.rs b/nucleus/src/caps/zombie_cap.rs index a62b214..1a6fd3c 100644 --- a/nucleus/src/caps/zombie_cap.rs +++ b/nucleus/src/caps/zombie_cap.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ use { diff --git a/nucleus/src/devices/console.rs b/nucleus/src/devices/console.rs index 87095d7..9075aa5 100644 --- a/nucleus/src/devices/console.rs +++ b/nucleus/src/devices/console.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ #![allow(dead_code)] diff --git a/nucleus/src/devices/mod.rs b/nucleus/src/devices/mod.rs index a361cc4..dac2eaf 100644 --- a/nucleus/src/devices/mod.rs +++ b/nucleus/src/devices/mod.rs @@ -1,6 +1,8 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ + pub mod console; pub use console::{Console, ConsoleOps}; diff --git a/nucleus/src/objects/capnode.rs b/nucleus/src/objects/capnode.rs index 1c98a93..8e3a853 100644 --- a/nucleus/src/objects/capnode.rs +++ b/nucleus/src/objects/capnode.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ struct CapNode {} diff --git a/nucleus/src/objects/endpoint.rs b/nucleus/src/objects/endpoint.rs index c3615b7..eaea836 100644 --- a/nucleus/src/objects/endpoint.rs +++ b/nucleus/src/objects/endpoint.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ register_bitfields! { diff --git a/nucleus/src/objects/irq_control.rs b/nucleus/src/objects/irq_control.rs index 2d67f52..13d186c 100644 --- a/nucleus/src/objects/irq_control.rs +++ b/nucleus/src/objects/irq_control.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ trait IRQControl { diff --git a/nucleus/src/objects/irq_handler.rs b/nucleus/src/objects/irq_handler.rs index 2e75a58..0b7cfc9 100644 --- a/nucleus/src/objects/irq_handler.rs +++ b/nucleus/src/objects/irq_handler.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ trait IRQHandler { diff --git a/nucleus/src/objects/kernel_object.rs b/nucleus/src/objects/kernel_object.rs index b1cab59..25f00a5 100644 --- a/nucleus/src/objects/kernel_object.rs +++ b/nucleus/src/objects/kernel_object.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ pub(crate) trait KernelObject { diff --git a/nucleus/src/objects/mod.rs b/nucleus/src/objects/mod.rs index f7d4385..7b766bf 100644 --- a/nucleus/src/objects/mod.rs +++ b/nucleus/src/objects/mod.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ // The basic services Vesper provides are as follows: diff --git a/nucleus/src/objects/notification.rs b/nucleus/src/objects/notification.rs index 89a539f..f6fad4d 100644 --- a/nucleus/src/objects/notification.rs +++ b/nucleus/src/objects/notification.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ // @todo replace with Event diff --git a/nucleus/src/objects/thread.rs b/nucleus/src/objects/thread.rs index 720889e..111bcd3 100644 --- a/nucleus/src/objects/thread.rs +++ b/nucleus/src/objects/thread.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ struct Thread {} diff --git a/nucleus/src/objects/untyped.rs b/nucleus/src/objects/untyped.rs index cab70c4..b3b0569 100644 --- a/nucleus/src/objects/untyped.rs +++ b/nucleus/src/objects/untyped.rs @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker */ pub(crate) struct Untyped {} diff --git a/nucleus/src/panic.rs b/nucleus/src/panic.rs index 0dce614..846dbeb 100644 --- a/nucleus/src/panic.rs +++ b/nucleus/src/panic.rs @@ -1,3 +1,8 @@ +/* + * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker + */ + #[cfg(not(test))] #[panic_handler] fn panicked(info: &core::panic::PanicInfo) -> ! { diff --git a/nucleus/src/platform/mod.rs b/nucleus/src/platform/mod.rs index 5926078..1ef5e10 100644 --- a/nucleus/src/platform/mod.rs +++ b/nucleus/src/platform/mod.rs @@ -2,4 +2,5 @@ * SPDX-License-Identifier: BlueOak-1.0.0 * Copyright (c) Berkus Decker */ + pub mod rpi3; diff --git a/nucleus/src/platform/rpi3/display.rs b/nucleus/src/platform/rpi3/display.rs index 1749f2a..7c4fea6 100644 --- a/nucleus/src/platform/rpi3/display.rs +++ b/nucleus/src/platform/rpi3/display.rs @@ -2,6 +2,7 @@ * SPDX-License-Identifier: BlueOak-1.0.0 * Copyright (c) Berkus Decker */ + use snafu::Snafu; /* Character cells are 8x8 */ diff --git a/nucleus/src/platform/rpi3/fb.rs b/nucleus/src/platform/rpi3/fb.rs index e09fbd8..5e2ebab 100644 --- a/nucleus/src/platform/rpi3/fb.rs +++ b/nucleus/src/platform/rpi3/fb.rs @@ -1,3 +1,8 @@ +/* + * SPDX-License-Identifier: BlueOak-1.0.0 + * Copyright (c) Berkus Decker + */ + use { super::{ mailbox::{channel, read, write, MailboxOps, RegisterBlock, Result}, diff --git a/nucleus/src/platform/rpi3/vc.rs b/nucleus/src/platform/rpi3/vc.rs index e545fb2..5844d83 100644 --- a/nucleus/src/platform/rpi3/vc.rs +++ b/nucleus/src/platform/rpi3/vc.rs @@ -2,6 +2,7 @@ * SPDX-License-Identifier: BlueOak-1.0.0 * Copyright (c) Berkus Decker */ + use { super::{ display::{Display, PixelOrder, CHARSIZE_X, CHARSIZE_Y}, diff --git a/nucleus/src/qemu.rs b/nucleus/src/qemu.rs index 571c19a..11bd7be 100644 --- a/nucleus/src/qemu.rs +++ b/nucleus/src/qemu.rs @@ -2,6 +2,7 @@ * SPDX-License-Identifier: BlueOak-1.0.0 * Copyright (c) Berkus Decker */ + pub mod semihosting { pub fn exit_success() -> ! { use qemu_exit::QEMUExit; diff --git a/nucleus/src/sync.rs b/nucleus/src/sync.rs index 4dcee83..169b284 100644 --- a/nucleus/src/sync.rs +++ b/nucleus/src/sync.rs @@ -1,6 +1,7 @@ /* * SPDX-License-Identifier: MIT OR BlueOak-1.0.0 * Copyright (c) 2019 Andre Richter + * Copyright (c) Berkus Decker * Original code distributed under MIT, additional changes are under BlueOak-1.0.0 */ diff --git a/nucleus/src/tests.rs b/nucleus/src/tests.rs index 7fe9835..46c3f7c 100644 --- a/nucleus/src/tests.rs +++ b/nucleus/src/tests.rs @@ -2,9 +2,11 @@ * SPDX-License-Identifier: BlueOak-1.0.0 * Copyright (c) Berkus Decker */ + //============================================================================ // Testing environment //============================================================================ + use crate::{print, println, qemu}; pub trait TestFn {