[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Internal handling of interrupt vectors and jump table
From: |
Klaus Rudolph |
Subject: |
Re: [avr-gcc-list] Internal handling of interrupt vectors and jump table |
Date: |
Wed, 12 Aug 2015 09:16:24 +0200 |
Hi Georg,
thanks for your info!
> > Disassembly of section .text:
> > 00000000 <__vector_7>:
>
> The .vectors section is implemented in AVR-LibC's gcrt1.S.
> ISR and similar macros are provided by interrupt.h.
Yes, I found the tricky part of the job.
.macro vector name
.if (. - __vectors < _VECTORS_SIZE)
.weak \name
.set \name, __bad_interrupt
XJMP \name
.endif
.endm
.section .vectors,"ax",@progbits
.global __vectors
.func __vectors
__vectors:
XJMP __init
vector __vector_1
vector __vector_2
The resolution and assignment is only done by the name of the function. Quite
simple after finding the stuff :-)
Thanks!
Klaus