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!
Interrupt 42
Re: Interrupt 42
It's the answer to the Ultimate Question of Life, the Universe, and Everything.
-
- Member
- Posts: 51
- Joined: Sun Mar 01, 2015 7:58 am
Re: Interrupt 42
The Essence of Universe doesn't help me until it is a handler for Interrupt 42.
Re: Interrupt 42
Network card? You should mask out all hardware interrupts that you don't have handlers for before enabling interrupts.
- Combuster
- 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
According to the wiki page on Interrupts:
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.
Basically it can be anything that wasn't shipped by default in an old IBM PC.IRQ 10 | Free for peripherals / SCSI / NIC
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.