reinstalling the IDT /GDT
reinstalling the IDT /GDT
What would happen, should you install create two different IDTs/GDTs and install them at different moments? (bootloader + kernel)
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: reinstalling the IDT /GDT
Have you even RTFMed that?
Re: reinstalling the IDT /GDT
Are you expecting something special to happen the second time that you install a GDT or IDT?
To put in other words, nothing would happen. (Depending on how different they are, you may need to do some setup work before reinstalling them though...The same principle with installing them for the first time).
To put in other words, nothing would happen. (Depending on how different they are, you may need to do some setup work before reinstalling them though...The same principle with installing them for the first time).
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Re: reinstalling the IDT /GDT
lgdt and lidt store the current GDT and IDT in a hidden register. Every time you use those instructions, the register's contents, and therefore the GDT and IDT, are replaced with a new one.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: reinstalling the IDT /GDT
Having more than one IDT isn't all that uncommon anyway.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]