OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 3:52 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [SOLVED] Triple Fault on filling screen.
PostPosted: Thu Jul 13, 2017 10:48 pm 
Offline
User avatar

Joined: Wed Mar 11, 2015 8:13 pm
Posts: 23
Quote:
Hi guys (noob here) , I am developing a simple text based Operating system here, I am in protected mode, and I noticed when the screen is filled with text, a triple fault triggers, is it a common problem? or did I make a coding mistake?
also I Use the same Debug Text Printing from Brokenthorn Tutorials.
anyway see the attachment to understand what I mean.

Cheers.


EDIT:
I solved it by clearing the screen when it is fill (Temporary of course).
also about the triple fault , it looks like, I fucked up the GDT by mistake, I fixed it and it worked.

Thanks for you Attention.

_________________
Developing ZeroX Operating System;
I code C++ so much that I am ending English Statements & Replies with semi-colon instead of dot;


Last edited by zlixine on Fri Jul 14, 2017 6:57 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Triple Fault on filling screen.
PostPosted: Fri Jul 14, 2017 12:52 am 
Offline
Member
Member
User avatar

Joined: Thu Apr 16, 2015 7:37 am
Posts: 64
I took a quick glance at the text output code and saw this line:

Code:
if (cursor_y >= 25)


That should probably be 24, since the screen is only 25 lines, and it's zero indexed, so your cursor Y should only go from 0 to 24. Try just replacing the ">= 25" with "> 24" and see how it goes.

Also, just a side note, the repo needs a bit of a clean, you've got a .gitignore file in there, but you still need to git-rm the leftovers that are being tracked or otherwise remove them from the repo.

- Mikumiku747


Top
 Profile  
 
 Post subject: Re: Triple Fault on filling screen.
PostPosted: Fri Jul 14, 2017 8:53 am 
Offline
User avatar

Joined: Wed Mar 11, 2015 8:13 pm
Posts: 23
Mikumiku747 wrote:
That should probably be 24, since the screen is only 25 lines, and it's zero indexed, so your cursor Y should only go from 0 to 24. Try just replacing the ">= 25" with "> 24" and see how it goes.


Didn't Work :( , it still restarts the emulator.

Mikumiku747 wrote:
Also, just a side note, the repo needs a bit of a clean, you've got a .gitignore file in there, but you still need to git-rm the leftovers that are being tracked or otherwise remove them from the repo.

Yes, I am aware of this, and I am planning to fix it soon.

_________________
Developing ZeroX Operating System;
I code C++ so much that I am ending English Statements & Replies with semi-colon instead of dot;


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 54 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