mirror of git://gcc.gnu.org/git/gcc.git
invoke.texi (AVR Options): Fix typos.
* doc/invoke.texi (AVR Options): Fix typos. From-SVN: r188053
This commit is contained in:
parent
37239ce661
commit
5b2f6f97b3
|
@ -1,3 +1,7 @@
|
||||||
|
2012-05-31 Georg-Johann Lay <avr@gjlay.de>
|
||||||
|
|
||||||
|
* doc/invoke.texi (AVR Options): Fix typos.
|
||||||
|
|
||||||
2012-05-31 Hans-Peter Nilsson <hp@axis.com>
|
2012-05-31 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
* config/cris/cris.h (CC1_SPEC): Pass through all -march=
|
* config/cris/cris.h (CC1_SPEC): Pass through all -march=
|
||||||
|
|
|
@ -11171,26 +11171,26 @@ points to.
|
||||||
|
|
||||||
@item
|
@item
|
||||||
The startup code from libgcc never sets @code{EIND}.
|
The startup code from libgcc never sets @code{EIND}.
|
||||||
Notice that startup code is a blend of code from libgcc and AVR-Libc.
|
Notice that startup code is a blend of code from libgcc and AVR-LibC.
|
||||||
For the impact of AVR-Libc on @code{EIND}, see the
|
For the impact of AVR-LibC on @code{EIND}, see the
|
||||||
@w{@uref{http://nongnu.org/avr-libc/user-manual,AVR-Libc user manual}}.
|
@w{@uref{http://nongnu.org/avr-libc/user-manual,AVR-LibC user manual}}.
|
||||||
|
|
||||||
@item
|
@item
|
||||||
It is legitimate for user-specific startup code to set up @code{EIND}
|
It is legitimate for user-specific startup code to set up @code{EIND}
|
||||||
early, for example by means of initialization code located in
|
early, for example by means of initialization code located in
|
||||||
section @code{.init3}. Such code runs prior to general startup code
|
section @code{.init3}. Such code runs prior to general startup code
|
||||||
that initializes RAM and calls constructors, but after the bit
|
that initializes RAM and calls constructors, but after the bit
|
||||||
of startup code from AVR-Libc that sets @code{EIND} to the segment
|
of startup code from AVR-LibC that sets @code{EIND} to the segment
|
||||||
where the vector table is located.
|
where the vector table is located.
|
||||||
@example
|
@example
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
|
|
||||||
static void
|
static void
|
||||||
__attribute__ ((section (".init3"), naked, used, no_instrument_function))
|
__attribute__((section(".init3"),naked,used,no_instrument_function))
|
||||||
init3_set_eind (void)
|
init3_set_eind (void)
|
||||||
@{
|
@{
|
||||||
__asm volatile ("ldi r24, pm_hh8(__trampolines_start)" "\n\t"
|
__asm volatile ("ldi r24,pm_hh8(__trampolines_start)\n\t"
|
||||||
"out %i0, r24" :: "n" (&EIND) : "r24", "memory");
|
"out %i0,r24" :: "n" (&EIND) : "r24","memory");
|
||||||
@}
|
@}
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue