mirror of
https://github.com/0xAX/linux-insides
synced 2024-11-17 15:29:56 +00:00
Update the definition of idt_descr
This commit is contained in:
parent
817c915f98
commit
76337791b4
@ -240,7 +240,10 @@ load_idt((const struct desc_ptr *)&idt_descr);
|
||||
Where `idt_descr` is:
|
||||
|
||||
```C
|
||||
struct desc_ptr idt_descr = { NR_VECTORS * 16 - 1, (unsigned long) idt_table };
|
||||
struct desc_ptr idt_descr __ro_after_init = {
|
||||
.size = (IDT_ENTRIES * 2 * sizeof(unsigned long)) - 1,
|
||||
.address = (unsigned long) idt_table,
|
||||
};
|
||||
```
|
||||
|
||||
and `load_idt` just executes `lidt` instruction:
|
||||
|
Loading…
Reference in New Issue
Block a user