[U-Boot] [PATCH v2] nios2: convert copy_exception_trampoline to use dm cpu data

Marek Vasut marex at denx.de
Fri Oct 9 16:48:39 CEST 2015


On Friday, October 09, 2015 at 10:45:56 AM, Thomas Chou wrote:
> Hi Ley Foon,
> 
> On 10/09/2015 10:51 AM, Ley Foon Tan wrote:
> >> +static void copy_exception_trampoline(void)
> >> +{
> >> +       extern int _except_start, _except_end;
> > 
> > Can we use void* for _except_start and _except_end?
> 
> Yes, we can. Actually I used void * at first draft of this patch v1. But
> it doesn't work. We still need to get the address with '&' operator as
> in v2. I think it is confusing with void *, so I use int instead. But
> anything will do.

I think extern void * might work, but extern int is also OK when referencing
external symbol.

Best regards,
Marek Vasut


More information about the U-Boot mailing list