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][rfa] Add SYS_reconfig to libgloss/syscall.h


Hi,

I'd like approval to commit the attached patch which adds a syscall number to libgloss/syscall.h. The new syscall, SYS_reconfig, is used by SID for run time (simulation time) reconfiguration of the simulator, mainly for performance reasons. In particular, SID can be reconfigured on the fly in order to enable performance-sensitive options only while simulating code which is of particular interest. This allows less interesting code in the application to be simulated at optimal performance. This capability is already implemented and committed in SID.

One could also envision this being used by other simulators or perhaps even on some hardware targets.

Dave
2007-11-05  Dave Brolley  <brolley@redhat.com>

        * syscall.h (SYS_reconfig): New macro.

Index: libgloss/syscall.h
===================================================================
RCS file: /cvs/src/src/libgloss/syscall.h,v
retrieving revision 1.3
diff -c -p -r1.3 syscall.h
*** libgloss/syscall.h	8 Nov 2006 19:36:56 -0000	1.3
--- libgloss/syscall.h	5 Nov 2007 18:49:41 -0000
***************
*** 38,43 ****
--- 38,44 ----
  #define SYS_argv	13
  
  /* These are extras added for one reason or another.  */
+ #define SYS_reconfig      0 /* Used for runtime reconfiguration of SID */
  #define SYS_chdir	 14
  #define SYS_stat	 15
  #define SYS_chmod 	 16

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