From 17258a3d396f9953e49ed2bd6f39c85fe219e449 Mon Sep 17 00:00:00 2001 From: taiwoabe <143144801+taiwoabe@users.noreply.github.com> Date: Tue, 24 Sep 2024 18:45:27 -0500 Subject: [PATCH] Update syscall.c --- kernel/syscall.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kernel/syscall.c b/kernel/syscall.c index ed654094cb..664c39f748 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -145,3 +145,10 @@ syscall(void) p->trapframe->a0 = -1; } } +// Inside syscall.c +extern int sys_getfreemem(void); + +static int (*syscalls[])(void) = { + // Other system calls... + [SYS_getfreemem] sys_getfreemem, +};