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

Mike Frysinger vapier at gentoo.org
Mon Jan 27 20:54:46 UTC 2014


On Sunday, January 26, 2014 21:59:07 Ezequiel Garcia wrote:
> --- a/syscall.c
> +++ b/syscall.c
>
> +#elif defined(NIOS2)
> +	(void)i;
> +	(void)nargs;
> +	tcp->u_arg[0] = nios2_regs.uregs[4];
> +	tcp->u_arg[1] = nios2_regs.uregs[5];
> +	tcp->u_arg[2] = nios2_regs.uregs[6];
> +	tcp->u_arg[3] = nios2_regs.uregs[7];
> +	tcp->u_arg[4] = nios2_regs.uregs[8];
> +	tcp->u_arg[5] = nios2_regs.uregs[9];

	for (i = 0; i < nargs; ++i)
		tcp->u_arg[i] = nios2_regs.uregs[i + 4];

> --- a/system.c
> +++ b/system.c
> 
> +int sys_getpagesize(struct tcb *tcp)
> +{
> +	return 0;
> +}

that can't possibly be correct ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140127/ec515e0c/attachment.bin>


More information about the Strace-devel mailing list