[PATCH v2] Add support for Altera's Nios-II softcore architecture

Ezequiel García ezequiel at vanguardiasur.com.ar
Thu Feb 6 10:02:45 UTC 2014


On 6 February 2014 04:13, Mike Frysinger <vapier at gentoo.org> wrote:
> On Wednesday, February 05, 2014 19:15:23 Ezequiel Garcia wrote:
>>   * Makefile.am, configure.ac: Add nios2 architecture
>>   * defs.h: Add nios2 to use register reading system
>>   * linux/nios2/ioctlent.h.in: Use i386 ioctls
>>   * linux/nios2/syscallent.h: New file
>>   * process.c: Add nios2 register defs to struct_user_offsets[]
>>   * syscall.c: Add nios2 support, for get_scno, get_regs, get_syscall_args
>>     and get_error
>>   * util.c: Add dummy handling
>>   * mem.c: Use sys_>   size.
>>   * system.c: Add nios2 specific syscalls.
>
> please make note of the current ABI status and future planned work
>

Sure.

>> --- a/mem.c
>> +++ b/mem.c
>>
>> -#if defined(ALPHA) || defined(IA64) || defined(SPARC) || defined(SPARC64)
>> +#if defined(ALPHA) || defined(IA64) || defined (NIOS2) || \
>
> shouldn't be a space before the (NIOS2).  match the existing style.
>

Ok.

>> --- a/system.c
>> +++ b/system.c
>>
>> +#ifdef NIOS2
>> +
>> +int sys_cacheflush(struct tcb *tcp)
>> +{
>> +     if (entering(tcp)) {
>> +             /* addr and len */
>> +             tprintf("%#lx, %lu", tcp->u_arg[0], tcp->u_arg[3]);
>> +             /* scope and flags (cache type) is currently ignored */
>
> is->are

Right.
-- 
Ezequiel García, VanguardiaSur
www.vanguardiasur.com.ar




More information about the Strace-devel mailing list