~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/src/md/unix/os_AIX.s

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 
2
 
3
# The contents of this file are subject to the Mozilla Public
 
4
# License Version 1.1 (the "License"); you may not use this file
 
5
# except in compliance with the License. You may obtain a copy of
 
6
# the License at http://www.mozilla.org/MPL/
 
7
 
8
# Software distributed under the License is distributed on an "AS
 
9
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 
10
# implied. See the License for the specific language governing
 
11
# rights and limitations under the License.
 
12
 
13
# The Original Code is the Netscape Portable Runtime (NSPR).
 
14
 
15
# The Initial Developer of the Original Code is Netscape
 
16
# Communications Corporation.  Portions created by Netscape are 
 
17
# Copyright (C) 1998-2000 Netscape Communications Corporation.  All
 
18
# Rights Reserved.
 
19
 
20
# Contributor(s):
 
21
 
22
# Alternatively, the contents of this file may be used under the
 
23
# terms of the GNU General Public License Version 2 or later (the
 
24
# "GPL"), in which case the provisions of the GPL are applicable 
 
25
# instead of those above.  If you wish to allow use of your 
 
26
# version of this file only under the terms of the GPL and not to
 
27
# allow others to use your version of this file under the MPL,
 
28
# indicate your decision by deleting the provisions above and
 
29
# replace them with the notice and other provisions required by
 
30
# the GPL.  If you do not delete the provisions above, a recipient
 
31
# may use your version of this file under either the MPL or the
 
32
# GPL.
 
33
 
34
 
 
35
.set r0,0; .set SP,1; .set RTOC,2; .set r3,3; .set r4,4
 
36
.set r5,5; .set r6,6; .set r7,7; .set r8,8; .set r9,9
 
37
.set r10,10; .set r11,11; .set r12,12; .set r13,13; .set r14,14
 
38
.set r15,15; .set r16,16; .set r17,17; .set r18,18; .set r19,19
 
39
.set r20,20; .set r21,21; .set r22,22; .set r23,23; .set r24,24
 
40
.set r25,25; .set r26,26; .set r27,27; .set r28,28; .set r29,29
 
41
.set r30,30; .set r31,31
 
42
 
 
43
 
 
44
        .rename H.10.NO_SYMBOL{PR},""
 
45
        .rename H.18.longjmp{TC},"longjmp"
 
46
 
 
47
        .lglobl H.10.NO_SYMBOL{PR}
 
48
        .globl  .longjmp
 
49
        .globl  longjmp{DS}
 
50
        .extern .sigcleanup
 
51
        .extern .jmprestfpr
 
52
 
 
53
# .text section
 
54
 
 
55
        .csect  H.10.NO_SYMBOL{PR}
 
56
.longjmp:
 
57
         mr   r13,r3
 
58
         mr   r14,r4
 
59
        stu   SP,-56(SP)
 
60
         bl   .sigcleanup
 
61
          l   RTOC,0x14(SP)
 
62
        cal   SP,0x38(SP)
 
63
         mr   r3,r13
 
64
         mr   r4,r14
 
65
          l   r5,0x8(r3)
 
66
          l   SP,0xc(r3)
 
67
          l   r7,0xf8(r3)
 
68
         st   r7,0x0(SP)
 
69
          l   RTOC,0x10(r3)
 
70
         bl   .jmprestfpr
 
71
# 1 == cr0 in disassembly
 
72
       cmpi   1,r4,0x0  
 
73
       mtlr   r5
 
74
         lm   r13,0x14(r3)
 
75
          l   r5,0x60(r3)
 
76
      mtcrf   0x38,r5
 
77
         mr   r3,r4
 
78
        bne   __L1
 
79
        lil   r3,0x1
 
80
__L1:
 
81
         br
 
82
 
 
83
# traceback table
 
84
        .long   0x00000000
 
85
        .byte   0x00                    # VERSION=0
 
86
        .byte   0x00                    # LANG=TB_C
 
87
        .byte   0x20                    # IS_GL=0,IS_EPROL=0,HAS_TBOFF=1
 
88
                                        # INT_PROC=0,HAS_CTL=0,TOCLESS=0
 
89
                                        # FP_PRESENT=0,LOG_ABORT=0
 
90
        .byte   0x40                    # INT_HNDL=0,NAME_PRESENT=1
 
91
                                        # USES_ALLOCA=0,CL_DIS_INV=WALK_ONCOND
 
92
                                        # SAVES_CR=0,SAVES_LR=0
 
93
        .byte   0x80                    # STORES_BC=1,FPR_SAVED=0
 
94
        .byte   0x00                    # GPR_SAVED=0
 
95
        .byte   0x02                    # FIXEDPARMS=2
 
96
        .byte   0x01                    # FLOATPARMS=0,PARMSONSTK=1
 
97
        .long   0x00000000              #
 
98
        .long   0x00000014              # TB_OFFSET
 
99
        .short  7                       # NAME_LEN
 
100
        .byte   "longjmp"
 
101
        .byte   0                       # padding
 
102
        .byte   0                       # padding
 
103
        .byte   0                       # padding
 
104
# End of traceback table
 
105
        .long   0x00000000              # "\0\0\0\0"
 
106
 
 
107
# .data section
 
108
 
 
109
        .toc                            # 0x00000038
 
110
T.18.longjmp:
 
111
        .tc     H.18.longjmp{TC},longjmp{DS}
 
112
 
 
113
        .csect  longjmp{DS}
 
114
        .long   .longjmp                # "\0\0\0\0"
 
115
        .long   TOC{TC0}                # "\0\0\0008"
 
116
        .long   0x00000000              # "\0\0\0\0"
 
117
# End   csect   longjmp{DS}
 
118
 
 
119
# .bss section