]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove the attempt to cache the previous page mapped at our identity
authornjl <njl@FreeBSD.org>
Thu, 5 Aug 2004 06:29:12 +0000 (06:29 +0000)
committernjl <njl@FreeBSD.org>
Thu, 5 Aug 2004 06:29:12 +0000 (06:29 +0000)
commit708c9dab9fb4dbff2b9b609703d7160fcfc38d25
tree2c7a19f31979ff1225b73116a910058d2a45879c
parentcd532d497e6014f748d96fb760671ebe7845db63
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)
sys/i386/acpica/acpi_wakeup.c