mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 12:18:13 +00:00
- Force a 5 second wait before loading drivers, on ARM.
- Context switching doesn't really work -- but we've been lucky since we're stuck on a priority 31 thread. - Instead of worrying about this later when the system will be fully operational, this forces us to expose these bugs, and to make sure everything works. - This will stress our context switching, waiting, unwaiting and scheduling code on ARM but once it all works well, after 5 seconds we'll be back on track. svn path=/trunk/; revision=34487
This commit is contained in:
parent
a893ad634d
commit
351129dc08
|
@ -1704,6 +1704,17 @@ Phase1InitializationDiscard(IN PVOID Context)
|
|||
/* Initialize in-place execution support */
|
||||
XIPInit(LoaderBlock);
|
||||
|
||||
#ifdef _M_ARM
|
||||
//
|
||||
// ARM: Force a wait so we can test thread scheduling, timing and context switching
|
||||
//
|
||||
DPRINT1("Beginning 5 second wait...\n");
|
||||
Timeout.QuadPart = Int32x32To64(5, -10000000);
|
||||
KeDelayExecutionThread(KernelMode, FALSE, &Timeout);
|
||||
DPRINT1("Wait complete\n");
|
||||
while (TRUE);
|
||||
#endif
|
||||
|
||||
/* Set maximum update to 75% */
|
||||
InbvSetProgressBarSubset(25, 75);
|
||||
|
||||
|
|
Loading…
Reference in a new issue