This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, avr] Add atmel ata5782 and ata5831 devices
- From: Denis Chertykov <chertykov at gmail dot com>
- To: "S, Pitchumani" <Pitchumani dot S at atmel dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Georg-Johann Lay <avr at gjlay dot de>
- Date: Fri, 11 Jul 2014 20:22:30 +0400
- Subject: Re: [Patch, avr] Add atmel ata5782 and ata5831 devices
- Authentication-results: sourceware.org; auth=none
- References: <CAC140656783604CABA6AE60C2A6D5A4979202C6 at penmbx01>
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.