- Fix acpi_os_get_thread_id to return 1-based thread ids (instead of
zero-based ones).
- Zero the owner_id field while initializing acpi_gbl_acpi_mutex_info.
Modified: trunk/reactos/drivers/bus/acpi/ospm/osl.c
Modified: trunk/reactos/drivers/bus/acpi/utils/cmglobal.c
_____
Modified: trunk/reactos/drivers/bus/acpi/ospm/osl.c
--- trunk/reactos/drivers/bus/acpi/ospm/osl.c 2005-03-19 01:37:47 UTC
(rev 14185)
+++ trunk/reactos/drivers/bus/acpi/ospm/osl.c 2005-03-19 02:18:49 UTC
(rev 14186)
@@ -601,5 +601,5 @@
u32
acpi_os_get_thread_id (void)
{
- return (ULONG)PsGetCurrentThreadId();
+ return (ULONG)PsGetCurrentThreadId() + 1;
}
_____
Modified: trunk/reactos/drivers/bus/acpi/utils/cmglobal.c
--- trunk/reactos/drivers/bus/acpi/utils/cmglobal.c 2005-03-19
01:37:47 UTC (rev 14185)
+++ trunk/reactos/drivers/bus/acpi/utils/cmglobal.c 2005-03-19
02:18:49 UTC (rev 14186)
@@ -389,6 +389,7 @@
acpi_gbl_acpi_mutex_info[i].mutex = NULL;
acpi_gbl_acpi_mutex_info[i].locked = FALSE;
acpi_gbl_acpi_mutex_info[i].use_count = 0;
+ acpi_gbl_acpi_mutex_info[i].owner_id = 0;
}
/* Global notify handlers */
Show replies by date