aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/syscall.c
diff options
context:
space:
mode:
authorMarvin Borner2021-01-08 14:51:11 +0100
committerMarvin Borner2021-01-08 14:51:11 +0100
commit01c570789d7f9ccc1521b791903c8a499b0f6323 (patch)
treee5275dbbc207db6be843df918b3944cc822d0819 /kernel/features/syscall.c
parent52920b03e996cf60b2665772837bfa0f1661a430 (diff)
Kinda working VFS implementation
Diffstat (limited to 'kernel/features/syscall.c')
-rw-r--r--kernel/features/syscall.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/features/syscall.c b/kernel/features/syscall.c
index 436db5a..e2df79a 100644
--- a/kernel/features/syscall.c
+++ b/kernel/features/syscall.c
@@ -34,17 +34,15 @@ void syscall_handler(struct regs *r)
break;
}
case SYS_STAT: {
- r->eax = (u32)vfs_stat((char *)r->ebx);
+ r->eax = (u32)vfs_stat((char *)r->ebx, (struct stat *)r->ecx);
break;
}
case SYS_READ: {
- printf("NOT IMPLEMENTED!\n");
- loop();
- //r->eax = (u32)vfs_read((char *)r->ebx);
+ r->eax = (u32)vfs_read((char *)r->ebx, (void *)r->ecx, r->edx, r->esi);
break;
}
case SYS_WRITE: {
- // TODO: Write ext2 support
+ r->eax = (u32)vfs_write((char *)r->ebx, (void *)r->ecx, r->edx, r->esi);
break;
}
case SYS_EXEC: {