PDA

View Full Version : Change IDT, GDT, LDT base with C or C++


sandiego_f
04-14-2009, 10:28 AM
Hello everybody,

i need for testing purpose to change the base adress (only the base adress nothing else) of the IDT, GDT, and/or LDT with C or C++. I know the system might crash but it doesnt matter.

I know that it can be made with just 2-5 lines of inline assembler like (__asm lgdt ...) but iam not that good to do it :(

So can maybe anybody give me a short code-snippet just to change the idt-base to "0xff3352" ? That would be really great and kinda save my *** ;)

Thanks in advance!
Sandiego