Skip to content

Commit 7aed483

Browse files
committed
Rename modules/axerror to crates/axerrno, add more error kinds
1 parent 95514b9 commit 7aed483

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ log = "0.4"
1111
spinlock = { path = "../../crates/spinlock" }
1212
memory_addr = { path = "../../crates/memory_addr" }
1313
allocator = { path = "../../crates/allocator" }
14-
axerror = { path = "../axerror" }
14+
axerrno = { path = "../../crates/axerrno" }

src/page.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use allocator::AllocError;
2-
use axerror::{AxError, AxResult};
2+
use axerrno::{AxError, AxResult};
33
use memory_addr::{PhysAddr, VirtAddr};
44

55
use crate::{global_allocator, PAGE_SIZE};
@@ -99,7 +99,7 @@ impl Drop for GlobalPage {
9999
const fn alloc_err_to_ax_err(e: AllocError) -> AxError {
100100
match e {
101101
AllocError::InvalidParam | AllocError::MemoryOverlap | AllocError::NotAllocated => {
102-
AxError::InvalidParam
102+
AxError::InvalidInput
103103
}
104104
AllocError::NoMemory => AxError::NoMemory,
105105
}

0 commit comments

Comments
 (0)