Re: Wanted: A decent assembler

From: Chuck Ebbert (76306.1226@compuserve.com)
Date: Wed Apr 23 2003 - 08:49:21 EST


Chuck Ebbert wrote:

> <mangled asm source>

 Should be:

.if NR_IRQS gt 16 # only build this for IO-APIC
        .align 8,0x90 # make ENTRY have exact address
irq_align=8 # start with 8-byte alignment
ENTRY(high_irq_entries_start)
.rept NR_IRQS-16 # the rest of the stubs
        .align irq_align,0x90
1: pushl $vector-256 # 5-byte instruction
        jmp common_interrupt # 2 or 5 bytes (8 or 32-bit offset)
2:
.if 2b-1b > 8 # offset changed to 32-bit
        irq_align=16 # switch to 16-byte alignment
.endif
.data
        .long 1b
.text
vector=vector+1
.endr
.endif

-------
 Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Apr 23 2003 - 22:00:36 EST