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)
Tue, Oct 29, 2:27 PM
Unknown Object (File)
Sat, Oct 26, 7:01 AM
Unknown Object (File)
Oct 8 2024, 8:31 AM
Unknown Object (File)
Oct 5 2024, 7:27 AM
Unknown Object (File)
Oct 5 2024, 5:01 AM
Unknown Object (File)
Oct 5 2024, 1:02 AM
Unknown Object (File)
Oct 5 2024, 12:32 AM
Unknown Object (File)
Oct 4 2024, 4:50 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