Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init: fix syscall parameters #442

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/runtime-boot/init/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ fn main() -> Result<(), Box<dyn Error>> {

let ret = match agent_boot {
true => {
let root_config_ptr: *const i8 = std::ptr::null();
unsafe { syscall(SYS_MOUNT_FS, root_config_ptr) }
let null_ptr: *const i8 = std::ptr::null();
unsafe { syscall(SYS_MOUNT_FS, null_ptr, null_ptr) }
}
false => {
let rootfs_upper_layer = "/sefs/upper";
Expand Down
Loading