diff --git a/arch/i386/syscall_uname.c b/arch/i386/syscall_uname.c new file mode 100644 index 0000000..cdc3f00 --- /dev/null +++ b/arch/i386/syscall_uname.c @@ -0,0 +1,13 @@ +#include +#include + +#define PTR ((struct utsname *) v) + +int __syscall_uname(void * v) { + strcpy(PTR->sysname, "FENIX"); + strcpy(PTR->release, "PRE-ALPHA"); + strcpy(PTR->version, "20220726_1700"); + strcpy(PTR->machine, "i386"); + + return 0; +} \ No newline at end of file diff --git a/include/kernel/syscall.h b/include/kernel/syscall.h new file mode 100644 index 0000000..3df2ae1 --- /dev/null +++ b/include/kernel/syscall.h @@ -0,0 +1,6 @@ +#ifndef _KERNEL_SYSCALL +#define _KERNEL_SYSCALL + +int __syscall_uname(void *); + +#endif \ No newline at end of file