From b78c7aef42e7f6db764966a229891e7a62ac080c Mon Sep 17 00:00:00 2001 From: Stephen Marz Date: Fri, 22 May 2020 16:29:22 -0400 Subject: [PATCH] Remove inode.size as a parameter to load_proc. --- risc_v/src/syscall.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/risc_v/src/syscall.rs b/risc_v/src/syscall.rs index bfb690e..17df18a 100755 --- a/risc_v/src/syscall.rs +++ b/risc_v/src/syscall.rs @@ -259,7 +259,7 @@ fn exec_func(args: usize) { // waits for the block driver to return. fs::MinixFileSystem::read(8, &inode, buffer.get_mut(), inode.size, 0); // Now we have the data, so the following will load the ELF file and give us a process. - let proc = elf::File::load_proc(&buffer, inode.size as usize); + let proc = elf::File::load_proc(&buffer); if proc.is_err() { println!("Failed to launch process."); }