mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:23:34 +00:00
[NTOS:INVB]
- Do not use KeDelayExecutionThread while holding a spin lock CORE-8052 #resolve svn path=/trunk/; revision=62628
This commit is contained in:
parent
a370953bd4
commit
e76390da3e
1 changed files with 3 additions and 6 deletions
|
@ -39,7 +39,7 @@ typedef struct tagRGBQUAD
|
||||||
static RGBQUAD _MainPalette[16];
|
static RGBQUAD _MainPalette[16];
|
||||||
|
|
||||||
#define PALETTE_FADE_STEPS 15
|
#define PALETTE_FADE_STEPS 15
|
||||||
#define PALETTE_FADE_TIME 20 * 10000 /* 20ms */
|
#define PALETTE_FADE_TIME 20 * 1000 /* 20ms */
|
||||||
|
|
||||||
/** From bootvid/precomp.h **/
|
/** From bootvid/precomp.h **/
|
||||||
//
|
//
|
||||||
|
@ -76,9 +76,6 @@ BootImageFadeIn(VOID)
|
||||||
LPRGBQUAD Palette = (LPRGBQUAD)(PaletteBitmapBuffer + sizeof(BITMAPINFOHEADER));
|
LPRGBQUAD Palette = (LPRGBQUAD)(PaletteBitmapBuffer + sizeof(BITMAPINFOHEADER));
|
||||||
|
|
||||||
ULONG Iteration, Index, ClrUsed;
|
ULONG Iteration, Index, ClrUsed;
|
||||||
LARGE_INTEGER Interval;
|
|
||||||
|
|
||||||
Interval.QuadPart = -PALETTE_FADE_TIME;
|
|
||||||
|
|
||||||
/* Check if we're installed and we own it */
|
/* Check if we're installed and we own it */
|
||||||
if ((InbvBootDriverInstalled) &&
|
if ((InbvBootDriverInstalled) &&
|
||||||
|
@ -115,14 +112,14 @@ BootImageFadeIn(VOID)
|
||||||
VidBitBlt(PaletteBitmapBuffer, 0, 0);
|
VidBitBlt(PaletteBitmapBuffer, 0, 0);
|
||||||
|
|
||||||
/* Wait for a bit. */
|
/* Wait for a bit. */
|
||||||
KeDelayExecutionThread(KernelMode, FALSE, &Interval);
|
KeStallExecutionProcessor(PALETTE_FADE_TIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Release the lock */
|
/* Release the lock */
|
||||||
InbvReleaseLock();
|
InbvReleaseLock();
|
||||||
|
|
||||||
/* Wait for a bit. */
|
/* Wait for a bit. */
|
||||||
KeDelayExecutionThread(KernelMode, FALSE, &Interval);
|
KeStallExecutionProcessor(PALETTE_FADE_TIME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue