diff options
author | alc <alc@FreeBSD.org> | 2003-09-25 02:51:06 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-09-25 02:51:06 +0000 |
commit | 3f8be813be356524ea3b3ac26f82083a87c071ae (patch) | |
tree | 517193136bf4c79d513390c0f64e954296ca4447 /sys/i386/acpica | |
parent | 5505d235539dd343acef2fa9c7807b25c70be734 (diff) | |
download | FreeBSD-src-3f8be813be356524ea3b3ac26f82083a87c071ae.zip FreeBSD-src-3f8be813be356524ea3b3ac26f82083a87c071ae.tar.gz |
- Eliminate the pte object.
- Use kmem_alloc_nofault() rather than kmem_alloc_pageable() to allocate
KVA space for the page directory page(s). Submitted by: tegge
Diffstat (limited to 'sys/i386/acpica')
-rw-r--r-- | sys/i386/acpica/acpi_wakeup.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/i386/acpica/acpi_wakeup.c b/sys/i386/acpica/acpi_wakeup.c index 0024287..9a11f42 100644 --- a/sys/i386/acpica/acpi_wakeup.c +++ b/sys/i386/acpica/acpi_wakeup.c @@ -188,7 +188,6 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state) vm_page_t page; static vm_page_t opage = NULL; int ret = 0; - int pteobj_allocated = 0; u_int32_t cr3; u_long ef; struct proc *p; @@ -211,10 +210,6 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state) #else load_cr3(vtophys(pm->pm_pdir)); #endif - if (pm->pm_pteobj == NULL) { - pm->pm_pteobj = vm_object_allocate(OBJT_DEFAULT, PTDPTDI + 1); - pteobj_allocated = 1; - } oldphys = pmap_extract(pm, sc->acpi_wakephys); if (oldphys) @@ -290,10 +285,6 @@ out: VM_PROT_READ | VM_PROT_WRITE, 0); } - if (pteobj_allocated) { - vm_object_deallocate(pm->pm_pteobj); - pm->pm_pteobj = NULL; - } load_cr3(cr3); write_eflags(ef); |