Commits on Source (408)
Showing
- .cargo/config 0 additions, 8 deletions.cargo/config
- .gitignore 1 addition, 0 deletions.gitignore
- .gitlab-ci.yml 30 additions, 0 deletions.gitlab-ci.yml
- .gitmodules 4 additions, 4 deletions.gitmodules
- .helix/languages.toml 2 additions, 2 deletions.helix/languages.toml
- Cargo.lock 206 additions, 85 deletionsCargo.lock
- Cargo.toml 36 additions, 21 deletionsCargo.toml
- Makefile 44 additions, 0 deletionsMakefile
- README.md 38 additions, 23 deletionsREADME.md
- build.rs 35 additions, 24 deletionsbuild.rs
- linkers/aarch64.ld 14 additions, 3 deletionslinkers/aarch64.ld
- linkers/i686.ld 12 additions, 0 deletionslinkers/i686.ld
- linkers/riscv64.ld 68 additions, 0 deletionslinkers/riscv64.ld
- linkers/x86_64.ld 13 additions, 0 deletionslinkers/x86_64.ld
- rmm 1 addition, 1 deletionrmm
- rustfmt.toml 21 additions, 0 deletionsrustfmt.toml
- src/acpi/gtdt.rs 68 additions, 0 deletionssrc/acpi/gtdt.rs
- src/acpi/hpet.rs 49 additions, 40 deletionssrc/acpi/hpet.rs
- src/acpi/madt.rs 0 additions, 295 deletionssrc/acpi/madt.rs
- src/acpi/madt/arch/aarch64.rs 97 additions, 0 deletionssrc/acpi/madt/arch/aarch64.rs
.cargo/config
deleted
100644 → 0
.gitlab-ci.yml
0 → 100644
... | ... | @@ -4,27 +4,27 @@ version = "0.4.1" |
build = "build.rs" | ||
edition = "2021" | ||
[lib] | ||
name = "kernel" | ||
path = "src/lib.rs" | ||
crate-type = ["staticlib"] | ||
[build-dependencies] | ||
cc = "1.0.3" | ||
rustc-cfg = "0.3.0" | ||
toml = "0.7" | ||
cc = "1.0" | ||
rustc-cfg = "0.5" | ||
toml = "0.8" | ||
[dependencies] | ||
bitflags = "1.2.1" | ||
bitflags = "2" | ||
bitfield = "0.13.2" | ||
hashbrown = { version = "0.14.3", default-features = false, features = ["ahash", "inline-more"] } | ||
linked_list_allocator = "0.9.0" | ||
log = "0.4" | ||
memoffset = { version = "0.6", features = ["unstable_const"] } | ||
redox_syscall = { path = "syscall" } | ||
redox-path = "0.2.0" | ||
redox_syscall = { git = "https://gitlab.redox-os.org/redox-os/syscall.git", branch = "master", default-features = false } | ||
slab_allocator = { path = "slab_allocator", optional = true } | ||
# FIXME: There is some undefined behavior probably in the kernel, which forces us to use spin 0.9.0 and not 0.9.2. | ||
spin = "=0.9.0" | ||
spin = "0.9.8" | ||
spinning_top = { version = "0.3", features = ["arc_lock"] } | ||
rmm = { path = "rmm", default-features = false } | ||
arrayvec = { version = "0.7.4", default-features = false } | ||
slab = { version = "0.4", default-features = false } | ||
# TODO: Remove | ||
indexmap = { version = "2.5.0", default-features = false } | ||
[dependencies.goblin] | ||
version = "0.2.1" | ||
... | ... | @@ -35,42 +35,57 @@ features = ["elf32", "elf64"] |
version = "0.1.16" | ||
default-features = false | ||
[target.'cfg(target_arch = "aarch64")'.dependencies] | ||
[target.'cfg(any(target_arch = "aarch64", target_arch = "riscv64"))'.dependencies] | ||
byteorder = { version = "1", default-features = false } | ||
fdt = { git = "https://gitlab.redox-os.org/thomhuds/fdt.git", default-features = false } | ||
paste = "1.0.7" | ||
fdt = { git = "https://github.com/repnop/fdt.git", rev = "2fb1409edd1877c714a0aa36b6a7c5351004be54" } | ||
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies] | ||
raw-cpuid = "10.2.0" | ||
x86 = { version = "0.47.0", default-features = false } | ||
[target.'cfg(any(target_arch = "riscv64", target_arch = "riscv32"))'.dependencies] | ||
sbi-rt = "0.0.3" | ||
[features] | ||
default = ["acpi", "multi_core", "graphical_debug", "serial_debug", "self_modifying"] | ||
default = [ | ||
"acpi", | ||
"multi_core", | ||
"graphical_debug", | ||
"serial_debug", | ||
"self_modifying", | ||
"x86_kvm_pv", | ||
] | ||
# Activates some limited code-overwriting optimizations, based on CPU features. | ||
self_modifying = [] | ||
acpi = [] | ||
doc = [] | ||
graphical_debug = [] | ||
lpss_debug = [] | ||
multi_core = ["acpi"] | ||
profiling = [] | ||
#TODO: remove when threading issues are fixed | ||
pti = [] | ||
qemu_debug = [] | ||
serial_debug = [] | ||
system76_ec_debug = [] | ||
slab = ["slab_allocator"] | ||
sys_stat = [] | ||
x86_kvm_pv = [] | ||
debugger = ["syscall_debug"] | ||
syscall_debug = [] | ||
sys_fdstat = [] | ||
[profile.dev] | ||
# Avoids having to define the eh_personality lang item and reduces kernel size | ||
panic = "abort" | ||
# Kernel doesn't yet work great with debug mode :( | ||
opt-level = 3 | ||
[profile.release] | ||
# Avoids having to define the eh_personality lang item and reduces kernel size | ||
panic = "abort" | ||
lto = true | ||
debug = "full" |
Makefile
0 → 100644
linkers/riscv64.ld
0 → 100644
rustfmt.toml
0 → 100644
src/acpi/gtdt.rs
0 → 100644
src/acpi/madt.rs
deleted
100644 → 0
src/acpi/madt/arch/aarch64.rs
0 → 100644