Skip to content

Commit

Permalink
feat: Seperate exector from kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
yfblock committed Apr 19, 2024
1 parent c87464b commit 9c3d8ee
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 296 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
debug = true

[workspace]
members = ["crates/*", "kernel"]
members = ["kernel"]
resolver = "2"
13 changes: 13 additions & 0 deletions byteos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ run = "make ARCH=riscv64 justrun"
board = "qemu"
driver = "kvirtio,kgoldfish-rtc,ns16550a"

[bin.riscv64-qemu.env]
HEAP_SIZE = "0x0180_0000"
MOUNT_IMG_PATH = "/home/yufeng/Code/ByteOS/mount.img"

# build for x86_64-qemu
[bin.x86_64-qemu]
target = "x86_64-unknown-none"
Expand All @@ -16,6 +20,7 @@ run = "make ARCH=x86_64 justrun"

[bin.x86_64-qemu.env]
HEAP_SIZE = "0x0200_0000"
MOUNT_IMG_PATH = "/home/yufeng/Code/ByteOS/mount.img"

# build for aarch64-qemu
[bin.aarch64-qemu]
Expand All @@ -25,10 +30,18 @@ run = "make ARCH=aarch64 justrun"
board = "qemu"
driver = "kvirtio,kgoldfish-rtc,ns16550a"

[bin.aarch64-qemu.env]
HEAP_SIZE = "0x0200_0000"
MOUNT_IMG_PATH = "/home/yufeng/Code/ByteOS/mount.img"

# build for loongarch64-qemu
[bin.loongarch64-qemu]
target = "loongarch64-unknown-none"
run = "make ARCH=loongarch64 justrun"
[bin.loongarch64-qemu.configs]
board = "qemu"
driver = "kramdisk,kgoldfish-rtc,ns16550a"

[bin.loongarch64-qemu.env]
HEAP_SIZE = "0x0200_0000"
MOUNT_IMG_PATH = "/home/yufeng/Code/ByteOS/mount.img"
13 changes: 0 additions & 13 deletions crates/executor/Cargo.toml

This file was deleted.

132 changes: 0 additions & 132 deletions crates/executor/src/executor.rs

This file was deleted.

75 changes: 0 additions & 75 deletions crates/executor/src/lib.rs

This file was deleted.

31 changes: 0 additions & 31 deletions crates/executor/src/ops.rs

This file was deleted.

35 changes: 0 additions & 35 deletions crates/executor/src/task.rs

This file was deleted.

8 changes: 0 additions & 8 deletions crates/executor/src/thread.rs

This file was deleted.

2 changes: 1 addition & 1 deletion kernel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ hal = { git = "https://github.com/Byte-OS/hal.git" }
arch = { git = "https://github.com/Byte-OS/arch.git" }
fs = { git = "https://github.com/Byte-OS/fs.git" }
fdt = "0.1.5"
executor = { path = "../crates/executor" }
executor = { git = "https://github.com/Byte-OS/executor.git" }
xmas-elf = "0.9.0"
sync = { git = "https://github.com/Byte-OS/sync.git" }
bitflags = "2.0.2"
Expand Down

0 comments on commit 9c3d8ee

Please sign in to comment.