Re: .rtemsstack location on ARM

2020-02-16 Thread Sebastian Huber

Hello Will,

I think you discovered a bug in the ARMv-7M linker command file, the 
bsp_vector_table_size should be 0.


On 09/01/2020 16:07, Will wrote:

Hi Sebastian,
The relocated vector table is also present in REGION_VECTOR as long as 
bsp_vector_table_in_start_section is not defined in the linker script. 
It sounds like this is expected behavior, though, so I'll 
adjust accordingly.


Thanks,
William

On Wed, Jan 8, 2020 at 11:58 PM Sebastian Huber 
> wrote:


Hello,

the region name REGION_VECTOR is a bit misleading. For ARMv-7M the
vector table is in the .bsp_start_text section, see
"bsps/arm/shared/start/start.S". In the REGION_VECTOR there is only the
interrupt stack.

-- 
Sebastian Huber, embedded brains GmbH


Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de

PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: .rtemsstack location on ARM

2020-01-09 Thread Will
Hi Sebastian,
The relocated vector table is also present in REGION_VECTOR as long as
bsp_vector_table_in_start_section is not defined in the linker script. It
sounds like this is expected behavior, though, so I'll adjust accordingly.

Thanks,
William

On Wed, Jan 8, 2020 at 11:58 PM Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:

> Hello,
>
> the region name REGION_VECTOR is a bit misleading. For ARMv-7M the
> vector table is in the .bsp_start_text section, see
> "bsps/arm/shared/start/start.S". In the REGION_VECTOR there is only the
> interrupt stack.
>
> --
> Sebastian Huber, embedded brains GmbH
>
> Address : Dornierstr. 4, D-82178 Puchheim, Germany
> Phone   : +49 89 189 47 41-16
> Fax : +49 89 189 47 41-09
> E-Mail  : sebastian.hu...@embedded-brains.de
> PGP : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: .rtemsstack location on ARM

2020-01-08 Thread Sebastian Huber

Hello,

the region name REGION_VECTOR is a bit misleading. For ARMv-7M the 
vector table is in the .bsp_start_text section, see 
"bsps/arm/shared/start/start.S". In the REGION_VECTOR there is only the 
interrupt stack.


--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

.rtemsstack location on ARM

2020-01-08 Thread Will
I've been working on a Cortex-M4 BSP and its Qemu model has some
peculiarities requiring me to relocate the vector table to the end of the
available storage, at least temporarily. In the process of doing this, I
noticed that .rtemsstack is placed in REGION_VECTOR in the shared
linkcmds.base instead of REGION_WORK like it is for or1k and epiphany. This
complicates relocation of the vector table a bit and while I can hack
around it for now, I was wondering if this was intentional on ARM.

William
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel