Page MenuHomeFreeBSD

x86: duplicate acpi_wakeup.c per i386 and amd64
ClosedPublic

Authored by kib on Sep 13 2021, 5:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 8:10 PM
Unknown Object (File)
Mon, Apr 8, 1:57 PM
Unknown Object (File)
Mar 25 2024, 10:30 PM
Unknown Object (File)
Mar 10 2024, 6:01 PM
Unknown Object (File)
Mar 8 2024, 12:05 AM
Unknown Object (File)
Jan 16 2024, 4:50 AM
Unknown Object (File)
Dec 23 2023, 10:33 AM
Unknown Object (File)
Dec 15 2023, 9:19 AM
Subscribers
None

Details

Summary

The file as is is the maze of #ifdef passages, all slightly different. Divorcing i386 and amd64 version actually makes changing the code easier, also no changes for i386 are planned.

amd64 wakeup: rework trampoline page allocation

There is no need to restrict trampoline page table to low 1M, it should work with any pages below 4G. Only wakeup code itself should be below 1M.

Do not waste level 5 page when LA48 mode is used.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Sep 13 2021, 5:02 PM
kib created this revision.
sys/amd64/acpica/acpi_wakeup.c
334

Shouldn't it be i = 0?

kib marked an inline comment as done.

Fix silly off by one

This revision is now accepted and ready to land.Sep 13 2021, 6:19 PM