ACPICA: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Sebastian (talk | contribs)
m →‎AcpiOsGetRootPointer: Join unnecessarily splitted lines
Sebastian (talk | contribs)
m →‎AcpiOsExecute: Clarify for x86-64
Line 78: Line 78:
==== AcpiOsExecute ====
==== AcpiOsExecute ====
ACPI_STATUS AcpiOsExecute(ACPI_EXECUTE_TYPE Type, ACPI_OSD_EXEC_CALLBACK Function, void *Context)
ACPI_STATUS AcpiOsExecute(ACPI_EXECUTE_TYPE Type, ACPI_OSD_EXEC_CALLBACK Function, void *Context)
Create a new Thread (or process) with entry point at ''Function'' using parameter ''Context''. ''Type'' is not really useful. When the scheduler chooses this thread it has to put Context on the stack to have something like:
Create a new thread (or process) with entry point at ''Function'' using parameter ''Context''. ''Type'' is not really useful. When the scheduler chooses this thread it has to pass in ''Context'' to the first argument (RDI for x86-64, stack for x86-32 (using System V ABI) to have something like:
Function(Context);
Function(Context);

==== AcpiOsSleep ====
==== AcpiOsSleep ====
void AcpiOsSleep(UINT64 Milliseconds)
void AcpiOsSleep(UINT64 Milliseconds)