aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / crates / aienos-kernel / src / lib.rs
| 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // Copyright 2026 Drake Stapleton (AIEN / aien-dev) |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | |
| 16 | //! AIENOS Bare-Metal Kernel Substrate for AArch64 (DGX Spark). |
| 17 | //! |
| 18 | //! Provides minimal, sovereign, deterministic primitives: |
| 19 | //! - AArch64 MMIO, UART, and exception-level access |
| 20 | //! - Physical memory addressing and bitmap frame allocation |
| 21 | //! - Pure-Rust cryptographic hashing (SHA-256) |
| 22 | //! - Bare-metal synchronization (`SpinLock`) |
| 23 | |
| 24 | #![cfg_attr(not(feature = "std"), no_std)] |
| 25 | |
| 26 | extern crate alloc; |
| 27 | |
| 28 | pub mod abi; |
| 29 | pub mod acpi; |
| 30 | pub mod admission; |
| 31 | pub mod arch; |
| 32 | pub mod artifact_loader; |
| 33 | pub mod block; |
| 34 | pub mod boot; |
| 35 | pub mod budget; |
| 36 | pub mod caps; |
| 37 | pub mod console; |
| 38 | pub mod continuity; |
| 39 | pub mod crypto; |
| 40 | pub mod device; |
| 41 | pub mod display; |
| 42 | pub mod dma_gate; |
| 43 | pub mod edu; |
| 44 | pub mod fatal; |
| 45 | pub mod gic; |
| 46 | pub mod infer; |
| 47 | pub mod ipc; |
| 48 | pub mod mem; |
| 49 | pub mod net; |
| 50 | pub mod nvme; |
| 51 | pub mod pci; |
| 52 | pub mod pe; |
| 53 | pub mod recovery; |
| 54 | pub mod recovery_core; |
| 55 | pub mod report; |
| 56 | pub mod scheduler; |
| 57 | pub mod security; |
| 58 | pub mod shell; |
| 59 | pub mod smmu; |
| 60 | pub mod store; |
| 61 | pub mod sync; |
| 62 | pub mod task_runtime; |
| 63 | pub mod thread; |
| 64 | pub mod timer; |
| 65 | pub mod uefi; |
| 66 | pub mod usb; |
| 67 | pub mod user; |
| 68 | pub mod virtio_net; |
| 69 | |
| 70 | #[cfg(all(target_os = "none", not(feature = "std"), not(test)))] |
| 71 | #[panic_handler] |
| 72 | fn panic(_info: &core::panic::PanicInfo) -> ! { |
| 73 | arch::aarch64::halt(); |
| 74 | } |