]> git.corax.cc Git - corax/commitdiff
Pass the 6th argument of a syscall in ebp
authorMatthias Kruk <m@m10k.eu>
Wed, 2 Oct 2019 06:13:10 +0000 (15:13 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 2 Oct 2019 06:13:10 +0000 (15:13 +0900)
kernel/arch/interrupt.c

index 3773a2980361fa848e490f0f9df154b0deb8ceab..dcd2bb0e9ee4c0d78d137acdeaa6a194269eb8eb 100644 (file)
@@ -24,7 +24,7 @@
 #include "defs.h"
 
 void sched_tick(void);
-extern int sys_cxnet(long, long, long, long, long, long);
+extern int sys_cxnet(long, long, long, long, long, long, long);
 
 static const char *_exc_name[] = {
     "#DE", "#DB", "NMI", "#BP", "#OF", "#BR", "#UD", "#NM", "#DF", "#MF",
@@ -150,7 +150,7 @@ void _sys_handle(stack_frame_t ctx)
                break;
 
        case SYS_VECTOR_CXNET:
-               ret_val = sys_cxnet(ctx.eax, ctx.ebx, ctx.ecx, ctx.edx, ctx.esi, ctx.edi);
+               ret_val = sys_cxnet(ctx.eax, ctx.ebx, ctx.ecx, ctx.edx, ctx.esi, ctx.edi, ctx.ebp);
                break;
 
 #if FEATURE(POSIX)