lkml.org 
[lkml]   [1999]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectUnknown interrupt code
This one would work better IMO.
diff -ur /linux/arch/i386/kernel/irq.c linux/arch/i386/kernel/irq.c
--- /linux/arch/i386/kernel/irq.c Thu Jan 21 11:50:43 1999
+++ linux/arch/i386/kernel/irq.c Tue Feb 9 10:35:59 1999
@@ -993,13 +993,11 @@

__asm__("\n" __ALIGN_STR"\n"
"common_unexpected:\n\t"
- SAVE_ALL
- "pushl $ret_from_intr\n\t"
- "jmp strange_interrupt");
+ "call strange_interrupt");

void strange_interrupt(int irqnum)
{
- printk("Unexpected interrupt %d\n", irqnum & 255);
+ printk("Unexpected interrupt %d\n", irqnum);
for (;;);
}

@@ -1013,7 +1011,7 @@

jumpto -= (unsigned long)(code+10);
code[0] = 0x68; /* pushl */
- *(int *)(code+1) = i - 512;
+ *(int *)(code+1) = i;
code[5] = 0xe9; /* jmp */
*(int *)(code+6) = jumpto;

Only in linux/arch/i386/kernel: irq.c~
\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.025 / U:0.688 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site