Skip to content

Commit

Permalink
docs: add copyright statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenRuiwei committed Jul 28, 2024
1 parent d524198 commit 5631603
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@ make all

## 参考

- [Titanix](https://gitlab.eduxiji.net/202318123101314/oskernel2023-Titanix)
- [MankorOS](https://gitlab.eduxiji.net/MankorOS/OSKernel2023-MankorOS)
- [Titanix](https://gitlab.eduxiji.net/202318123101314/oskernel2023-Titanix) 启动流程、内存模块设计
- [MankorOS](https://gitlab.eduxiji.net/MankorOS/OSKernel2023-MankorOS) RangeMap、UserPtr、设备驱动模块
- [FTL OS](https://gitlab.eduxiji.net/DarkAngelEX/oskernel2022-ftlos)
2 changes: 2 additions & 0 deletions crates/async-utils/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Adapted from Titanix
#![no_std]
#![no_main]

Expand Down
2 changes: 2 additions & 0 deletions crates/range-map/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Adapted from MankorOS
#![no_std]
#![no_main]
#![feature(map_try_insert)]
Expand Down
2 changes: 2 additions & 0 deletions driver/src/cpu.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//! CPU is also a device
//!
//! Adapted from MankorOS
use alloc::vec::Vec;

Expand Down
4 changes: 3 additions & 1 deletion driver/src/manager.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//! Device manager
//!
//! Adapted from MankorOS
use alloc::{collections::BTreeMap, sync::Arc, vec::Vec};

use arch::interrupts::{disable_interrupt, enable_external_interrupt};
use config::{board, mm::K_SEG_DTB_BEG};
use device_core::{Device, DevId};
use device_core::{DevId, Device};
use log::{info, warn};

use crate::{cpu::CPU, plic::PLIC, println};
Expand Down
2 changes: 2 additions & 0 deletions driver/src/plic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! RISC-V Platform Level Interrupt Controller
//!
//! Adapted from MankorOS
//!
//! Controller setup helper
use config::mm::VIRT_RAM_OFFSET;
Expand Down
2 changes: 2 additions & 0 deletions driver/src/serial/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Adapted from MankorOS
pub mod uart8250;

use alloc::{boxed::Box, collections::VecDeque, string::ToString, sync::Arc};
Expand Down
3 changes: 3 additions & 0 deletions driver/src/serial/uart8250.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
//! Copyright (c) 2023 Easton Man
//!
//! Adapted from MankorOS
//!
//! Adapted from https://docs.rs/uart_16550/latest/src/uart_16550/mmio.rs.html
use core::fmt::Write;
Expand Down
2 changes: 2 additions & 0 deletions kernel/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Boot process is adapted from Titanix
#![no_std]
#![no_main]
#![feature(alloc_error_handler)]
Expand Down
2 changes: 1 addition & 1 deletion kernel/src/mm/memory_space/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub struct MemorySpace {
/// Map of `VmArea`s in this memory space.
/// NOTE: stores range that is lazy allocated
areas: SyncUnsafeCell<RangeMap<VirtAddr, VmArea>>,
/// Pointes to leader task.
/// Points to leader task.
task: Option<Weak<Task>>,
}

Expand Down
2 changes: 2 additions & 0 deletions kernel/src/mm/user_ptr.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! # UserPtr
//!
//! Adapted from MankorOS
//!
//! Used for automatically check user ptr when reading or writing.
use alloc::{string::String, sync::Arc, vec::Vec};
Expand Down
2 changes: 2 additions & 0 deletions modules/executor/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Adapted from Titanix
#![no_std]
#![no_main]

Expand Down
2 changes: 2 additions & 0 deletions modules/ext4/src/disk.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Adapted from StarryOS
use alloc::sync::Arc;

use config::board::BLOCK_SIZE;
Expand Down
2 changes: 2 additions & 0 deletions modules/sync/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Adapted from Titanix
#![no_std]
#![no_main]
#![feature(negative_impls)]
Expand Down

0 comments on commit 5631603

Please sign in to comment.