mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Added syscalls stub
This commit is contained in:
@ -1007,7 +1007,7 @@ namespace CPU
|
||||
uint64_t raw;
|
||||
} RFLAGS;
|
||||
|
||||
typedef struct _TrapFrame
|
||||
typedef struct TrapFrame
|
||||
{
|
||||
// uint64_t gs; // General-purpose Segment
|
||||
// uint64_t fs; // General-purpose Segment
|
||||
|
25
include/syscalls.hpp
Normal file
25
include/syscalls.hpp
Normal file
@ -0,0 +1,25 @@
|
||||
#ifndef __FENNIX_KERNEL_SYSCALLS_H__
|
||||
#define __FENNIX_KERNEL_SYSCALLS_H__
|
||||
|
||||
#include <types.h>
|
||||
|
||||
typedef struct SyscallsRegs
|
||||
{
|
||||
#if defined(__amd64__)
|
||||
uint64_t r15, r14, r13, r12, r11, r10, r9, r8;
|
||||
uint64_t rbp, rdi, rsi, rdx, rcx, rbx, rax;
|
||||
uint64_t int_num, error_code, rip, cs, rflags, rsp, ss;
|
||||
#elif defined(__i386__)
|
||||
uint64_t r15, r14, r13, r12, r11, r10, r9, r8;
|
||||
uint64_t ebp, edi, esi, edx, ecx, ebx, eax;
|
||||
uint64_t int_num, error_code, eip, cs, eflags, esp, ss;
|
||||
#elif defined(__aarch64__)
|
||||
#endif
|
||||
} SyscallsRegs;
|
||||
|
||||
/**
|
||||
* @brief Initialize syscalls for the current CPU. (Function is available on x32, x64 & aarch64)
|
||||
*/
|
||||
void InitializeSystemCalls();
|
||||
|
||||
#endif // !__FENNIX_KERNEL_SYSCALLS_H__
|
Reference in New Issue
Block a user