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); assert(0);
break; break;
} }
case SYSCALL_ID_YOLO: case SYSCALL_ID_HELO:
ret = printf("YOLO FROM USERSPACE\n"); ret = printf("HELLO FROM USERSPACE\n");
break; break;
case SYSCALL_ID_PUTC: { case SYSCALL_ID_PUTC: {
unsigned int c; unsigned int c;

View File

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

View File

@ -399,7 +399,7 @@ static void userProgramm()
"int %5\n" "int %5\n"
"movl %%eax, %0" "movl %%eax, %0"
: "=g"(ret) : "=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"); : "eax", "ebx", "ecx", "edx");
asm volatile("movl %1,%%eax \n" asm volatile("movl %1,%%eax \n"
"movl %2,%%ebx \n" "movl %2,%%ebx \n"

View File

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

View File

@ -521,9 +521,9 @@ int putc(const int c){
return syscall1(SYSCALL_ID_PUTC, 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) 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); int syscall0(int id);
void _exit(int status); void _exit(int status);
void yolo(); void helo();
int testSycall5(uint arg1, uint arg2, uint arg3, uint arg4, uint arg5); int testSycall5(uint arg1, uint arg2, uint arg3, uint arg4, uint arg5);
char readc(); char readc();
char getchar(); char getchar();