[U-Boot] [PATCH 07/10] Rearrange i386 Interupt Handling
Joakim Tjernlund
joakim.tjernlund at transmode.se
Tue Oct 20 16:35:00 CEST 2009
>
> In preperation for full relocation
>
> Signed-off-by: Graeme Russ <graeme.russ at gmail.com>
> ---
> cpu/i386/Makefile | 2 +-
> cpu/i386/cpu.c | 1 -
> cpu/i386/exceptions.c | 229 ---------------------
> cpu/i386/interrupts.c | 431 ++++++++++++++++++++++++++++++++++++++--
> include/asm-i386/interrupt.h | 27 ---
> include/asm-i386/u-boot-i386.h | 3 -
> lib_i386/interrupts.c | 4 +-
> lib_i386/pcat_interrupts.c | 33 ---
> 8 files changed, 420 insertions(+), 310 deletions(-)
> delete mode 100644 cpu/i386/exceptions.c
Don't know much about x86, but should not these new asm
symbools be .hidden and .type <fun>, @function ?
>
> +#define DECLARE_INTERRUPT(x) \
> + ".globl irq_"#x"\n" \
> + "irq_"#x":\n" \
> + "pushl %ebp\n" \
> + "movl %esp,%ebp\n" \
> + "pusha\n" \
> + "pushl $"#x"\n" \
> + "jmp irq_common_entry\n"
> +asm(".globl irq_common_entry\n" \
> + "irq_common_entry:\n" \
> + "pushl $0\n" \
> + "pushl $0\n" \
> + "call irq_llsr\n" \
> + "popl %eax\n" \
> + "popl %eax\n" \
More information about the U-Boot
mailing list