Andi B.
2019-02-02 16:08:22 UTC
I get this exception on my T42p but not my T60 nor on my desktop. I know it is triggered
by IN from serial port register but I don't understand why it only traps on the T42.
The same on all systems -
PROTECTONLY=NO
IOPL=YES
The T42p is the only system without ACPI.PSD. But I do not understand why this should make
a difference.
Following code triggers the exception (icc3.65) -
while ( !(__inpb(0x3F8 + 5) & 0x20) );
__outpb(0x3F8, *s);
Below is the start of the .trp file if it helps.
Regards, Andreas
______________________________________________________________________
Exception Report - created 2019/02/02 14:20:14
______________________________________________________________________
wlanstat build: Dec 16 2018 17:18:15
OS2/eCS Version: 2.45
# of Processors: 1
Physical Memory: 1534 mb
Virt Addr Limit: 1536 mb
Exceptq Version: 7.11.3-shl (Jul 5 2016)
______________________________________________________________________
Exception C000009D - Privileged Instruction
______________________________________________________________________
Process: E:\_WORK\XWLAN\TRUNK\DEBUG\WLANSTAT.EXE (12/16/2018 17:29:14 1,009,644)
PID: 11E (286)
TID: 01 (1)
Priority: 200
Filename: E:\_WORK\XWLAN\TRUNK\DEBUG\GENMAC.DIM (12/16/2018 17:29:13 321,749)
Address: 005B:16B057A9 (0002:000057A9)
______________________________________________________________________
Failing Instruction
______________________________________________________________________
16B057A7 ADD [EAX], AL (0000)
16B057A9 >IN AL, DX (ec)
16B057AA MOVZX EAX, AL (0fb6c0)
16B057AD TEST AL, 0x20 (a8 20)
16B057AF JNZ 0x16b057be (75 0d)
______________________________________________________________________
Registers
______________________________________________________________________
EAX : 16D2018C EBX : 00000000 ECX : 16D215FC EDX : 000003FD
ESI : 1C9EED2C EDI : 1C9F07D0
ESP : 000D4C28 EBP : 000D4C34 EIP : 16B057A9 EFLG : 00212202
CS : 005B CSLIM: FFFFFFFF SS : 0053 SSLIM: FFFFFFFF
EAX : read/write memory at 0007:0000018C in GENMAC
EBX : not a valid address
ECX : read/write memory at 0007:000015FC in GENMAC
EDX : not a valid address
ESI : read/write memory allocated by PMMERGE
EDI : read/write memory allocated by PMMERGE
______________________________________________________________________
Stack Info for Thread 01
______________________________________________________________________
Size Base ESP Max Top
00010000 000D7140 -> 000D4C28 -> 000D3140 -> 000C7140
______________________________________________________________________
Call Stack
______________________________________________________________________
EBP Address Module Obj:Offset Nearest Public Symbol
-------- --------- -------- ------------- -----------------------
Trap -> 16B057A9 GENMAC 0002:000057A9 WpaCliTerminate - 1C74 0002:0000741D (wpacli)
000D4C34 16B07457 GENMAC 0002:00007457 WpaCliTerminate + 3A 0002:0000741D (wpacli)
by IN from serial port register but I don't understand why it only traps on the T42.
The same on all systems -
PROTECTONLY=NO
IOPL=YES
The T42p is the only system without ACPI.PSD. But I do not understand why this should make
a difference.
Following code triggers the exception (icc3.65) -
while ( !(__inpb(0x3F8 + 5) & 0x20) );
__outpb(0x3F8, *s);
Below is the start of the .trp file if it helps.
Regards, Andreas
______________________________________________________________________
Exception Report - created 2019/02/02 14:20:14
______________________________________________________________________
wlanstat build: Dec 16 2018 17:18:15
OS2/eCS Version: 2.45
# of Processors: 1
Physical Memory: 1534 mb
Virt Addr Limit: 1536 mb
Exceptq Version: 7.11.3-shl (Jul 5 2016)
______________________________________________________________________
Exception C000009D - Privileged Instruction
______________________________________________________________________
Process: E:\_WORK\XWLAN\TRUNK\DEBUG\WLANSTAT.EXE (12/16/2018 17:29:14 1,009,644)
PID: 11E (286)
TID: 01 (1)
Priority: 200
Filename: E:\_WORK\XWLAN\TRUNK\DEBUG\GENMAC.DIM (12/16/2018 17:29:13 321,749)
Address: 005B:16B057A9 (0002:000057A9)
______________________________________________________________________
Failing Instruction
______________________________________________________________________
16B057A7 ADD [EAX], AL (0000)
16B057A9 >IN AL, DX (ec)
16B057AA MOVZX EAX, AL (0fb6c0)
16B057AD TEST AL, 0x20 (a8 20)
16B057AF JNZ 0x16b057be (75 0d)
______________________________________________________________________
Registers
______________________________________________________________________
EAX : 16D2018C EBX : 00000000 ECX : 16D215FC EDX : 000003FD
ESI : 1C9EED2C EDI : 1C9F07D0
ESP : 000D4C28 EBP : 000D4C34 EIP : 16B057A9 EFLG : 00212202
CS : 005B CSLIM: FFFFFFFF SS : 0053 SSLIM: FFFFFFFF
EAX : read/write memory at 0007:0000018C in GENMAC
EBX : not a valid address
ECX : read/write memory at 0007:000015FC in GENMAC
EDX : not a valid address
ESI : read/write memory allocated by PMMERGE
EDI : read/write memory allocated by PMMERGE
______________________________________________________________________
Stack Info for Thread 01
______________________________________________________________________
Size Base ESP Max Top
00010000 000D7140 -> 000D4C28 -> 000D3140 -> 000C7140
______________________________________________________________________
Call Stack
______________________________________________________________________
EBP Address Module Obj:Offset Nearest Public Symbol
-------- --------- -------- ------------- -----------------------
Trap -> 16B057A9 GENMAC 0002:000057A9 WpaCliTerminate - 1C74 0002:0000741D (wpacli)
000D4C34 16B07457 GENMAC 0002:00007457 WpaCliTerminate + 3A 0002:0000741D (wpacli)