save and restore %d2 in MMU040_read_phys (detected with GCC 3.4)

This commit is contained in:
Laurent Vivier 2005-06-01 22:48:38 +00:00
parent 0c63c2cb52
commit c874bd5250

View File

@ -95,6 +95,7 @@ MMU040_ptest:
.global MMU040_read_phys .global MMU040_read_phys
MMU040_read_phys: MMU040_read_phys:
link.w %fp,#-8 link.w %fp,#-8
move.l %d2,%sp@-
/* get the address to read */ /* get the address to read */
@ -135,5 +136,6 @@ MMU040_read_phys:
move %d1, %sr move %d1, %sr
move.l (%sp)+, %d1 move.l (%sp)+, %d1
move.l %sp@+, %d2
unlk %fp unlk %fp
rts rts