[Patch] Add syscall.h to CR16 libgloss

Kaushik Phatak Kaushik.Phatak@kpitcummins.com
Mon Aug 27 22:02:00 GMT 2012


Hi, 

Please find attached a patch that adds syscall.h file into the CR16 libgloss
folder. This patch is in conjunction with a corresponding patch to the sim.
The build failures as logged in this bug report have already been fixed,
however the correct newlib syscalls are not being used.
http://sourceware.org/bugzilla/show_bug.cgi?id=12862

This patch should allow the regeneration of a correct nltvals.def file which
in turn should allow correct functioning of cr16-elf-run.
I'll be posting the sim patch to gdb-patches shortly. The syscall definitions
are in line with the original CR16 simulator patch submitted in 2008,
http://sourceware.org/ml/gdb/2008-02/msg00108.html

However, later changes in gdb-sim broke the cr16 build as the cr16 list in the 
nltvals.def file were probably hand tweaked.
Kindly review the attached patch and let me know if these changes are OK.

2012-08-24 Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
	
	* libgloss/cr16/sys/syscall.h New.

Thanks & Best Regards,
Kaushik
kaushik.phatak@kpitcummins.com
KPIT Cummins Infosystems Ltd
www.kpitcummins.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cr16_syscall.diff
Type: application/octet-stream
Size: 1228 bytes
Desc: cr16_syscall.diff
URL: <http://sourceware.org/pipermail/newlib/attachments/20120827/4a4492c0/attachment.obj>


More information about the Newlib mailing list