mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 15:32:25 +00:00
hw_x86_64: Set dpl of syscall IDT entry to 3
Since this IDT entry is called from usermode the descriptor privilege level must be 3.
This commit is contained in:
parent
ed06c46233
commit
793b5264e3
@ -17,7 +17,8 @@ class Genode::Idt
|
||||
private:
|
||||
|
||||
enum {
|
||||
SIZE_IDT = 256,
|
||||
SIZE_IDT = 256,
|
||||
SYSCALL_VEC = 0x80,
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -28,6 +28,9 @@ void Idt::setup()
|
||||
_table[vec].offset_31_16 = (*isrs >> 16) & 0xffff;
|
||||
_table[vec].offset_63_32 = (*isrs >> 32) & 0xffff;
|
||||
}
|
||||
|
||||
/* Set DPL of syscall entry to 3 */
|
||||
_table[SYSCALL_VEC].flags = _table[SYSCALL_VEC].flags | 0x6000;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user