cvs commit: src/sys/i386/acpica acpi_wakeup.c
njl at FreeBSD.org
Wed Aug 4 23:29:12 PDT 2004
njl 2004-08-05 06:29:12 UTC
FreeBSD src repository
Remove the attempt to cache the previous page mapped at our identity
location (for the wake code). It should not be needed since we don't
map other pages at the same location and if there was an old mapping, it
would be restored by a fault. The old code had serious problems, namely
that it was restoring the new page it had just removed (not opage) and
it could only guess at the right protection (since there's no
pmap_extract_protect function). Thanks to Alan Cox for explaining much
of this to me.
Also, remove a commented-out initializecpu() call since it is not needed.
Restoring the cpu context is better than attempting to init from scratch.
Reviewed by: alc (earlier version)
Revision Changes Path
1.37 +2 -15 src/sys/i386/acpica/acpi_wakeup.c
More information about the cvs-all