~ubuntu-branches/debian/squeeze/ffcall/squeeze

« back to all changes in this revision

Viewing changes to ffcall/trampoline/tramp-sparc.s

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2010-06-26 15:29:30 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100626152930-c09y01gk3szcnykn
Tags: 1.10+cvs20100619-2
Ship to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
! Trampoline for sparc CPU
2
 
 
3
 
! Copyright 1995 Bruno Haible, <bruno@clisp.org>
4
 
!
5
 
! This is free software distributed under the GNU General Public Licence
6
 
! described in the file COPYING. Contact the author if you don't have this
7
 
! or can't live with it. There is ABSOLUTELY NO WARRANTY, explicit or implied,
8
 
! on this software.
9
 
 
10
 
! Available registers: %g1, %g2, %g3.
11
 
 
12
 
        .global _tramp
13
 
        .proc   04
14
 
_tramp:
15
 
        sethi %hi(0x12345678),%g1
16
 
        sethi %hi(0x73554711),%g2
17
 
        or %g2,%lo(0x73554711),%g2
18
 
        st %g2,[%g1+%lo(0x12345678)]
19
 
        sethi %hi(0xbabebec0),%g1
20
 
        jmp %g1+%lo(0xbabebec0)
21
 
        nop