Rename Yolo syscall to Helo

This commit is contained in:
Mathieu Maret 2023-11-11 00:07:26 +01:00
parent b0a192ce7c
commit 1120b40655
6 changed files with 8 additions and 8 deletions

View File

@ -22,8 +22,8 @@ int syscallExecute(int syscallId, const struct cpu_state *userCtx)
assert(0);
break;
}
case SYSCALL_ID_YOLO:
ret = printf("YOLO FROM USERSPACE\n");
case SYSCALL_ID_HELO:
ret = printf("HELLO FROM USERSPACE\n");
break;
case SYSCALL_ID_PUTC: {
unsigned int c;

View File

@ -4,7 +4,7 @@
#endif
#define SYSCALL_ID_EXIT 1
#define SYSCALL_ID_YOLO 2
#define SYSCALL_ID_HELO 2
#define SYSCALL_ID_PUTC 3
#define SYSCALL_ID_READ 4
#define SYSCALL_ID_TEST 5

View File

@ -399,7 +399,7 @@ static void userProgramm()
"int %5\n"
"movl %%eax, %0"
: "=g"(ret)
: "g"(SYSCALL_ID_YOLO), "g"(0), "g"(0), "g"(0), "i"(SYSCALL_INTR_NB)
: "g"(SYSCALL_ID_HELO), "g"(0), "g"(0), "g"(0), "i"(SYSCALL_INTR_NB)
: "eax", "ebx", "ecx", "edx");
asm volatile("movl %1,%%eax \n"
"movl %2,%%ebx \n"

View File

@ -4,7 +4,7 @@
#endif
#define SYSCALL_ID_EXIT 1
#define SYSCALL_ID_YOLO 2
#define SYSCALL_ID_HELO 2
#define SYSCALL_ID_PUTC 3
#define SYSCALL_ID_READ 4
#define SYSCALL_ID_TEST 5

View File

@ -521,9 +521,9 @@ int putc(const int c){
return syscall1(SYSCALL_ID_PUTC, c);
}
void yolo()
void helo()
{
syscall0(SYSCALL_ID_YOLO);
syscall0(SYSCALL_ID_HELO);
}
int testSycall5(uint arg1, uint arg2, uint arg3, uint arg4, uint arg5)

View File

@ -42,7 +42,7 @@ int syscall1(int id, unsigned int arg1);
int syscall0(int id);
void _exit(int status);
void yolo();
void helo();
int testSycall5(uint arg1, uint arg2, uint arg3, uint arg4, uint arg5);
char readc();
char getchar();