mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 16:47:45 +00:00
Kernel: Remove storage_segment from IDTEntry constructor
On x86_64 and x86, storage_segment (bit 12 counting from 0) is always 0 according to the Intel Software Developer's Manual, volume 3A, section 6.11 and section 6.14.1. It has therefore been removed as a parameter from IDTEntry's constructor and hardwired to 0.
This commit is contained in:
parent
8740a8c056
commit
9e8e93d91d
2 changed files with 4 additions and 6 deletions
|
@ -121,14 +121,14 @@ struct [[gnu::packed]] IDTEntry
|
|||
u32 zeros;
|
||||
|
||||
IDTEntry() = default;
|
||||
IDTEntry(FlatPtr callback, u16 selector_, IDTEntryType type, u8 storage_segment, u8 privilege_level)
|
||||
IDTEntry(FlatPtr callback, u16 selector_, IDTEntryType type, u8 privilege_level)
|
||||
: offset_1 { (u16)((FlatPtr)callback & 0xFFFF) }
|
||||
, selector { selector_ }
|
||||
, interrupt_stack_table { 0 }
|
||||
, zero { 0 }
|
||||
, type_attr {
|
||||
.gate_type = (u8)type,
|
||||
.storage_segment = storage_segment,
|
||||
.storage_segment = 0,
|
||||
.descriptor_privilege_level = (u8)(privilege_level & 0b11),
|
||||
.present = 1,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue