1 | /* $Id: FastInfoBlocks.cpp,v 1.1 2003-03-06 10:22:25 sandervl Exp $
|
---|
2 | *
|
---|
3 | *
|
---|
4 | *
|
---|
5 | * Copyright (c) 2003 knut st. osmundsen <bird@anduin.net>
|
---|
6 | *
|
---|
7 | * Project Odin Software License can be found in LICENSE.TXT.
|
---|
8 | *
|
---|
9 | */
|
---|
10 |
|
---|
11 | /*******************************************************************************
|
---|
12 | * Header Files *
|
---|
13 | *******************************************************************************/
|
---|
14 | #include <odin.h>
|
---|
15 | #include <os2wrap.h>
|
---|
16 | #include <dbglog.h>
|
---|
17 | #include <FastInfoBlocks.h>
|
---|
18 |
|
---|
19 |
|
---|
20 | /*
|
---|
21 | * We must make sure that the pointers are initiated before any other
|
---|
22 | * C++ objects. (VMutex in particualar)
|
---|
23 | * Use the C++ static object trick.
|
---|
24 | */
|
---|
25 | #pragma priority(-2147482623) /* we will init first! */
|
---|
26 |
|
---|
27 | class fibInitClass
|
---|
28 | {
|
---|
29 | public:
|
---|
30 | fibInitClass()
|
---|
31 | {
|
---|
32 | fibInit();
|
---|
33 | }
|
---|
34 | };
|
---|
35 |
|
---|
36 | fibInitClass obj;
|
---|
37 |
|
---|
38 |
|
---|
39 | /**
|
---|
40 | * Logs the content of all the structures.
|
---|
41 | */
|
---|
42 | void fibDumpAll(void)
|
---|
43 | {
|
---|
44 | dprintf(("KERNEL32: _gpfibPIB=0x%8x\n", _gpfibPIB));
|
---|
45 | if (_gpfibPIB)
|
---|
46 | {
|
---|
47 | dprintf(("KERNEL32: pib_ulpid = %08x\n", _gpfibPIB->pib_ulpid ));
|
---|
48 | dprintf(("KERNEL32: pib_ulppid = %08x\n", _gpfibPIB->pib_ulppid ));
|
---|
49 | dprintf(("KERNEL32: pib_hmte = %08x\n", _gpfibPIB->pib_hmte ));
|
---|
50 | dprintf(("KERNEL32: pib_pchcmd = %08x\n", _gpfibPIB->pib_pchcmd ));
|
---|
51 | dprintf(("KERNEL32: pib_pchenv = %08x\n", _gpfibPIB->pib_pchenv ));
|
---|
52 | dprintf(("KERNEL32: pib_flstatus = %08x\n", _gpfibPIB->pib_flstatus ));
|
---|
53 | dprintf(("KERNEL32: pib_ultype = %08x\n", _gpfibPIB->pib_ultype ));
|
---|
54 | }
|
---|
55 | dprintf(("KERNEL32: _gpfibLIS = %08x\n", _gpfibLIS));
|
---|
56 | if (_gpfibLIS)
|
---|
57 | {
|
---|
58 | dprintf(("KERNEL32: pidCurrent = %08x\n", (unsigned)_gpfibLIS->pidCurrent ));
|
---|
59 | dprintf(("KERNEL32: pidParent = %08x\n", (unsigned)_gpfibLIS->pidParent ));
|
---|
60 | dprintf(("KERNEL32: prtyCurrent = %08x\n", (unsigned)_gpfibLIS->prtyCurrent ));
|
---|
61 | dprintf(("KERNEL32: tidCurrent = %08x\n", (unsigned)_gpfibLIS->tidCurrent ));
|
---|
62 | dprintf(("KERNEL32: sgCurrent = %08x\n", (unsigned)_gpfibLIS->sgCurrent ));
|
---|
63 | dprintf(("KERNEL32: rfProcStatus = %08x\n", (unsigned)_gpfibLIS->rfProcStatus ));
|
---|
64 | dprintf(("KERNEL32: LIS_fillbyte1 = %08x\n", (unsigned)_gpfibLIS->LIS_fillbyte1 ));
|
---|
65 | dprintf(("KERNEL32: fFoureground = %08x\n", (unsigned)_gpfibLIS->fFoureground ));
|
---|
66 | dprintf(("KERNEL32: typeProcess = %08x\n", (unsigned)_gpfibLIS->typeProcess ));
|
---|
67 | dprintf(("KERNEL32: LIS_fillbyte2 = %08x\n", (unsigned)_gpfibLIS->LIS_fillbyte2 ));
|
---|
68 | dprintf(("KERNEL32: selEnv = %08x\n", (unsigned)_gpfibLIS->selEnv ));
|
---|
69 | dprintf(("KERNEL32: offCmdLine = %08x\n", (unsigned)_gpfibLIS->offCmdLine ));
|
---|
70 | dprintf(("KERNEL32: cbDataSegment = %08x\n", (unsigned)_gpfibLIS->cbDataSegment ));
|
---|
71 | dprintf(("KERNEL32: cbStack = %08x\n", (unsigned)_gpfibLIS->cbStack ));
|
---|
72 | dprintf(("KERNEL32: cbHeap = %08x\n", (unsigned)_gpfibLIS->cbHeap ));
|
---|
73 | dprintf(("KERNEL32: hmod = %08x\n", (unsigned)_gpfibLIS->hmod ));
|
---|
74 | dprintf(("KERNEL32: selDS = %08x\n", (unsigned)_gpfibLIS->selDS ));
|
---|
75 | dprintf(("KERNEL32: LIS_PackSel = %08x\n", (unsigned)_gpfibLIS->LIS_PackSel ));
|
---|
76 | dprintf(("KERNEL32: LIS_PackShrSel = %08x\n", (unsigned)_gpfibLIS->LIS_PackShrSel));
|
---|
77 | dprintf(("KERNEL32: LIS_PackPckSel = %08x\n", (unsigned)_gpfibLIS->LIS_PackPckSel));
|
---|
78 | }
|
---|
79 | dprintf(("KERNEL32: _gpfibGIS=%08x\n", _gpfibGIS));
|
---|
80 | if (_gpfibGIS)
|
---|
81 | {
|
---|
82 | dprintf(("KERNEL32: SIS_BigTime = %08x\n", (unsigned)_gpfibGIS->SIS_BigTime ));
|
---|
83 | dprintf(("KERNEL32: SIS_MsCount = %08x\n", (unsigned)_gpfibGIS->SIS_MsCount ));
|
---|
84 | dprintf(("KERNEL32: SIS_HrsTime = %08x\n", (unsigned)_gpfibGIS->SIS_HrsTime ));
|
---|
85 | dprintf(("KERNEL32: SIS_MinTime = %08x\n", (unsigned)_gpfibGIS->SIS_MinTime ));
|
---|
86 | dprintf(("KERNEL32: SIS_SecTime = %08x\n", (unsigned)_gpfibGIS->SIS_SecTime ));
|
---|
87 | dprintf(("KERNEL32: SIS_HunTime = %08x\n", (unsigned)_gpfibGIS->SIS_HunTime ));
|
---|
88 | dprintf(("KERNEL32: SIS_TimeZone = %08x\n", (unsigned)_gpfibGIS->SIS_TimeZone ));
|
---|
89 | dprintf(("KERNEL32: SIS_ClkIntrvl = %08x\n", (unsigned)_gpfibGIS->SIS_ClkIntrvl ));
|
---|
90 | dprintf(("KERNEL32: SIS_DayDate = %08x\n", (unsigned)_gpfibGIS->SIS_DayDate ));
|
---|
91 | dprintf(("KERNEL32: SIS_MonDate = %08x\n", (unsigned)_gpfibGIS->SIS_MonDate ));
|
---|
92 | dprintf(("KERNEL32: SIS_YrsDate = %08x\n", (unsigned)_gpfibGIS->SIS_YrsDate ));
|
---|
93 | dprintf(("KERNEL32: SIS_DOWDate = %08x\n", (unsigned)_gpfibGIS->SIS_DOWDate ));
|
---|
94 | dprintf(("KERNEL32: SIS_VerMajor = %08x\n", (unsigned)_gpfibGIS->SIS_VerMajor ));
|
---|
95 | dprintf(("KERNEL32: SIS_VerMinor = %08x\n", (unsigned)_gpfibGIS->SIS_VerMinor ));
|
---|
96 | dprintf(("KERNEL32: SIS_RevLettr = %08x\n", (unsigned)_gpfibGIS->SIS_RevLettr ));
|
---|
97 | dprintf(("KERNEL32: SIS_CurScrnGrp = %08x\n", (unsigned)_gpfibGIS->SIS_CurScrnGrp ));
|
---|
98 | dprintf(("KERNEL32: SIS_MaxScrnGrp = %08x\n", (unsigned)_gpfibGIS->SIS_MaxScrnGrp ));
|
---|
99 | dprintf(("KERNEL32: SIS_HugeShfCnt = %08x\n", (unsigned)_gpfibGIS->SIS_HugeShfCnt ));
|
---|
100 | dprintf(("KERNEL32: SIS_ProtMdOnly = %08x\n", (unsigned)_gpfibGIS->SIS_ProtMdOnly ));
|
---|
101 | dprintf(("KERNEL32: SIS_FgndPID = %08x\n", (unsigned)_gpfibGIS->SIS_FgndPID ));
|
---|
102 | dprintf(("KERNEL32: SIS_Dynamic = %08x\n", (unsigned)_gpfibGIS->SIS_Dynamic ));
|
---|
103 | dprintf(("KERNEL32: SIS_MaxWait = %08x\n", (unsigned)_gpfibGIS->SIS_MaxWait ));
|
---|
104 | dprintf(("KERNEL32: SIS_MinSlice = %08x\n", (unsigned)_gpfibGIS->SIS_MinSlice ));
|
---|
105 | dprintf(("KERNEL32: SIS_MaxSlice = %08x\n", (unsigned)_gpfibGIS->SIS_MaxSlice ));
|
---|
106 | dprintf(("KERNEL32: SIS_BootDrv = %08x\n", (unsigned)_gpfibGIS->SIS_BootDrv ));
|
---|
107 | dprintf(("KERNEL32: SIS_MaxVioWinSG = %08x\n", (unsigned)_gpfibGIS->SIS_MaxVioWinSG ));
|
---|
108 | dprintf(("KERNEL32: SIS_MaxPresMgrSG = %08x\n", (unsigned)_gpfibGIS->SIS_MaxPresMgrSG ));
|
---|
109 | dprintf(("KERNEL32: SIS_SysLog = %08x\n", (unsigned)_gpfibGIS->SIS_SysLog ));
|
---|
110 | dprintf(("KERNEL32: SIS_MMIOBase = %08x\n", (unsigned)_gpfibGIS->SIS_MMIOBase ));
|
---|
111 | dprintf(("KERNEL32: SIS_MMIOAddr = %08x\n", (unsigned)_gpfibGIS->SIS_MMIOAddr ));
|
---|
112 | dprintf(("KERNEL32: SIS_MaxVDMs = %08x\n", (unsigned)_gpfibGIS->SIS_MaxVDMs ));
|
---|
113 | dprintf(("KERNEL32: SIS_Reserved = %08x\n", (unsigned)_gpfibGIS->SIS_Reserved ));
|
---|
114 | }
|
---|
115 | }
|
---|