From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 9 Oct 2015 16:48:39 +0200 Subject: [U-Boot] [PATCH v2] nios2: convert copy_exception_trampoline to use dm cpu data In-Reply-To: <56177EC4.80103@wytron.com.tw> References: <1444016343-8234-1-git-send-email-thomas@wytron.com.tw> <56177EC4.80103@wytron.com.tw> Message-ID: <201510091648.39727.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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