projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[HNETCFG] Sync with Wine 3.0. CORE-14225
[reactos.git]
/
win32ss
/
drivers
/
videoprt
/
int10.c
diff --git
a/win32ss/drivers/videoprt/int10.c
b/win32ss/drivers/videoprt/int10.c
index
b6a5eb9
..
0893db7
100644
(file)
--- a/
win32ss/drivers/videoprt/int10.c
+++ b/
win32ss/drivers/videoprt/int10.c
@@
-58,7
+58,7
@@
IntInitializeVideoAddressSpace(VOID)
/* Open the physical memory section */
InitializeObjectAttributes(&ObjectAttributes,
&PhysMemName,
/* Open the physical memory section */
InitializeObjectAttributes(&ObjectAttributes,
&PhysMemName,
-
0
,
+
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE
,
NULL,
NULL);
Status = ZwOpenSection(&PhysMemHandle,
NULL,
NULL);
Status = ZwOpenSection(&PhysMemHandle,
@@
-135,6
+135,15
@@
IntInitializeVideoAddressSpace(VOID)
/* Return success */
return STATUS_SUCCESS;
}
/* Return success */
return STATUS_SUCCESS;
}
+#else
+NTSTATUS
+NTAPI
+IntInitializeVideoAddressSpace(VOID)
+{
+ UNIMPLEMENTED;
+ NT_ASSERT(FALSE);
+ return STATUS_NOT_IMPLEMENTED;
+}
#endif
#if defined(_M_IX86)
#endif
#if defined(_M_IX86)
@@
-287,7
+296,9
@@
IntInt10CallBios(
BiosContext.SegEs = BiosArguments->SegEs;
/* Do the ROM BIOS call */
BiosContext.SegEs = BiosArguments->SegEs;
/* Do the ROM BIOS call */
+ (void)KeWaitForMutexObject(&VideoPortInt10Mutex, Executive, KernelMode, FALSE, NULL);
Status = Ke386CallBios(0x10, &BiosContext);
Status = Ke386CallBios(0x10, &BiosContext);
+ KeReleaseMutex(&VideoPortInt10Mutex, FALSE);
/* Return the arguments */
BiosArguments->Eax = BiosContext.Eax;
/* Return the arguments */
BiosArguments->Eax = BiosContext.Eax;
@@
-345,7
+356,9
@@
VideoPortInt10(
BiosContext.Ebp = BiosArguments->Ebp;
/* Do the ROM BIOS call */
BiosContext.Ebp = BiosArguments->Ebp;
/* Do the ROM BIOS call */
+ (void)KeWaitForMutexObject(&VideoPortInt10Mutex, Executive, KernelMode, FALSE, NULL);
Status = Ke386CallBios(0x10, &BiosContext);
Status = Ke386CallBios(0x10, &BiosContext);
+ KeReleaseMutex(&VideoPortInt10Mutex, FALSE);
/* Return the arguments */
BiosArguments->Eax = BiosContext.Eax;
/* Return the arguments */
BiosArguments->Eax = BiosContext.Eax;