Ignore:
Timestamp:
Oct 27, 1999, 4:03:01 AM (26 years ago)
Author:
bird
Message:

Corrections to make win32k work.
(And now it does work, at least at my test machine...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/misc/asmutils.asm

    r909 r1467  
    1 ; $Id: asmutils.asm,v 1.2 1999-09-12 00:26:27 bird Exp $
     1; $Id: asmutils.asm,v 1.3 1999-10-27 02:02:59 bird Exp $
    22;
    33; asmutils - assembly utility functions
     
    55; Copyright (c) 1998-1999 knut st. osmundsen
    66;
     7; Project Odin Software License can be found in LICENSE.TXT
    78;
    89    .386p
     
    1213;
    1314    include devsegdf.inc
    14     include sas.inc
    1515
    1616;
     
    2626    public _memrevmov@12
    2727    public _memmov@12
    28     public GetOS2KrnlMTE
    2928;    public DisableInterrupts
    3029;    public EnableInterrupts
     
    196195
    197196
    198 ; gets the FLAT pointer to the OS2 Kernel MTE.
    199 ; eax is flat pointer to OS2 Kernel MTE.
    200 GetOS2KrnlMTE PROC NEAR
    201     push    es
    202 
    203     mov     ax, SAS_selector            ;70h - Read-only SAS selector.
    204     mov     es, ax
    205     xor     ebx, ebx
    206     assume  ebx: PTR SAS
    207     mov     bx, [ebx].SAS_vm_data       ;SAS_vm_data (0ch)
    208     assume  ebx: PTR SAS_vm_section
    209     mov     eax,[ebx].SAS_vm_krnl_mte   ;SAS_vm_krnl_mte (0ch)
    210 
    211     pop     es
    212     ret
    213 GetOS2KrnlMTE ENDP
    214 
    215 
    216197CODE32 ends
    217198end
Note: See TracChangeset for help on using the changeset viewer.