OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 17, 2024 6:11 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Any easy way to check if my GDT works?
PostPosted: Sat Jan 27, 2018 11:05 am 
Offline
Member
Member

Joined: Fri Jan 26, 2018 11:43 am
Posts: 64
As far as I can tell, I've set up a GDT, and it seems that the logical thing to do now is to set up an IDT.
How can I check if my GDT does in fact work? My kernel does run, without any obvious errors.
I need to know if it works before implementing an IDT, right? Do I just have to trust that it does?


Top
 Profile  
 
 Post subject: Re: Any easy way to check if my GDT works?
PostPosted: Sat Jan 27, 2018 11:38 am 
Offline
Member
Member

Joined: Thu May 17, 2007 1:27 pm
Posts: 999
You can check the segment limits etc. in bochs or some other debugger. But other than that, your GDT works if your kernel does not raise random general protection exceptions or triple fault.

_________________
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], DotBot [Bot], Google [Bot] and 203 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