From b1faf9042c5104d7dafc7d880817def934086ddb Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 23 Aug 2020 12:19:20 +0200 Subject: How did this work before?! I used r->eax instead of r->ebx in malloc :O --- kernel/features/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/features/syscall.c') diff --git a/kernel/features/syscall.c b/kernel/features/syscall.c index 2a310ef..4197985 100644 --- a/kernel/features/syscall.c +++ b/kernel/features/syscall.c @@ -28,7 +28,7 @@ void syscall_handler(struct regs *r) } case SYS_MALLOC: { printf("malloc\n"); - r->eax = (u32)malloc(r->eax); + r->eax = (u32)malloc(r->ebx); break; } case SYS_FREE: { -- cgit v1.2.3