- Timestamp:
- Oct 14, 2002, 5:17:05 PM (23 years ago)
- Location:
- trunk/src/win32k/kKrnlLib/tools/kDevTest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/kKrnlLib/tools/kDevTest/Makefile
r9311 r9343 1 # $Id: Makefile,v 1. 1 2002-09-30 23:53:52bird Exp $1 # $Id: Makefile,v 1.2 2002-10-14 15:17:05 bird Exp $ 2 2 3 3 # … … 14 14 CC_INCLUDES = -I$(PATH_TOOLKIT)\h -I$(PATH_DDKBASE)\h 15 15 ALL_DEFINES = 16 BUILD_ENV_FORCE = VAC308 16 17 PATH_ROOT = ..\..\..\..\.. 17 18 !include $(PATH_ROOT)\$(BUILD_SETUP_MAK) -
trunk/src/win32k/kKrnlLib/tools/kDevTest/kdtDevHelp.asm
r9313 r9343 1 ; $Id: kdtDevHelp.asm,v 1. 2 2002-10-01 05:02:16bird Exp $1 ; $Id: kdtDevHelp.asm,v 1.3 2002-10-14 15:17:05 bird Exp $ 2 2 ; 3 3 ; Device Helper Implmenetation for Ring-3 testing. … … 627 627 628 628 DATA16 SEGMENT 629 629 630 ;; GetDosVar data 630 631 ; … … 645 646 DATA16 SEGMENT 646 647 ASSUME ds:NOTHING, es:NOTHING, ss:NOTHING 648 db "DosTables:" 647 649 ; 648 650 ; The two dostables. 649 651 ; 652 public DosTable 650 653 DosTable db 17 651 654 DosTable_fph_HardError dd 0 655 public DosTable_fph_HardError 652 656 DosTable_fph_UCase dd 0 653 657 DosTable_UnknownOrReserved1 dd 0 … … 667 671 DosTable_UnknownOrReserved7 dd 0 668 672 669 DosTabel2 db 19 673 public DosTable2 674 DosTable2 db 19 675 public DosTable2_fpErrMap24 670 676 DosTable2_fpErrMap24 dd 0 671 677 DosTable2_fpErrMap24End dd 0 … … 678 684 DosTable2_UnknownOrReserved2 dd 0 679 685 DosTable2_R0FlatCS dw seg FLAT:CODE32 686 public DosTable2_R0FlatCS 680 687 dw 0 681 688 DosTable2_R0FlatDS dw seg FLAT:DATA32 682 689 dw 0 683 690 DosTable2_pTKSSBase dd offset FLAT:DATA32:TKSSBase 684 DosTable2_pintSwitchStack dd 0 685 DosTable2_pprivatStack dd 0 691 public DosTable2_pintSwitchStack 692 DosTable2_pintSwitchStack dd offset FLAT:CODE32:intSwitchStack 693 DosTable2_pprivatStack dd offset FLAT:DATA32:pPrivateStack 686 694 DosTable2_fpPhysDiskTablePtr dd 0 687 695 DosTable2_pforceEMHandler dd 0 … … 689 697 DosTable2_p_pgpPageDir dd 0 690 698 DosTable2_UnknownOrReserved3 dd 0 699 691 700 DATA16 ENDS 692 701 … … 896 905 kdtStackThunk32To16 ENDP 897 906 907 DATA32 segment 908 db "intSwitchStack-Data:" 909 OS2Stack_ESP dd 0 ; OS/2 kernel stack 48 ptr 910 OS2Stack_SS dw 0 911 pPrivateStackNew_ESP dd 0 ; private stack 48 ptr 912 pPrivateStackNew_SS dw 0 913 pPrivateStack dd 0 ; private stack ESP (flat) 914 DATA32 ends 915 916 public intSwitchStack 917 intSwitchStack proc near 918 or eax, eax 919 jz switch_back 920 921 switch_to: 922 mov dx, ds 923 cmp dx, seg FLAT:DATA32 924 jz dsok 925 int 3 926 dsok: 927 mov pPrivateStackNew_SS, ds 928 mov pPrivateStackNew_ESP, eax 929 pop eax 930 push OS2Stack_SS 931 push OS2Stack_ESP 932 mov OS2Stack_SS, ss 933 mov OS2Stack_ESP, esp 934 lss esp, fword ptr pPrivateStackNew_ESP 935 jmp eax 936 937 switch_back: 938 pop eax 939 mov pPrivateStack, esp 940 lss esp, fword ptr OS2Stack_ESP 941 pop word ptr OS2Stack_SS 942 pop dword ptr OS2Stack_ESP 943 jmp eax 944 intSwitchStack endp 898 945 899 946 CODE32 ENDS
Note:
See TracChangeset
for help on using the changeset viewer.