Skip to content

Commit

Permalink
dev: temp stash
Browse files Browse the repository at this point in the history
  • Loading branch information
yfblock committed Nov 7, 2024
1 parent f50e186 commit 4bdbeb7
Show file tree
Hide file tree
Showing 177 changed files with 3,900 additions and 750 deletions.
14 changes: 0 additions & 14 deletions .cargo/config.toml

This file was deleted.

10 changes: 1 addition & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
target
output.log
qemu.log
*.iso
!example/iso/grub/*
example/iso/*
example/qemu-*.log
mount.img
example/virt.out
target/
174 changes: 65 additions & 109 deletions Cargo.lock

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

74 changes: 20 additions & 54 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,54 +1,20 @@
[package]
name = "polyhal"
version = "0.1.3"
edition = "2021"
description = "This crate provides the interface for multiple platforms."
authors = ["yfblock@[email protected]"]
license = "MIT"
repository = "https://github.com/Byte-OS/polyhal"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
trap = []
boot = []
logger = []

graphic = []

default = ["boot"]

[dependencies]
log = "0.4"
fdt = "0.1.5"
bitflags = "2.0.2"
cfg-if = "1.0.0"
polyhal-macro = "0.1.3"
spin = { version = "0.9.8", features = ["mutex"] }

[target.'cfg(target_arch = "riscv64")'.dependencies]
riscv = "0.11.0"
sbi-rt = { version = "0.0.2", features = ["legacy"] }

[target.'cfg(target_arch = "x86_64")'.dependencies]
x86 = "0.52"
x86_64 = "0.14"
multiboot = "0.8.0"
x2apic = "0.4"
raw-cpuid = "11.0"
acpi = "5.0.0"

[target.'cfg(target_arch = "aarch64")'.dependencies]
aarch64-cpu = "9.3"
arm_pl011 = "0.1.0"
tock-registers = "0.8"
arm_gicv2 = "0.1.0"

[target.'cfg(target_arch = "loongarch64")'.dependencies]
loongArch64 = "0.2.4"

[dev-dependencies]
buddy_system_allocator = "0.9.1"

[patch.crates-io.polyhal-macro]
path = "polyhal-macro"
[workspace]
resolver = "2"
members = [
"base",
"boot",
"linker",
"macro",
"pagetable",
"polyhal"
]
exclude = [
"example"
]

[workspace.dependencies]
polyhal-base = { path = "./base" }
polyhal-boot = { path = "./boot" }
polyhal-linker = { path = "./linker" }
polyhal-macro = { path = "./macro" }
polyhal-pagetable = { path = "./pagetable" }
6 changes: 6 additions & 0 deletions base/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "polyhal-base"
version = "0.1.0"
edition = "2021"

[dependencies]
Loading

0 comments on commit 4bdbeb7

Please sign in to comment.