Minor Error in sys/epiphany-syscalls.c

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Minor Error in sys/epiphany-syscalls.c

Postby GreggChandler » Sat May 27, 2017 2:57 am

Found a minor error in sys/epiphany-syscalls.c found here:

The TRAP_write, TRAP_read, etc., trap manifest constant definitions do not match those on page 124 of the Epiphany Architecture Reference rev 14.03.11,found here:

The compiled code in the 2016.11 eSDK appears to support the numbers in the PDF, and thus the compiled NewLib matches the manual. However, anyone reading the code without reference to the manual might be misled.
GreggChandler
 
Posts: 66
Joined: Sun Feb 12, 2017 1:56 am

Re: Minor Error in sys/epiphany-syscalls.c

Postby GreggChandler » Sun May 28, 2017 5:12 am

So I found the system call constants in: . My "asm_syscall" implementation now can be implemented symbolically. Is there any specification for the use of traps other than 7? There appears to be a bit of dead code here.
GreggChandler
 
Posts: 66
Joined: Sun Feb 12, 2017 1:56 am


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 21 guests