home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / nsprpub / pr / src / md / unix / os_SunOS_x86.s < prev    next >
Encoding:
Text File  |  1998-04-08  |  1.4 KB  |  61 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.     .text
  17.  
  18.     .globl    getedi
  19. getedi:
  20.     movl    %edi,%eax
  21.     ret
  22.     .type    getedi,@function
  23.     .size    getedi,.-getedi
  24.  
  25.     .globl    setedi
  26. setedi:
  27.     movl    4(%esp),%edi
  28.     ret
  29.     .type    setedi,@function
  30.     .size    setedi,.-setedi
  31.  
  32.     .globl    __MD_FlushRegisterWindows
  33.     .globl _MD_FlushRegisterWindows
  34.  
  35. __MD_FlushRegisterWindows:
  36. _MD_FlushRegisterWindows:
  37.  
  38.     ret
  39.  
  40. /
  41. / sol_getsp()
  42. /
  43. / Return the current sp (for debugging)
  44. /
  45.     .globl sol_getsp
  46. sol_getsp:
  47.     movl    %esp, %eax
  48.     ret
  49.  
  50. /
  51. / sol_curthread()
  52. /
  53. / Return a unique identifier for the currently active thread.
  54. /
  55.     .globl sol_curthread
  56. sol_curthread:
  57.     movl    %ecx, %eax
  58.     ret
  59.