Help with 32-bit IDT handlers

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
icr09
Posts: 1
Joined: Fri Oct 02, 2026 3:06 pm

Help with 32-bit IDT handlers

Post by icr09 »

Hi, I'm new to OSdev. I'm not quite sure how to navigate the site, so I apologize if I've posted this in the wrong place. Lately, I've been struggling to find information on how to create handlers—such as one for division-by-zero errors. Could someone give me a tip on where to find this info, or perhaps how to write a simple handler? I've checked various sources, but I haven't been able to find a clear explanation or any relevant results in my searches.
Octocontrabass
Member
Member
Posts: 6268
Joined: Mon Mar 25, 2013 7:01 pm

Re: Help with 32-bit IDT handlers

Post by Octocontrabass »

This is a really vague question. Which part, specifically, are you having trouble with? Creating the IDT structure in memory and telling the CPU to use it? Writing assembly stubs to fix up the ABI and call a handler written in a higher-level language? Deciding what you want the handler to do when it's called?
Post Reply