Add missing header and bugfix in disabled code
This commit is contained in:
parent
3c09132308
commit
7d24df2f07
@ -4,6 +4,7 @@
|
|||||||
#include <kconfig.h>
|
#include <kconfig.h>
|
||||||
#include <kassert.h>
|
#include <kassert.h>
|
||||||
#include <kmem.h>
|
#include <kmem.h>
|
||||||
|
#include <irq.h>
|
||||||
|
|
||||||
#include "amd64.h"
|
#include "amd64.h"
|
||||||
#include "ioapic.h"
|
#include "ioapic.h"
|
||||||
@ -76,7 +77,7 @@ void Machine_SyscallInit()
|
|||||||
{
|
{
|
||||||
kprintf("Initializing Syscall... ");
|
kprintf("Initializing Syscall... ");
|
||||||
|
|
||||||
wrmsr(MSR_STAR, SEL_KCS << 32 | SEL_UCS << 48);
|
wrmsr(MSR_STAR, (uint64_t)SEL_KCS << 32 | (uint64_t)SEL_UCS << 48);
|
||||||
wrmsr(MSR_LSTAR, 0);
|
wrmsr(MSR_LSTAR, 0);
|
||||||
wrmsr(MSR_CSTAR, 0);
|
wrmsr(MSR_CSTAR, 0);
|
||||||
wrmsr(MSR_SFMASK, 0);
|
wrmsr(MSR_SFMASK, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user