[PATCH 3/4] bsp/riscv: work area size based on stack pointer

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Feb 9 05:11:47 UTC 2021


On 08/02/2021 20:44, Daniel Hellstrom wrote:

> +
> +	.section	.data, "aw"
> +	.align	3
> +
> +	.globl	bsp_sp_at_entry
> +	.type	bsp_sp_at_entry, @object
> +	.size	bsp_sp_at_entry, 8
> +bsp_sp_at_entry:
> +	.dword  0

The size of this object should match uintptr_t. I would name this 
variable riscv_start_stack_pointer. It should be declared in a new 
header file "bsps/riscv/include/bsp/start.h".

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/



More information about the devel mailing list