From 53b19636493ababb987d7050563df491c2175c30 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 15 Feb 2003 19:38:23 +0000 Subject: [PATCH] Move kernel_vm_end's declaration to pmap.h; add a comment regarding the synchronization of access to kernel_vm_end. --- sys/vm/pmap.h | 5 +++++ sys/vm/vm_kern.h | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/vm/pmap.h b/sys/vm/pmap.h index 38bde18f8cc3..20a5bd3ce41e 100644 --- a/sys/vm/pmap.h +++ b/sys/vm/pmap.h @@ -89,6 +89,11 @@ typedef struct pmap_statistics *pmap_statistics_t; struct proc; struct thread; +/* + * Updates to kernel_vm_end are synchronized by the kernel_map's system mutex. + */ +extern vm_offset_t kernel_vm_end; + extern int pmap_pagedaemon_waken; #ifdef __alpha__ diff --git a/sys/vm/vm_kern.h b/sys/vm/vm_kern.h index c347ca35276e..d8d8aac42898 100644 --- a/sys/vm/vm_kern.h +++ b/sys/vm/vm_kern.h @@ -75,6 +75,4 @@ extern vm_map_t clean_map; extern vm_map_t exec_map; extern u_int vm_kmem_size; -extern vm_offset_t kernel_vm_end; - #endif /* _VM_VM_KERN_H_ */