Interrupt 42

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
TheLittleWho
Member
Member
Posts: 51
Joined: Sun Mar 01, 2015 7:58 am

Interrupt 42

Post by TheLittleWho »

I tried to test my kernel on real hardware. The kernel boots up, print welcome message, but when interrupts are enabled, I receive interrupt 42 and I don't know how to handle it and my system crash. I searched on web what it is, but I found nothing.

So, what is interrupt 42 and what is its cause?

Thanks!
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: Interrupt 42

Post by kzinti »

It's the answer to the Ultimate Question of Life, the Universe, and Everything.
TheLittleWho
Member
Member
Posts: 51
Joined: Sun Mar 01, 2015 7:58 am

Re: Interrupt 42

Post by TheLittleWho »

The Essence of Universe doesn't help me until it is a handler for Interrupt 42.
User avatar
iansjack
Member
Member
Posts: 4707
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Interrupt 42

Post by iansjack »

Network card? You should mask out all hardware interrupts that you don't have handlers for before enabling interrupts.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Interrupt 42

Post by Combuster »

According to the wiki page on Interrupts:
IRQ 10 | Free for peripherals / SCSI / NIC
Basically it can be anything that wasn't shipped by default in an old IBM PC.

So unless you expect something to cause an interrupt, you should silence it by masking. You'll naturally figure what it really was by the time your OS is far enough that you start doing things with these "extra" components.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply