CVS: msp430-libc/src/stdlib ldiv.S, 1.2.2.1, 1.2.2.2

"Roman Lim" <[email protected]> Wed, 10 Feb 2010 14:41:02 +0000
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/msp430-libc/src/stdlib
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv888/msp430-libc/src/stdlib

Modified Files:
      Tag: MSP430X
	ldiv.S 
Log Message:
430X patch: ldiv.S, and strtoul problem
provided by Phil Sutherland
http://old.nabble.com/430X-patch:-ldiv.S,-and-strtoul-problem-td27293374.html

Index: ldiv.S
===================================================================
RCS file: /cvsroot/mspgcc/msp430-libc/src/stdlib/ldiv.S,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -u -w -d -r1.2.2.1 -r1.2.2.2
--- ldiv.S	26 Jan 2009 15:47:13 -0000	1.2.2.1
+++ ldiv.S	10 Feb 2010 14:40:58 -0000	1.2.2.2
@@ -6,7 +6,7 @@
 ldiv:
 ;; save clobbers first
 #if defined(__MSP430X__)
-        XPUSHM  #2, r11
+        XPUSHM  #4, r11
 #else
         push    r11
         push    r10
@@ -19,7 +19,7 @@
         mov     r15, r13	;; num
         mov     r14, r12
 ;; divide
-        call    #__divmodsi4
+        XCALL   #__divmodsi4
 ;; result is in there already...
 ;; restore regs and return.
 #if defined(__MSP430X__)


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev