mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
- 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. svn path=/trunk/; revision=14186
This commit is contained in:
parent
8b3af26269
commit
e54de54618
2 changed files with 2 additions and 1 deletions
|
@ -601,5 +601,5 @@ acpi_os_writable(void *ptr, u32 len)
|
|||
u32
|
||||
acpi_os_get_thread_id (void)
|
||||
{
|
||||
return (ULONG)PsGetCurrentThreadId();
|
||||
return (ULONG)PsGetCurrentThreadId() + 1;
|
||||
}
|
||||
|
|
|
@ -389,6 +389,7 @@ acpi_cm_init_globals (
|
|||
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 */
|
||||
|
|
Loading…
Reference in a new issue