Skip to content

Commit

Permalink
crates/sel4: Add licensing information
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Oct 24, 2023
1 parent 5bf1a0a commit fdf2b5d
Show file tree
Hide file tree
Showing 56 changed files with 392 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/arch/aarch32/fault.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use crate::{fault::UnknownSyscall, Word};

impl UnknownSyscall {
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/arch/aarch32/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

mod fault;
mod object;
mod user_context;
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/arch/aarch32/object.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use core::ffi::c_uint;

use crate::{const_helpers::u32_into_usize, sys};
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/arch/aarch32/user_context.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use crate::{newtype_methods, sys, Word};

/// Corresponds to `seL4_UserContext`.
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/arch/aarch32/vcpu_reg.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use sel4_config::sel4_cfg_enum;

use crate::sys;
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/arch/aarch64/fault.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use crate::{fault::UnknownSyscall, Word};

impl UnknownSyscall {
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/arch/aarch64/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

mod fault;
mod object;
mod user_context;
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/arch/aarch64/object.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use core::ffi::c_uint;

use crate::{const_helpers::u32_into_usize, sys};
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/arch/aarch64/user_context.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use crate::{newtype_methods, sys, Word};

/// Corresponds to `seL4_UserContext`.
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/arch/aarch64/vcpu_reg.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use sel4_config::sel4_cfg_enum;

use crate::sys;
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/arch/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use sel4_config::sel4_cfg;

#[sel4_cfg(ARCH_AARCH64)]
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/fault.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use sel4_config::{sel4_cfg, sel4_cfg_enum, sel4_cfg_if, sel4_cfg_match};

use crate::{declare_fault_newtype, sys, Word};
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/invocations.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use sel4_config::sel4_cfg;

use crate::{
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use crate::sys;

mod arch;
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/object.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use core::ffi::c_uint;

use sel4_config::{sel4_cfg_enum, sel4_cfg_match};
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/vm_attributes.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use core::ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, Not};

use crate::{newtype_methods, sys};
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/arm/vspace.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use sel4_config::{sel4_cfg, sel4_cfg_enum, sel4_cfg_match};

use crate::{cap_type, sys, FrameType, ObjectBlueprint, ObjectBlueprintArm, SizedFrameType};
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use sel4_config::sel4_cfg;

// [TODO]
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/riscv/fault.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use sel4_config::{sel4_cfg, sel4_cfg_enum, sel4_cfg_match};

use crate::{declare_fault_newtype, sys};
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/riscv/invocations.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use crate::{
local_cptr::*, AbsoluteCPtr, CapRights, Error, FrameType, InvocationContext, LocalCPtr, Result,
VMAttributes,
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/riscv/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

mod invocations;
mod object;
mod user_context;
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/riscv/object.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use core::ffi::c_uint;

use sel4_config::{sel4_cfg_enum, sel4_cfg_match};
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/riscv/user_context.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use crate::{newtype_methods, sys, Word};

/// Corresponds to `seL4_UserContext`.
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/riscv/vm_attributes.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use core::ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, Not};

use crate::{newtype_methods, sys};
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/riscv/vspace.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

#[allow(unused_imports)]
use crate::{cap_type, sys, FrameType, ObjectBlueprint, ObjectBlueprintRISCV, SizedFrameType};

Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/x86/arch/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use sel4_config::sel4_cfg;

#[sel4_cfg(ARCH_X86_64)]
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/x86/arch/x64/invocations.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use crate::{
local_cptr::*, AbsoluteCPtr, CapRights, Error, FrameType, InvocationContext, LocalCPtr, Result,
VMAttributes,
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/x86/arch/x64/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

mod invocations;
mod object;
mod user_context;
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/x86/arch/x64/object.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use core::ffi::c_uint;

use crate::{const_helpers::u32_into_usize, sys};
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/x86/arch/x64/user_context.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use crate::{newtype_methods, sys, Word};

#[derive(Debug, Clone, PartialEq, Eq, Default)]
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/x86/arch/x64/vspace.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use crate::{
cap_type, sys, FrameType, ObjectBlueprint, ObjectBlueprintX64, ObjectBlueprintX86,
SizedFrameType,
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/x86/fault.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use sel4_config::{sel4_cfg, sel4_cfg_enum, sel4_cfg_match};

use crate::{declare_fault_newtype, sys};
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/x86/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use crate::sys;

mod arch;
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/x86/object.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use core::ffi::c_uint;

use crate::{
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/arch/x86/vm_attributes.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use core::ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, Not};

use crate::{newtype_methods, sys};
Expand Down
7 changes: 7 additions & 0 deletions crates/sel4/src/benchmark.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
//
// Copyright 2023, Colias Group, LLC
// Copyright (c) 2020 Arm Limited
//
// SPDX-License-Identifier: MIT
//

use sel4_config::{
sel4_cfg_if
};
Expand Down
Loading

0 comments on commit fdf2b5d

Please sign in to comment.