mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[ACPI]
- Implement AcpiOsGetPhysicalAddress - Make sure that AcpiOsGetThreadId returns a non-zero value svn path=/trunk/; revision=53913
This commit is contained in:
parent
90027438d1
commit
21ee8eb586
1 changed files with 14 additions and 2 deletions
|
@ -124,7 +124,18 @@ AcpiOsGetPhysicalAddress(
|
|||
void *LogicalAddress,
|
||||
ACPI_PHYSICAL_ADDRESS *PhysicalAddress)
|
||||
{
|
||||
ASSERT(FALSE);
|
||||
PHYSICAL_ADDRESS PhysAddr;
|
||||
|
||||
if (!LogicalAddress || !PhysicalAddress)
|
||||
{
|
||||
DPRINT1("Bad parameter\n");
|
||||
return AE_BAD_PARAMETER;
|
||||
}
|
||||
|
||||
PhysAddr = MmGetPhysicalAddress(LogicalAddress);
|
||||
|
||||
*PhysicalAddress = (ACPI_PHYSICAL_ADDRESS)PhysAddr.QuadPart;
|
||||
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
|
@ -190,7 +201,8 @@ AcpiOsWritable(
|
|||
ACPI_THREAD_ID
|
||||
AcpiOsGetThreadId (void)
|
||||
{
|
||||
return (ULONG)PsGetCurrentThreadId();
|
||||
/* Thread ID must be non-zero */
|
||||
return (ULONG)PsGetCurrentThreadId() + 1;
|
||||
}
|
||||
|
||||
ACPI_STATUS
|
||||
|
|
Loading…
Reference in a new issue