summaryrefslogtreecommitdiffstats
path: root/private/mvdm/v86/monitor/i386/spcstubs.c
blob: c2bb4fcce98382d38268c25ff6f053413184785d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
#include <windows.h>
#include <vdm.h>
#include <stdio.h>
//Tim Nov 92 #include <xt.h>
#include <nt_mon.h> //Tim Nov 92, so it builds...


ULONG cpu_calc_q_ev_inst_for_time(ULONG time){
    return(time);
}

ULONG q_ev_count;

VOID cpu_q_ev_set_count(ULONG time){
    q_ev_count = time;
}
ULONG cpu_q_ev_get_count() {
    return(q_ev_count);
}

char szYodaWarn[]="NtVdm : Using Yoda on an x86 may be hazardous to your systems' health\n";

unsigned char *GDP;

int getCPL(){
    OutputDebugString(szYodaWarn);
    return(0);
}

int getEM(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getGDT_BASE(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getGDT_LIMIT(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getIDT_BASE(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getIDT_LIMIT(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getIOPL(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getLDT_BASE(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getLDT_LIMIT(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getLDT_SELECTOR(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getMP(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getNT(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getTR_BASE(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getTR_LIMIT(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getTR_SELECTOR(){
    OutputDebugString(szYodaWarn);
    return(0);
}
int getTS(){
    OutputDebugString(szYodaWarn);
    return(0);
}
void setPE(int dummy1){
    OutputDebugString(szYodaWarn);
}
boolean selector_outside_table(word foo, double_word *bar){
    UNREFERENCED_PARAMETER(foo);
    UNREFERENCED_PARAMETER(bar);
    OutputDebugString("NtVdm : Using Yoda on an x86 may be hazardous to your systems' health\n");
    return(0);
}

VOID
EnterIdle(){
}

VOID
LeaveIdle(){
}