How to initialize GDT, IDT?
Posted: Thu Aug 19, 2010 6:28 am
Hi, All I read is lots of complex information about theory of GDT LDT and paging. But this is not going to work with m (or possibly with anyone) to get 'Clear' picture of Kernel. So I want to write some code and try out the things myself. I have following doubts/plans kindly help m,
1. I am in real mode 16 bit code so I am not able to use c code. OR how can I use 'c'?
2. To initialize GDT I need a 32 bit physical memory address and 16 bit table limit. Now since its 64 bit struct do I need to use DB and init every bits of table in assembly?
please tell some guideline or links for Init of GDT and paging.
1. I am in real mode 16 bit code so I am not able to use c code. OR how can I use 'c'?
2. To initialize GDT I need a 32 bit physical memory address and 16 bit table limit. Now since its 64 bit struct do I need to use DB and init every bits of table in assembly?
please tell some guideline or links for Init of GDT and paging.