From fd1adc02622dd2e764f9d38c5f9df01f0f1be237 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Tue, 9 Apr 2019 23:35:32 -0700 Subject: [PATCH] Put MAX_SYSCALLS in hex to match syscalls list --- src/kernel/syscall.h | 2 +- src/kernel/syscall.s | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/syscall.h b/src/kernel/syscall.h index d7a751b..5005c4f 100644 --- a/src/kernel/syscall.h +++ b/src/kernel/syscall.h @@ -12,7 +12,7 @@ enum class syscall : uint64_t // Maximum syscall id. If you change this, also change // MAX_SYSCALLS in syscall.s - MAX = 64 + MAX = 0x40 }; void syscall_enable(); diff --git a/src/kernel/syscall.s b/src/kernel/syscall.s index 64a989d..82ac6ae 100644 --- a/src/kernel/syscall.s +++ b/src/kernel/syscall.s @@ -3,7 +3,7 @@ ; Make sure to keep MAX_SYSCALLS in sync with ; syscall::MAX in syscall.h -MAX_SYSCALLS equ 64 +MAX_SYSCALLS equ 0x40 extern __counter_syscall_enter extern __counter_syscall_sysret