- 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:
Filip Navara 2005-03-19 02:18:49 +00:00
parent 8b3af26269
commit e54de54618
2 changed files with 2 additions and 1 deletions

View file

@ -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;
}

View file

@ -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 */