Skip to content

Commit

Permalink
[BOOT] Fix ACPI Initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Oct 10, 2024
1 parent 5e104b3 commit e860ede
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion boot/freeldr/freeldr/arch/i386/hwacpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ DBG_DEFAULT_CHANNEL(HWDETECT);

BOOLEAN AcpiPresent = FALSE;

static PRSDP_DESCRIPTOR
PRSDP_DESCRIPTOR
FindAcpiBios(VOID)
{
PUCHAR Ptr;
Expand Down
1 change: 0 additions & 1 deletion boot/freeldr/freeldr/arch/uefi/uefihw.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ BOOLEAN AcpiPresent = FALSE;

/* FUNCTIONS *****************************************************************/

static
PRSDP_DESCRIPTOR
FindAcpiBios(VOID)
{
Expand Down
3 changes: 3 additions & 0 deletions boot/freeldr/freeldr/include/arch/pc/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ typedef
ULONG
(*GET_SERIAL_PORT)(ULONG Index, PULONG Irq);

PRSDP_DESCRIPTOR
FindAcpiBios(VOID);

VOID
DetectBiosDisks(PCONFIGURATION_COMPONENT_DATA SystemKey,
PCONFIGURATION_COMPONENT_DATA BusKey);
Expand Down
2 changes: 1 addition & 1 deletion boot/freeldr/freeldr/ntldr/winldr.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ WinLdrInitializePhase1(PLOADER_PARAMETER_BLOCK LoaderBlock,
if (AcpiPresent)
{
/* Set the pointer to something for compatibility */
Extension->AcpiTable = (PVOID)1;
Extension->AcpiTable = (PVOID)FindAcpiBios();
// FIXME: Extension->AcpiTableSize;
}

Expand Down

0 comments on commit e860ede

Please sign in to comment.