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)
Wed, Feb 5, 11:26 PM
Unknown Object (File)
Jan 30 2025, 1:37 AM
Unknown Object (File)
Jan 25 2025, 1:54 AM
Unknown Object (File)
Jan 19 2025, 3:28 AM
Unknown Object (File)
Jan 19 2025, 3:28 AM
Unknown Object (File)
Jan 19 2025, 3:09 AM
Unknown Object (File)
Jan 18 2025, 11:55 PM
Unknown Object (File)
Jan 15 2025, 6:58 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 Skipped
Unit
Tests Skipped

Event Timeline

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

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