riscv64: fix build

This commit is contained in:
2025-07-11 19:07:49 +03:00
parent 05c73735ba
commit 11ebda95b1
6 changed files with 15 additions and 29 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ impl Device for Stmmac {
let (id0, id1) = phy.id()?;
log::info!("stmmac: PHY {id0:04x}:{id1:04x}");
phy.reset(Duration::from_millis(100))?;
phy.setup_link(true, GBESR::empty())?;
phy.setup_link(true, Some(GBESR::empty()))?;
self.inner.init(Inner {
regs: IrqSafeSpinlock::new(regs),
+10 -10
View File
@@ -293,11 +293,11 @@ fn setup_dtv(image: &TlsImage, tls_info: &TlsInfo) -> Result<(), Error> {
// NOTE if module 1 is specified again by the dynamic loader, it will be overriden with
// what dynamic loader says
if let Some(module0_offset) = tls_info.module0_offset {
crate::debug_trace!(
Info,
"DTV[1] = {:#x}",
tls_info.base + module0_offset + DTV_OFFSET
);
// crate::debug_trace!(
// Info,
// "DTV[1] = {:#x}",
// tls_info.base + module0_offset + DTV_OFFSET
// );
dtv.set(
1,
core::ptr::without_provenance_mut(tls_info.base + module0_offset + DTV_OFFSET),
@@ -309,11 +309,11 @@ fn setup_dtv(image: &TlsImage, tls_info: &TlsInfo) -> Result<(), Error> {
}
for &(module_id, module_offset) in image.module_offsets.iter() {
assert!(module_offset < image.full_size);
crate::debug_trace!(
Info,
"DTV[{module_id}] = {:#x}",
tls_info.base + module_offset + DTV_OFFSET
);
// crate::debug_trace!(
// Info,
// "DTV[{module_id}] = {:#x}",
// tls_info.base + module_offset + DTV_OFFSET
// );
dtv.set(
module_id,
core::ptr::with_exposed_provenance_mut(tls_info.base + module_offset + DTV_OFFSET),
+1 -16
View File
@@ -629,7 +629,6 @@ dependencies = [
"cross",
"hmac",
"rand 0.8.5 (git+https://git.alnyan.me/yggdrasil/rand.git?branch=alnyan%2Fyggdrasil-rng_core-0.6.4)",
"ring 0.17.7",
"rustls",
"sha2",
"x25519-dalek",
@@ -2431,20 +2430,6 @@ version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
[[package]]
name = "ring"
version = "0.17.7"
source = "git+https://git.alnyan.me/yggdrasil/ring.git?branch=alnyan%2Fyggdrasil#487ee1292bfd8eb68e4e89f590dd5b95dd0e1463"
dependencies = [
"cc",
"cfg-if",
"getrandom 0.2.12",
"libc",
"spin",
"untrusted",
"windows-sys 0.48.0",
]
[[package]]
name = "ring"
version = "0.17.14"
@@ -2575,7 +2560,7 @@ version = "0.102.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9"
dependencies = [
"ring 0.17.14",
"ring",
"rustls-pki-types",
"untrusted",
]
+1 -1
View File
@@ -51,7 +51,7 @@ raqote = { version = "0.8.3", default-features = false }
# Vendored/patched dependencies
rand = { git = "https://git.alnyan.me/yggdrasil/rand.git", branch = "alnyan/yggdrasil" }
rand_core = { git = "https://git.alnyan.me/yggdrasil/rand.git", branch = "alnyan/yggdrasil" }
ring = { git = "https://git.alnyan.me/yggdrasil/ring.git", branch = "alnyan/yggdrasil" }
# ring = { git = "https://git.alnyan.me/yggdrasil/ring.git", branch = "alnyan/yggdrasil" }
rsa = { git = "https://git.alnyan.me/yggdrasil/rsa.git", branch = "alnyan/yggdrasil" }
rustls = { git = "https://git.alnyan.me/yggdrasil/rustls.git", branch = "alnyan/yggdrasil", default-features = false, features = ["std", "logging", "tls12", "custom-provider"] }
curve25519-dalek = { git = "https://git.alnyan.me/yggdrasil/curve25519-dalek.git", branch = "alnyan/yggdrasil" }
+1 -1
View File
@@ -9,7 +9,7 @@ chrono.workspace = true
rustls.workspace = true
rand = { git = "https://git.alnyan.me/yggdrasil/rand.git", branch = "alnyan/yggdrasil-rng_core-0.6.4" }
ring.workspace = true
# ring.workspace = true
sha2.workspace = true
hmac.workspace = true
chacha20poly1305.workspace = true
+1
View File
@@ -63,6 +63,7 @@ impl<'e> CargoBuilder<'e> {
};
command.env("LD_LIBRARY_PATH", ld_library_path);
command.env("CC", "clang");
command
.arg("+ygg-stage1")