OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 3:28 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Interrupts without IDT
PostPosted: Sat Sep 11, 2021 1:30 pm 
Offline
Member
Member
User avatar

Joined: Mon Sep 21, 2020 9:51 am
Posts: 100
Location: Aboard the Enterprise
How would I make an interrupt handler without the 32-bit specific IDT? The tutorial is aimed at 32-bit x86, and uses the IDT, which I believe is 32-bit.

_________________
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!


Top
 Profile  
 
 Post subject: Re: Interrupts without IDT
PostPosted: Sat Sep 11, 2021 4:08 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
You should check if your question is already answered by the wiki before you post.


Top
 Profile  
 
 Post subject: Re: Interrupts without IDT
PostPosted: Sat Sep 11, 2021 9:31 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1593
I also have absolutely no idea what the OP wants. All interrupts are dispatched through the IDT, and the IDT format is mode dependent. If you want to handle interrupts, you must register your interrupt handler in the IDT, and it has to be in the format valid for your current mode of operation. Handling interrupts without IDT makes no sense. That is like wanting to be washed but not made wet.

_________________
Carpe diem!


Top
 Profile  
 
 Post subject: Re: Interrupts without IDT
PostPosted: Sun Sep 12, 2021 1:53 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
How would you know which interrupt handler to call for each interrupt? One solution would be to construct a table linking the two....


Top
 Profile  
 
 Post subject: Re: Interrupts without IDT
PostPosted: Sun Sep 12, 2021 1:55 pm 
Offline
Member
Member
User avatar

Joined: Mon Sep 21, 2020 9:51 am
Posts: 100
Location: Aboard the Enterprise
OK, I guess this throws me off:
Quote:
The Interrupt Descriptor Table (IDT) is specific to the IA-32 architecture.

_________________
USS Enterprise NCC-1701,
The Final Frontier,
Space,
The Universe

Live Long And Prosper

Slava Ukraini!
Слава Україні!


Top
 Profile  
 
 Post subject: Re: Interrupts without IDT
PostPosted: Sun Sep 12, 2021 2:45 pm 
Offline
Member
Member
User avatar

Joined: Tue Sep 15, 2020 8:07 am
Posts: 264
Location: London, UK
PavelCheckov wrote:
OK, I guess this throws me off:
Quote:
The Interrupt Descriptor Table (IDT) is specific to the IA-32 architecture.


I think this means you won’t find this horribly complex system on other architectures, like 68k, ARM, PPC, MIPS, or RISC-IV

_________________
CuriOS: A single address space GUI based operating system built upon a fairly pure Microkernel/Nanokernel. Download latest bootable x86 Disk Image: https://github.com/h5n1xp/CuriOS/blob/main/disk.img.zip
Discord:https://discord.gg/zn2vV2Su


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

All times are UTC - 6 hours


Who is online

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