*/
fastcall unsigned int do_IRQ(struct pt_regs *regs)
{
- /* high bit used in ret_from_ code */
- int irq = ~regs->orig_eax;
+ /* high bits used in ret_from_ code */
+ int irq = regs->orig_eax & 0xff;
#ifdef CONFIG_4KSTACKS
union irq_ctx *curctx, *irqctx;
u32 *isp;