ReactOS  r76032
shell.h
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) 1998-2001 Klaus P. Gerlicher
4 
5 Module Name:
6 
7  shell.h
8 
9 Abstract:
10 
11  HEADER for shell.c
12 
13 Environment:
14 
15  LINUX 2.2.X
16  Kernel mode only
17 
18 Author:
19 
20  Klaus P. Gerlicher
21 
22 Revision History:
23 
24  15-Nov-2000: general cleanup of source files
25 
26 Copyright notice:
27 
28  This file may be distributed under the terms of the GNU Public License.
29 
30 --*/
31 //void InstallKeyboardHook(void);
32 //void DeInstallKeyboardHook(void);
33 void InstallGlobalKeyboardHook(void);
35 
36 void RealIsr(ULONG dwReasonForBreak);
37 void NewInt31Handler(void);
38 
39 extern volatile BOOLEAN bNotifyToExit;
40 extern volatile BOOLEAN bSingleStep;
41 extern volatile UCHAR ucKeyPressedWhileIdle;
42 extern volatile BOOLEAN bInDebuggerShell;
43 
50 extern volatile BOOLEAN bControl; // TRUE when CTRL key was pressed
51 extern volatile BOOLEAN bShift; // TRUE when SHIFT key was pressed
52 extern volatile BOOLEAN bAlt; // TRUE when SHIFT key was pressed
53 
54 // previous context
55 extern ULONG OldEIP,OldEFL;
59 
60 extern ULONG CurrentProcess;
61 
62 extern USHORT OldSelector;
63 extern ULONG OldOffset;
64 
65 extern ULONG ulRealStackPtr; // serves as current process pointer too!!
66 
69 extern BOOLEAN bStepInto;
70 
71 #define REASON_INT3 (0)
72 #define REASON_SINGLESTEP (1)
73 #define REASON_CTRLF (2)
74 #define REASON_PAGEFAULT (3)
75 #define REASON_GP_FAULT (4)
76 #define REASON_HARDWARE_BP (5)
77 #define REASON_DOUBLE_FAULT (6)
78 #define REASON_MODULE_LOAD (7)
79 #define REASON_INTERNAL_ERROR (8)
80 
81 extern volatile BOOLEAN bEnterNow;
82 
83 // keyboard controller defines
84 #define I8042_PHYSICAL_BASE 0x60
85 #define I8042_DATA_REGISTER_OFFSET 0
86 #define I8042_COMMAND_REGISTER_OFFSET 4
87 #define I8042_STATUS_REGISTER_OFFSET 4
88 
89 void ShowStatusLine(void);
90 
91 #define KEYBOARD_IRQ 1
USHORT CurrentES
Definition: shell.c:116
void ShowStatusLine(void)
Definition: shell.c:216
ULONG CurrentEDI
Definition: shell.c:115
USHORT OldSS
Definition: shell.c:123
volatile BOOLEAN bSingleStep
Definition: shell.c:129
ULONG CurrentDR0
Definition: shell.c:117
USHORT CurrentSS
Definition: shell.c:116
USHORT OldGS
Definition: shell.c:123
ULONG OldESP
Definition: shell.c:122
ULONG CurrentDR7
Definition: shell.c:117
USHORT OldSelector
Definition: shell.c:89
volatile BOOLEAN bAlt
Definition: shell.c:72
ULONG g_ulLineNumberStart
Definition: shell.c:62
ULONG CurrentDR6
Definition: shell.c:117
volatile BOOLEAN bShift
Definition: shell.c:71
ULONG OldECX
Definition: shell.c:121
volatile BOOLEAN bControl
Definition: shell.c:70
void InstallGlobalKeyboardHook(void)
Definition: shell.c:1657
ULONG CurrentDR2
Definition: shell.c:117
ULONG CurrentESP
Definition: shell.c:115
ULONG OldEBP
Definition: shell.c:122
ULONG ulRealStackPtr
Definition: shell.c:82
ULONG OldEFL
Definition: shell.c:120
ULONG CurrentEAX
Definition: shell.c:114
volatile BOOLEAN bEnterNow
Definition: shell.c:75
ULONG CurrentDR3
Definition: shell.c:117
ULONG OldEIP
Definition: shell.c:120
ULONG CurrentCR2
Definition: shell.c:118
unsigned char BOOLEAN
USHORT CurrentCS
Definition: shell.c:116
ULONG CurrentEBP
Definition: shell.c:115
ULONG CurrentCR3
Definition: shell.c:118
USHORT OldES
Definition: shell.c:123
ULONG OldEBX
Definition: shell.c:121
volatile BOOLEAN bNotifyToExit
Definition: shell.c:76
ULONG CurrentDR1
Definition: shell.c:117
ULONG CurrentEDX
Definition: shell.c:114
ULONG CurrentECX
Definition: shell.c:114
BOOLEAN bStepThroughSource
Definition: shell.c:64
unsigned char UCHAR
Definition: xmlstorage.h:181
USHORT CurrentDS
Definition: shell.c:116
ULONG CurrentEIP
Definition: shell.c:113
volatile UCHAR ucKeyPressedWhileIdle
Definition: shell.c:78
void RealIsr(ULONG dwReasonForBreak)
Definition: shell.c:1016
USHORT OldDS
Definition: shell.c:123
ULONG CurrentESI
Definition: shell.c:115
USHORT CurrentGS
Definition: shell.c:116
ULONG CurrentProcess
Definition: shell.c:125
unsigned short USHORT
Definition: pedump.c:61
ULONG CurrentEFL
Definition: shell.c:113
ULONG CurrentCR0
Definition: shell.c:118
USHORT OldCS
Definition: shell.c:123
USHORT OldFS
Definition: shell.c:123
ULONG OldESI
Definition: shell.c:122
void NewInt31Handler(void)
ULONG OldEDX
Definition: shell.c:121
unsigned int ULONG
Definition: retypes.h:1
volatile BOOLEAN bInDebuggerShell
Definition: shell.c:79
ULONG OldOffset
Definition: shell.c:90
BOOLEAN bStepInto
Definition: shell.c:65
void DeInstallGlobalKeyboardHook(void)
Definition: shell.c:1677
ULONG OldEAX
Definition: shell.c:121
ULONG CurrentEBX
Definition: shell.c:114
ULONG OldEDI
Definition: shell.c:122
USHORT CurrentFS
Definition: shell.c:116