Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "arceos"]
path = arceos
url = https://github.com/Starry-OS/arceos
branch = main
branch = dev
51 changes: 35 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 8 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,30 @@ repository = "https://github.com/arceos-org/starry-next"
axfeat = { path = "arceos/api/axfeat", features = [
"alloc-slab",
"fp-simd",
"ext4",
"fs",
"fs-ext4",
"irq",
"multitask",
"net",
"page-alloc-4g",
"rtc",
# "sched-fifo",
"sched-rr",
"task-ext",
"uspace",
] }

axalloc = { path = "arceos/modules/axalloc" }
axconfig = { path = "arceos/modules/axconfig" }
axdisplay = { path = "arceos/modules/axdisplay" }
axdriver = { path = "arceos/modules/axdriver" }
axfs-ng = { path = "arceos/modules/axfs-ng" }
axhal = { path = "arceos/modules/axhal", features = ["uspace"] }
axfs = { path = "arceos/modules/axfs" }
axhal = { path = "arceos/modules/axhal" }
axinput = { path = "arceos/modules/axinput" }
axlog = { path = "arceos/modules/axlog" }
axmm = { path = "arceos/modules/axmm" }
axnet = { path = "arceos/modules/axnet" }
axruntime = { path = "arceos/modules/axruntime" }
axsync = { path = "arceos/modules/axsync" }
axtask = { path = "arceos/modules/axtask", features = ["task-ext"] }
axtask = { path = "arceos/modules/axtask" }

axbacktrace = "0.1"
axerrno = "0.2"
Expand All @@ -57,7 +57,7 @@ bytemuck = { version = "1.23", features = ["unsound_ptr_pod_impl"] }
cfg-if = "1.0"
event-listener = { version = "5.4.0", default-features = false }
extern-trait = "0.2"
hashbrown = "0.15.4"
hashbrown = "0.16"
kspin = "0.1"
lazy_static = { version = "1.5", features = ["spin_no_std"] }
linkme = "0.3.33"
Expand Down Expand Up @@ -91,16 +91,8 @@ repository.workspace = true
[features]
default = []
qemu = [
"axfeat/driver-virtio-blk",
"axfeat/driver-virtio-net",
"axfeat/driver-virtio-socket",

"axfeat/driver-virtio-gpu",
"axfeat/display",

"axfeat/driver-virtio-input",
"axfeat/input",
# "axdriver/dyn",
"starry-api/input",

"axfeat/vsock",
Expand All @@ -121,7 +113,7 @@ vf2 = ["dep:axplat-riscv64-visionfive2", "axfeat/driver-sdmmc"]
axdriver.workspace = true
axerrno.workspace = true
axfeat.workspace = true
axfs-ng.workspace = true
axfs.workspace = true
axhal.workspace = true
axlog.workspace = true
axruntime.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Build Options
export ARCH := riscv64
export LOG := warn
export BACKTRACE := y
export DWARF := y
export MEMTRACK := n

# QEMU Options
Expand Down
4 changes: 2 additions & 2 deletions api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository.workspace = true

[features]
input = ["dep:axinput"]
memtrack = ["axfeat/backtrace", "axalloc/tracking", "dep:gimli"]
memtrack = ["axfeat/dwarf", "axalloc/tracking", "dep:gimli"]
vsock = ["axnet/vsock"]
dev-log = []

Expand All @@ -22,7 +22,7 @@ axdriver.workspace = true
axerrno.workspace = true
axfeat.workspace = true
axfs-ng-vfs.workspace = true
axfs-ng.workspace = true
axfs.workspace = true
axhal.workspace = true
axinput = { workspace = true, optional = true }
axio.workspace = true
Expand Down
8 changes: 4 additions & 4 deletions api/src/file/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use core::{
};

use axerrno::{AxError, AxResult};
use axfs_ng::{FS_CONTEXT, FsContext};
use axfs::{FS_CONTEXT, FsContext};
use axfs_ng_vfs::{Location, Metadata, NodeFlags};
use axpoll::{IoEvents, Pollable};
use axsync::Mutex;
Expand Down Expand Up @@ -99,19 +99,19 @@ pub fn metadata_to_kstat(metadata: &Metadata) -> Kstat {

/// File wrapper for `axfs::fops::File`.
pub struct File {
inner: axfs_ng::File,
inner: axfs::File,
nonblock: AtomicBool,
}

impl File {
pub fn new(inner: axfs_ng::File) -> Self {
pub fn new(inner: axfs::File) -> Self {
Self {
inner,
nonblock: AtomicBool::new(false),
}
}

pub fn inner(&self) -> &axfs_ng::File {
pub fn inner(&self) -> &axfs::File {
&self.inner
}

Expand Down
2 changes: 1 addition & 1 deletion api/src/file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use alloc::{borrow::Cow, sync::Arc};
use core::{any::Any, ffi::c_int, time::Duration};

use axerrno::{AxError, AxResult};
use axfs_ng::{FS_CONTEXT, OpenOptions};
use axfs::{FS_CONTEXT, OpenOptions};
use axfs_ng_vfs::DeviceId;
use axio::{Buf, BufMut, Read, Write};
use axpoll::Pollable;
Expand Down
2 changes: 1 addition & 1 deletion api/src/syscall/fs/ctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use core::{
};

use axerrno::{AxError, AxResult};
use axfs_ng::{FS_CONTEXT, FsContext};
use axfs::{FS_CONTEXT, FsContext};
use axfs_ng_vfs::{MetadataUpdate, NodePermission, NodeType, path::Path};
use axhal::time::wall_time;
use axtask::current;
Expand Down
6 changes: 3 additions & 3 deletions api/src/syscall/fs/fd_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use core::{
};

use axerrno::{AxError, AxResult};
use axfs_ng::{FS_CONTEXT, FileBackend, OpenOptions, OpenResult};
use axfs::{FS_CONTEXT, FileBackend, OpenOptions, OpenResult};
use axfs_ng_vfs::{DirEntry, FileNode, Location, NodePermission, NodeType, Reference};
use axtask::current;
use bitflags::bitflags;
Expand Down Expand Up @@ -77,7 +77,7 @@ fn add_to_fd(result: OpenResult, flags: u32) -> AxResult<i32> {
Reference::new(Some(pts.entry().clone()), pty_number.to_string()),
);
let loc = Location::new(file.location().mountpoint().clone(), entry);
file = axfs_ng::File::new(FileBackend::Direct(loc), file.flags());
file = axfs::File::new(FileBackend::Direct(loc), file.flags());
} else if inner.is::<tty::CurrentTty>() {
let term = current()
.as_thread()
Expand All @@ -95,7 +95,7 @@ fn add_to_fd(result: OpenResult, flags: u32) -> AxResult<i32> {
panic!("unknown terminal type")
};
let loc = FS_CONTEXT.lock().resolve(&path)?;
file = axfs_ng::File::new(FileBackend::Direct(loc), file.flags());
file = axfs::File::new(FileBackend::Direct(loc), file.flags());
}
}
Arc::new(File::new(file))
Expand Down
2 changes: 1 addition & 1 deletion api/src/syscall/fs/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use core::{
};

use axerrno::{AxError, AxResult};
use axfs_ng::{FS_CONTEXT, FileFlags, OpenOptions};
use axfs::{FS_CONTEXT, FileFlags, OpenOptions};
use axio::{Seek, SeekFrom};
use axpoll::{IoEvents, Pollable};
use axtask::current;
Expand Down
2 changes: 1 addition & 1 deletion api/src/syscall/fs/memfd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use alloc::format;
use core::ffi::c_char;

use axerrno::{AxError, AxResult};
use axfs_ng::{FS_CONTEXT, OpenOptions};
use axfs::{FS_CONTEXT, OpenOptions};
use linux_raw_sys::general::MFD_CLOEXEC;

use crate::{
Expand Down
2 changes: 1 addition & 1 deletion api/src/syscall/fs/mount.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use core::ffi::{c_char, c_void};

use axerrno::{AxError, AxResult};
use axfs_ng::FS_CONTEXT;
use axfs::FS_CONTEXT;

use crate::{mm::vm_load_string, vfs::MemoryFs};

Expand Down
2 changes: 1 addition & 1 deletion api/src/syscall/fs/stat.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use core::ffi::{c_char, c_int};

use axerrno::{AxError, AxResult};
use axfs_ng::FS_CONTEXT;
use axfs::FS_CONTEXT;
use axfs_ng_vfs::{Location, NodePermission};
use linux_raw_sys::general::{
__kernel_fsid_t, AT_EMPTY_PATH, R_OK, W_OK, X_OK, stat, statfs, statx,
Expand Down
Loading
Loading