1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-23 18:06:20 +04:00
This commit is contained in:
Stephen Marz 2020-05-15 12:35:18 -04:00
parent 26947251be
commit 9de528877c
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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