Merge branch 'virtio-disk-memory_root_fd' into 'main'

fix: Retrieve memory root FD to enable memory access for virtio-blkd

See merge request redox-os/base!97
This commit is contained in:
Jeremy Soller
2026-01-22 07:36:03 -07:00
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ pub fn init() {
pub fn memory_root_fd() -> &'static libredox::Fd {
MEMORY_ROOT_FD
.get()
.expect("acpid: failed to get memory_root_fd")
.expect("drivers common: memory root fd not initialized. Please call `common::init` in your main function.")
}
/// Specifies the write behavior for a specific region of memory
+1
View File
@@ -99,6 +99,7 @@ pub struct BlockVirtRequest {
const_assert_eq!(core::mem::size_of::<BlockVirtRequest>(), 16);
fn main() {
common::init();
pcid_interface::pci_daemon(daemon_runner);
}