This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch] Add syscall.h to CR16 libgloss


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

Attachment: cr16_syscall.diff
Description: cr16_syscall.diff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]