home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / nsprpub / pr / src / md / unix / os_AIX.s < prev    next >
Encoding:
Text File  |  1998-04-08  |  3.6 KB  |  103 lines

  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 Netscape Public License
  4. # Version 1.0 (the "NPL"); you may not use this file except in
  5. # compliance with the NPL.  You may obtain a copy of the NPL at
  6. # http://www.mozilla.org/NPL/
  7. # Software distributed under the NPL is distributed on an "AS IS" basis,
  8. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  9. # for the specific language governing rights and limitations under the
  10. # NPL.
  11. # The Initial Developer of this code under the NPL is Netscape
  12. # Communications Corporation.  Portions created by Netscape are
  13. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  14. # Reserved.
  15. #
  16. .set r0,0; .set SP,1; .set RTOC,2; .set r3,3; .set r4,4
  17. .set r5,5; .set r6,6; .set r7,7; .set r8,8; .set r9,9
  18. .set r10,10; .set r11,11; .set r12,12; .set r13,13; .set r14,14
  19. .set r15,15; .set r16,16; .set r17,17; .set r18,18; .set r19,19
  20. .set r20,20; .set r21,21; .set r22,22; .set r23,23; .set r24,24
  21. .set r25,25; .set r26,26; .set r27,27; .set r28,28; .set r29,29
  22. .set r30,30; .set r31,31
  23.  
  24.  
  25.         .rename H.10.NO_SYMBOL{PR},""
  26.         .rename H.18.longjmp{TC},"longjmp"
  27.  
  28.         .lglobl H.10.NO_SYMBOL{PR}
  29.         .globl  .longjmp
  30.         .globl  longjmp{DS}
  31.         .extern .sigcleanup
  32.         .extern .jmprestfpr
  33.  
  34. # .text section
  35.  
  36.         .csect  H.10.NO_SYMBOL{PR}
  37. .longjmp:
  38.          mr   r13,r3
  39.          mr   r14,r4
  40.         stu   SP,-56(SP)
  41.          bl   .sigcleanup
  42.           l   RTOC,0x14(SP)
  43.         cal   SP,0x38(SP)
  44.          mr   r3,r13
  45.          mr   r4,r14
  46.           l   r5,0x8(r3)
  47.           l   SP,0xc(r3)
  48.           l   r7,0xf8(r3)
  49.          st   r7,0x0(SP)
  50.           l   RTOC,0x10(r3)
  51.          bl   .jmprestfpr
  52. # 1 == cr0 in disassembly
  53.        cmpi   1,r4,0x0  
  54.        mtlr   r5
  55.          lm   r13,0x14(r3)
  56.           l   r5,0x60(r3)
  57.       mtcrf   0x38,r5
  58.          mr   r3,r4
  59.         bne   __L1
  60.         lil   r3,0x1
  61. __L1:
  62.          br
  63.  
  64. # traceback table
  65.         .long   0x00000000
  66.         .byte   0x00                    # VERSION=0
  67.         .byte   0x00                    # LANG=TB_C
  68.         .byte   0x20                    # IS_GL=0,IS_EPROL=0,HAS_TBOFF=1
  69.                                         # INT_PROC=0,HAS_CTL=0,TOCLESS=0
  70.                                         # FP_PRESENT=0,LOG_ABORT=0
  71.         .byte   0x40                    # INT_HNDL=0,NAME_PRESENT=1
  72.                                         # USES_ALLOCA=0,CL_DIS_INV=WALK_ONCOND
  73.                                         # SAVES_CR=0,SAVES_LR=0
  74.         .byte   0x80                    # STORES_BC=1,FPR_SAVED=0
  75.         .byte   0x00                    # GPR_SAVED=0
  76.         .byte   0x02                    # FIXEDPARMS=2
  77.         .byte   0x01                    # FLOATPARMS=0,PARMSONSTK=1
  78.         .long   0x00000000              #
  79.         .long   0x00000014              # TB_OFFSET
  80.         .short  7                       # NAME_LEN
  81.         .byte   "longjmp"
  82.         .byte   0                       # padding
  83.         .byte   0                       # padding
  84.         .byte   0                       # padding
  85. # End of traceback table
  86.         .long   0x00000000              # "\0\0\0\0"
  87.  
  88. # .data section
  89.  
  90.         .toc                            # 0x00000038
  91. T.18.longjmp:
  92.         .tc     H.18.longjmp{TC},longjmp{DS}
  93.  
  94.         .csect  longjmp{DS}
  95.         .long   .longjmp                # "\0\0\0\0"
  96.         .long   TOC{TC0}                # "\0\0\0008"
  97.         .long   0x00000000              # "\0\0\0\0"
  98. # End   csect   longjmp{DS}
  99.  
  100. # .bss section
  101.