aboutsummaryrefslogtreecommitdiff
path: root/libgloss/m32c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2008-01-11 02:21:44 +0000
committerDJ Delorie <dj@redhat.com>2008-01-11 02:21:44 +0000
commit978e84cf602994e44570fbac0c7adcd2ef5690e1 (patch)
tree89741635536e0589631612c65ff70083ba09c6fd /libgloss/m32c
parentceb32a183c463e1f9f3e957a447a9c7ee01e2b70 (diff)
downloadnewlib-978e84cf602994e44570fbac0c7adcd2ef5690e1.zip
newlib-978e84cf602994e44570fbac0c7adcd2ef5690e1.tar.gz
newlib-978e84cf602994e44570fbac0c7adcd2ef5690e1.tar.bz2
* m32c/exit.S (__exit): preserve both argument registers.
Diffstat (limited to 'libgloss/m32c')
-rw-r--r--libgloss/m32c/exit.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgloss/m32c/exit.S b/libgloss/m32c/exit.S
index e27d73d..5340326 100644
--- a/libgloss/m32c/exit.S
+++ b/libgloss/m32c/exit.S
@@ -34,7 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.global __exit
__exit:
- push.w r1
+ pushm r0,r1
jsr.a __m32c_fini
- pop.w r1
+ popm r0,r1
SYSCALL(SYS_exit)