mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
MSR and syscall changes
- Moved MSR code to separate files with an enum class - Implemented syscall_enable in C++ using new MSR calls
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include <stdint.h>
|
||||
#include "kutil/memory.h"
|
||||
|
||||
struct cpu_state;
|
||||
|
||||
enum class syscall : uint64_t
|
||||
{
|
||||
noop,
|
||||
@@ -13,6 +15,6 @@ enum class syscall : uint64_t
|
||||
last_syscall
|
||||
};
|
||||
|
||||
struct cpu_state;
|
||||
void syscall_enable();
|
||||
addr_t syscall_dispatch(addr_t, const cpu_state &);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user