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