Skip to content

Commit

Permalink
feat: seperate sync and frame_allocator from kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
yfblock committed Apr 17, 2024
1 parent fe21c09 commit 9b8c1fe
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 434 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions kernel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ serde_derive = "1.0.136"
[dependencies]
allocator = { path = "../crates/allocator" }
crate_interface = { git = "https://github.com/Byte-OS/crate_interface.git" }
frame_allocator = { path = "../modules/frame_allocator" }
frame_allocator = { git = "https://github.com/Byte-OS/bit_frame_allocator.git" }
logging = { path = "../modules/logging" }
log = "0.4"
devices = { path = "../modules/devices" }
Expand All @@ -25,7 +25,7 @@ fs = { path = "../modules/fs" }
fdt = "0.1.5"
executor = { path = "../modules/executor" }
xmas-elf = "0.9.0"
sync = { path = "../modules/sync" }
sync = { git = "https://github.com/Byte-OS/sync.git" }
bitflags = "2.0.2"
signal = { git = "https://github.com/Byte-OS/signal.git" }
bit_field = "0.10.1"
Expand Down
2 changes: 1 addition & 1 deletion modules/devfs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ vfscore = { git = "https://github.com/Byte-OS/vfscore.git" }
logging = { path = "../logging" }
devices = { path = "../devices" }
log = "0.4"
sync = { path = "../sync" }
sync = { git = "https://github.com/Byte-OS/sync.git" }
bitflags = "2.0.2"
num-traits = { version = "0.2", default-features = false}
num-derive = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions modules/devices/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ arch = { git = "https://github.com/Byte-OS/arch.git" }
fdt = "0.1.5"
linkme = { version = "0.3.22", features = ["used_linker"] }
log = "0.4"
sync = { path = "../sync" }
sync = { git = "https://github.com/Byte-OS/sync.git" }
virtio-drivers = { git = "https://github.com/rcore-os/virtio-drivers", rev = "f1d1cbb"}
frame_allocator = { path = "../frame_allocator" }
frame_allocator = { git = "https://github.com/Byte-OS/bit_frame_allocator.git" }
timestamp = { git = "https://github.com/Byte-OS/timestamp.git" }
4 changes: 2 additions & 2 deletions modules/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ edition = "2021"
crossbeam-queue = { version = "0.3.8", default-features = false, features = ["alloc"] }
logging = { path = "../logging" }
arch = { git = "https://github.com/Byte-OS/arch.git" }
sync = { path = "../sync" }
frame_allocator = { path = "../frame_allocator" }
sync = { git = "https://github.com/Byte-OS/sync.git" }
frame_allocator = { git = "https://github.com/Byte-OS/bit_frame_allocator.git" }
log = "0.4"
fs = { path = "../fs" }
devfs = { path = "../devfs" }
Expand Down
12 changes: 0 additions & 12 deletions modules/frame_allocator/Cargo.toml

This file was deleted.

281 changes: 0 additions & 281 deletions modules/frame_allocator/src/lib.rs

This file was deleted.

4 changes: 2 additions & 2 deletions modules/fs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ edition = "2021"
[dependencies]
log = "0.4"
vfscore = { git = "https://github.com/Byte-OS/vfscore.git" }
sync = { path = "../sync" }
sync = { git = "https://github.com/Byte-OS/sync.git" }
devices = { path = "../devices" }
logging = { path = "../logging" }
devfs = { path = "../devfs" }
ramfs = { path = "../ramfs" }
procfs = { path = "../procfs" }
frame_allocator = { path = "../frame_allocator" }
frame_allocator = { git = "https://github.com/Byte-OS/bit_frame_allocator.git" }
arch = { git = "https://github.com/Byte-OS/arch.git" }

[dependencies.fatfs]
Expand Down
4 changes: 2 additions & 2 deletions modules/hal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ edition = "2021"
[dependencies]
arch = { git = "https://github.com/Byte-OS/arch.git" }
log = "0.4"
frame_allocator = { path = "../frame_allocator" }
frame_allocator = { git = "https://github.com/Byte-OS/bit_frame_allocator.git" }
devices = { path = "../devices" }
sync = { path = "../sync" }
sync = { git = "https://github.com/Byte-OS/sync.git" }
2 changes: 1 addition & 1 deletion modules/logging/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ edition = "2021"
log = "0.4"
arch = { git = "https://github.com/Byte-OS/arch.git" }
devices = { path = "../devices" }
sync = { path = "../sync" }
sync = { git = "https://github.com/Byte-OS/sync.git" }
Loading

0 comments on commit 9b8c1fe

Please sign in to comment.