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

« back to all changes in this revision

Viewing changes to callback/trampoline_r/tramp-sparc64.old.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 sparc64 CPU
 
2
 
 
3
! Copyright 1999 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
        call _getpc,0           ! Put the address of _tramp into %o7
 
16
         mov %o7,%g1            ! But save the previous %o7 in %g1
 
17
_getpc:
 
18
        ldx [%o7+(_data-_tramp)],%g5
 
19
        ldx [%o7+(_function-_tramp)],%g2
 
20
        jmp %g2
 
21
         mov %g1,%o7
 
22
_data:
 
23
        .long 0x73554711
 
24
        .long 0x43622155
 
25
_function:
 
26
        .long 0xbabebec0
 
27
        .long 0xdea0ffab