OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Apr 27, 2024 10:01 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: GDT, IDT
PostPosted: Sun Mar 10, 2002 5:29 pm 
GDT and IDT tables should be located below 0x100000 (1M) or it doesn't matter and I can locate it above 1M?


Top
  
 
 Post subject: Re: GDT, IDT
PostPosted: Sun Mar 10, 2002 9:11 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 22, 2004 11:00 pm
Posts: 1076
you can locate them anywhere in physical memory.

_________________
-- Stu --


Top
 Profile  
 
 Post subject: Re: GDT, IDT
PostPosted: Sun Mar 10, 2002 9:29 pm 
How do you choose where to load them in memory? Is there something in EAX/AX that you do before you call lgdt/lidt?

K.J.


Top
  
 
 Post subject: Re: GDT, IDT
PostPosted: Sun Mar 10, 2002 10:46 pm 
i do following:
grub loads my kernel at 0x100000 (1M) and above,
the gdt and idt tables are created in code section of kernel, i.e. above 1M.
when i set idt, remap interrupt and enable them triple fault occurs (gdt was setted far far before that and may be work?).
the bochs log contains this statement (before first exception) (not exactly):
..... incorrect .. gate .. non-executable segment..

why? i try to locate gdt, idt at 0x0000 - 0x..... lets see.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group