1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-22 22:58:08 +00:00

Merge pull request #614 from tkyymmt/patch2

Update the definition of idt_descr
This commit is contained in:
0xAX 2018-09-02 13:09:21 +06:00 committed by GitHub
commit 4893578e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,7 +220,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: