Page 1 of 1

Help with 32-bit IDT handlers

Posted: Fri Oct 02, 2026 3:18 pm
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.

Re: Help with 32-bit IDT handlers

Posted: Fri Oct 02, 2026 10:16 pm
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?