OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 12:50 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Higher-half kernel causes exception
PostPosted: Thu Apr 08, 2021 1:40 pm 
Offline

Joined: Sun Feb 03, 2019 8:30 am
Posts: 4
Location: Minnesota
Hello everyone,

Recently I have begun working on my higher half kernel. It was able to boot and print some output through QEMU, and I began working on my GDT.

However, I came across a problem: When I include my GDT code in the kernel, the kernel triggers an exception. The GDT code isn't even running, it happens somewhere in the initialization where the kernel maps itself above the 3GB marker. I think it is due to the increased size, but the kernel is only ~25KiB.

I have been struggling to tackle this problem.

My code is here: https://github.com/JonArcherII/mobius

Thanks in advance!

_________________
https://github.com/JonArcherII


Top
 Profile  
 
 Post subject: Re: Higher-half kernel causes exception
PostPosted: Thu Apr 08, 2021 9:00 pm 
Online
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5100
arraystock wrote:
When I include my GDT code in the kernel, the kernel triggers an exception.

Which exception?

What's the CPU state when the exception occurs?

(You can find the answers to both questions by adding "-d int" to your QEMU command line. You may need to disable hardware acceleration. You might also want to add "-no-reboot".)


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], Google [Bot], SemrushBot [Bot] and 57 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