home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lxapi32.zip / Inc / r0thunk.inc next >
Text File  |  2002-04-26  |  2KB  |  66 lines

  1. ;
  2. ; $Header: /netlabs.cvs/lxapi32/Inc/r0thunk.inc,v 1.2 2002/04/26 23:08:58 smilcke Exp $
  3. ;
  4.  
  5. ; 32 bits OS/2 device driver and IFS support. Provides 32 bits kernel 
  6. ; services (DevHelp) and utility functions to 32 bits OS/2 ring 0 code 
  7. ; (device drivers and installable file system drivers).
  8. ; Copyright (C) 1995, 1996, 1997  Matthieu WILLM (willm@ibm.net)
  9. ;
  10. ; This program is free software; you can redistribute it and/or modify
  11. ; it under the terms of the GNU General Public License as published by
  12. ; the Free Software Foundation; either version 2 of the License, or
  13. ; (at your option) any later version.
  14. ;
  15. ; This program is distributed in the hope that it will be useful,
  16. ; but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18. ; GNU General Public License for more details.
  19. ;
  20. ; You should have received a copy of the GNU General Public License
  21. ; along with this program; if not, write to the Free Software
  22. ; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23.  
  24. extrn Dos32FlatCS : abs                ; ring 0 FLAT kernel data selector
  25. extrn Dos32FlatDS : abs                ; ring 0 FLAT kernel data selector
  26.  
  27.  
  28. DATA32 segment
  29. ;        extrn DevHelp2  : dword
  30. ifdef FSD32
  31. ;    extrn _TKSSBase : dword
  32. endif
  33. DATA32 ends
  34.  
  35. ifdef FSD32
  36. ;%out  FSD32 defined !
  37. jmp32 macro target
  38.         db 066h
  39.         db 0eah
  40.         dd offset FLAT:target
  41.         dw Dos32FlatCS
  42. endm
  43. endif
  44. ifdef MWDD32
  45. ;%out MWDD32 defined !
  46. jmp32 macro target
  47.         jmp far ptr FLAT:target
  48. endm
  49. endif
  50.  
  51. ifdef FSD32
  52. ;%out  FSD32 defined !
  53. call32 macro target
  54.         db 066h
  55.         db 09ah
  56.         dd offset FLAT:target
  57.         dw Dos32FlatCS
  58. endm
  59. endif
  60. ifdef MWDD32
  61. ;%out  MWDD32 defined !
  62. call32 macro target
  63.         call far ptr FLAT:target
  64. endm
  65. endif
  66.