Hi,
I am posting below a shorter version of my yesterdays question. Hope someone
can help me out.
I am porting an ARM based BSP from CE 5.0 to CE 6.0. I've followed all the
MSDN recommended porting procedures and have been successfull in getting the
whole code compiled. However when the CE 6.0 kernel loads I am noticing a
DEBUGCHK error in
C:\ymzki\private\winceos\COREOS\nk\kernel\nknormal\..\schedule.c at line 376.
The kernel stops loading a couple of lines after that. Not able to figure out
the reason for this error. Can someone please give some suggestions on how to
proceed further.
Below is my full PB Debugger output:-
===================================================
PB Debugger The Kernel Debugger is waiting to connect with target.
4294767296 PID:0 TID:0 Error Reporting Memory Reserved, dump size = 00020000
4294767296 PID:0 TID:0 Setting up softlog at 0x8bddc000 for 0x800 entries
4294767296 PID:0 TID:0 Booting Windows CE version 6.00 for (ARM)
4294767296 PID:0 TID:0 &pTOC = 8b6edc1c, pTOC = 8b689d84, pTOC->ulRamFree =
8b6f2000, MemForPT = 00001000
4294767296 PID:0 TID:0 Configuring: Primary pages: 1767, Secondary pages: 0,
Filesystem pages = 883
4294767296 PID:0 TID:0
Booting kernel with clean memory configuration:
4294767296 PID:0 TID:0 Memory Sections:
4294767296 PID:0 TID:0 [0] : start: 8b6f4000, extension: 00001000, length:
006e7000
4294767296 PID:0 TID:0 NKStartup done, starting up kernel.
4294767297 PID:0 TID:0 Windows CE KernelInit
4294767326 PID:400002 TID:2 Reserve VM for kernel XIP DLls, first =
c0010000, last = c1310000
4294767350 PID:400002 TID:2 g_pprcNK == 0x8b6ebaa0
4294767373 PID:400002 TID:410002 Updated eptr->e32_vsize to = 0001d000
4294767395 PID:400002 TID:410002 Initializing Memory Mapped File Support
4294767417 PID:400002 TID:410002 Scheduling the first thread.
4294767440 PID:400002 TID:410002 Detecting VFP...
4294767462 PID:400002 TID:410002 VFP Not Found!
4294767484 PID:400002 TID:410002 LoaderInit: Initialing loader
4294767510 PID:400002 TID:410002 Updated eptr->e32_vsize to = 0001d000
4294767533 PID:400002 TID:410002 Updated eptr->e32_vsize to = 000a2000
4294767565 PID:400002 TID:410002 Updated eptr->e32_vsize to = 0001e000
4294767630 PID:400002 TID:410002 Heap Statistics at 0xC01BAAC0
4294767654 PID:400002 TID:410002 +HNDLCreateHandle 8824e3c0, 8bdd58a0 8b6ebaa0
4294767676 PID:400002 TID:410002 -HNDLCreateHandle 00490003
4294767700 PID:400002 TID:410002 +HandleException: pcstk = d001fb50
4294767722 PID:400002 TID:410002 -HandleException: prepare getting into
ExceptionDispatch pcstk = d001fb50
4294767745 PID:400002 TID:410002 +HNDLCreateHandle 8824e360, 8bdd5bd0 8b6ebaa0
4294767767 PID:400002 TID:410002 -HNDLCreateHandle 004a0003
4294767790 PID:400002 TID:410002 + THRDCreate: (8b6ebaa0, 00400002,
d0060000, 00010000 00000000, 882c5d40, 8bdd5a98, 000000ff)
4294767812 PID:400002 TID:410002 +HNDLCreateHandle 8824b618, 8bdd5c90 8b6ebaa0
4294767835 PID:400002 TID:410002 -HNDLCreateHandle 004b0003
4294767867 PID:400002 TID:410002 THRDCreate: pth = 8bdd5c90, hth = 004b0003
4294767889 PID:400002 TID:410002 MDCT: pTh=8bdd5c90 Pc=c01223f4 Psr=001f
GP=00009999 Sp=d006fe90
4294767912 PID:400002 TID:410002 THRDCreate returns 8bdd5c90, id = 004b0002
4294767934 PID:400002 TID:410002 CreateKernelThread returns 004c0003
4294767966 PID:400002 TID:410002 PGPOOL: Reserved 768 pages for Loader pool
4294767999 PID:400002 TID:410002 FSB: 8bdd5f90 (112)
4294768021 PID:400002 TID:410002 FSB: waste=8
4294768043 PID:400002 TID:410002 +HNDLCreateHandle 8824e360, 8bdb0000 8b6ebaa0
4294768066 PID:400002 TID:410002 -HNDLCreateHandle 004d0003
4294768088 PID:400002 TID:410002 + THRDCreate: (8b6ebaa0, 00400002,
d0070000, 00010000 00000000, 882c5d40, 8bdd5b34, 000000ff)
4294768111 PID:400002 TID:410002 +HNDLCreateHandle 8824b618, 8bdb009c 8b6ebaa0
4294768133 PID:400002 TID:410002 -HNDLCreateHandle 004e0003
4294768155 PID:400002 TID:410002 THRDCreate: pth = 8bdb009c, hth = 004e0003
4294768178 PID:400002 TID:410002 MDCT: pTh=8bdb009c Pc=c01223f4 Psr=001f
GP=00009999 Sp=d007fe90
4294768200 PID:400002 TID:410002 THRDCreate returns 8bdb009c, id = 004e0002
4294768222 PID:400002 TID:410002 CreateKernelThread returns 004f0003
4294768245 PID:400002 TID:410002 +HandleException: pcstk = d001fc58
4294768267 PID:400002 TID:410002 -HandleException: prepare getting into
ExceptionDispatch pcstk = d001fc58
4294768290 PID:400002 TID:410002 Exception 'Data Abort' (4):
Thread-Id=00410002(pth=8bddb024), Proc-Id=00400002(pprc=8b6ebaa0) 'NK.EXE',
VM-active=00400002(pprc=8b6ebaa0) 'NK.EXE'
4294768322 PID:400002 TID:410002 PC=882c0d7c(kernel.dll+0x00083d7c)
RA=882c0cf4(kernel.dll+0x00083cf4) SP=d001fce8, BVA=00000041
4294768344 PID:400002 TID:410002 CHECKTAKECRITSEC: Violation of critical
section ordering, holding CS 8b6ed5c0 (1) while taking CS 8b6ed620 (10)
4294768367 PID:400002 TID:410002 NK Kernel: DEBUGCHK failed in file
C:\ymzki\private\winceos\COREOS\nk\kernel\nknormal\..\schedule.c at line 376
4294768403 PID:400002 TID:410002 +HandleException: pcstk = d001f6c4
4294768426 PID:400002 TID:410002 -HandleException: prepare getting into
ExceptionDispatch pcstk = d001f6c4
4294768448 PID:400002 TID:410002 DEBUG_BREAK @8829735c Ignored.
4294768448 PID:400002 TID:410002 +HandleException: pcstk = d001ef4c
4294768497 PID:400002 TID:410002 -HandleException: committed secure stack
page d001e000
4294768527 PID:400002 TID:410002 RtlDispatchException: returning failure.
Flags=0
4294768550 PID:400002 TID:410002 NK Kernel: DEBUGCHK failed in file
C:\ymzki\private\winceos\COREOS\nk\kernel\nknormal\..\exdsptch.c at line 333
4294768572 PID:400002 TID:410002 +HandleException: pcstk = d001f490
4294768594 PID:400002 TID:410002 -HandleException: prepare getting into
ExceptionDispatch pcstk = d001f490
4294768627 PID:400002 TID:410002 DEBUG_BREAK @882581fc Ignored.
4294768649 PID:400002 TID:410002
Unhandled exception c0000005:
4294768671 PID:400002 TID:410002 Terminating thread 8bddb024
4294768694 PID:400002 TID:410002 Secondary thread in proc 00400002 faulted,
Exception code = c0000005, Exception Address = 882c0d7c!
4294768716 PID:400002 TID:410002 Terminating Thread 00410002
4294768748 PID:400002 TID:410002 NKExitThread entry: pCurThread = 8bddb024,
dwExitCode = c0000005
4294768771 PID:400002 TID:410002 CHECKTAKECRITSEC: Violation of critical
section ordering, holding CS 8b6ed5c0 (1) while taking CS 8b6ebb94 (13)
4294768793 PID:400002 TID:410002 NK Kernel: DEBUGCHK failed in file
C:\ymzki\private\winceos\COREOS\nk\kernel\nknormal\..\schedule.c at line 376
4294768825 PID:400002 TID:410002 +HandleException: pcstk = d001faa8
4294768848 PID:400002 TID:410002 -HandleException: prepare getting into
ExceptionDispatch pcstk = d001faa8
4294768870 PID:400002 TID:410002 DEBUG_BREAK @8829735c Ignored.
PB Debugger The Kernel Debugger has been disconnected successfully.