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

Ezequiel García ezequiel at vanguardiasur.com.ar
Tue Jan 28 09:36:28 UTC 2014


On 27 January 2014 21:42, Mike Frysinger <vapier at gentoo.org> wrote:
> On Monday, January 27, 2014 20:58:11 Ezequiel García wrote:
>> On 27 January 2014 17:54, Mike Frysinger wrote:
>> > On Sunday, January 26, 2014 21:59:07 Ezequiel Garcia wrote:
>> >> --- a/system.c
>> >> +++ b/system.c
>> >>
>> >> +int sys_getpagesize(struct tcb *tcp)
>> >> +{
>> >> +     return 0;
>> >> +}
>> >
>> > that can't possibly be correct ?
>>
>> Hm... why? The syscall receives no args and returns the page size through
>> the get_error() path which retrieves the syscall result.
>
> doesn't declaring it using printargs in the syscall list work ?
>

Hm... probably.

>> Is it possible to take this and then change the implementation once
>> the generic syscall ABI is implemented?
>
> i would think that the existing ptrace ABI would remain unchanged, just the
> syscall #'s would get rewritten (as well as some get added/removed).  so most
> of your patch would still work ... just update the syscall list file.

Right.

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




More information about the Strace-devel mailing list