From 9de528877c6341dcefc15cad96a20bc953a14e40 Mon Sep 17 00:00:00 2001 From: Stephen Marz Date: Fri, 15 May 2020 12:35:18 -0400 Subject: [PATCH] Updates --- risc_v/src/main.rs | 2 +- risc_v/src/test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/risc_v/src/main.rs b/risc_v/src/main.rs index fb909d8..ccec9cf 100755 --- a/risc_v/src/main.rs +++ b/risc_v/src/main.rs @@ -156,7 +156,7 @@ extern "C" fn kinit() { // Set up virtio. This requires a working heap and page-grained allocator. virtio::probe(); // Test the block driver! - process::add_kernel_process(test::test_elf); + process::add_kernel_process(test::test); // We schedule the next context switch using a multiplier of 1 // Block testing code removed. trap::schedule_next_context_switch(1); diff --git a/risc_v/src/test.rs b/risc_v/src/test.rs index 5eeab2d..0c1ff04 100644 --- a/risc_v/src/test.rs +++ b/risc_v/src/test.rs @@ -9,7 +9,7 @@ use alloc::string::String; /// Test block will load raw binaries into memory to execute them. This function /// will load ELF files and try to execute them. -pub fn test_elf() { +pub fn test() { // This won't be necessary after we connect this to the VFS, but for now, we need it. const BDEV: usize = 8; // This could be better. We should see what our probe gave us, and it if is