From ec316391c5d9d679d7fc2d838b828e3749df9b00 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 11 May 2023 18:27:31 +0300 Subject: [PATCH] Kernel: argc is passed as zero to userspace --- kernel/arch/x86_64/Thread.S | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/arch/x86_64/Thread.S b/kernel/arch/x86_64/Thread.S index 6f47cfd958..6ca2e20217 100644 --- a/kernel/arch/x86_64/Thread.S +++ b/kernel/arch/x86_64/Thread.S @@ -33,4 +33,5 @@ thread_jump_userspace: pushfq pushq $0x1B pushq %rsi + movq $0, %rdi iretq