Re: [U-Boot] [PATCH] semihosting: Improve ARMv7A support

2015-09-12 Thread Andrey Smirnov
On Sat, Sep 12, 2015 at 12:12 AM, Albert ARIBAUD wrote: > Hello Andrey, > > Two nitpicks: > >> +#if defined(CONFIG_ARM64) >> static noinline long smh_trap(unsigned int sysnum, void *addr) >> { >> register long result asm("r0"); >> -#if defined(CONFIG_ARM64) > >

Re: [U-Boot] [PATCH] semihosting: Improve ARMv7A support

2015-09-12 Thread Albert ARIBAUD
Hello Andrey, Two nitpicks: On Sat, 8 Aug 2015 15:29:12 -0700, Andrey Smirnov wrote: > Previous implementation of semihosting didn't account for cases where > doing an SVC call would clobber various data(most notable case would > be 'lr' and 'spsr' when doing SVC call

[U-Boot] [PATCH] semihosting: Improve ARMv7A support

2015-08-09 Thread Andrey Smirnov
Previous implementation of semihosting didn't account for cases where doing an SVC call would clobber various data(most notable case would be 'lr' and 'spsr' when doing SVC call in Supervisor mode). This patch is an adaptation of the code from Newlib's Angel_SWI feature (can be found in