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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user