This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, avr] Add atmel ata5782 and ata5831 devices


2014-07-11 12:50 GMT+04:00 S, Pitchumani <Pitchumani.S@atmel.com>:
> This patch adds supports for Atmel's ata5782 and ata5831 devices.
>
> These devices ISA matches with AVR5 architecture except that text section
> start for these two devices is 0x8000. By default 0x0 is used as the text
> start address. This patch adds a device attribute for text start and that
> is passed to Linker via -Ttext option.
>
> If OK, could someone commit please?
>
> Regards,
> Pitchumani
>
> 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
>
>     * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
>     * config/avr/avr-devices.c (AVR_MCU): Same.
>     (avr_mcu_types): add text start value to end of device list.
>     * config/avr/avr-mcus.def: Add text section start for all devices.
>     (ata5782): Add new avr5 device.
>     (ata5831): Same.
>     * config/avr/avr-tables.opt: Regenerate.
>     * config/avr/avr.h: Add declaration for text section start handler.
>     (EXTRA_SPEC_FUNCTIONS): Add text section start handler to SPEC functions.
>     (LINK_SPEC): Include text section start handler to linker spec.
>     * config/avr/driver-avr.c (avr_device_to_text_start): New function to
>     pass -Ttext option to linker if the text section start for the device is
>     not zero.
>     * config/avr/t-multilib: Regenerate.
>     * doc/avr-mmcu.texi: Regenerate.
>

Committed.

Denis.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]