summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-08-18 22:36:09 +0000
committerwollman <wollman@FreeBSD.org>1994-08-18 22:36:09 +0000
commitf9fc827448679cf1d41e56512c34521bf06ce37a (patch)
tree6b83fdf6eb5926c2f3d175a83d24bf5a2611a012 /sys/amd64/include
parent44fc281f480837836035856eb0af25443f0d2146 (diff)
downloadFreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.zip
FreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.tar.gz
Fix up some sloppy coding practices:
- Delete redundant declarations. - Add -Wredundant-declarations to Makefile.i386 so they don't come back. - Delete sloppy COMMON-style declarations of uninitialized data in header files. - Add a few prototypes. - Clean up warnings resulting from the above. NB: ioconf.c will still generate a redundant-declaration warning, which is unavoidable unless somebody volunteers to make `config' smarter.
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/cpufunc.h3
-rw-r--r--sys/amd64/include/pmap.h16
2 files changed, 3 insertions, 16 deletions
diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h
index 77f9213..8c99782 100644
--- a/sys/amd64/include/cpufunc.h
+++ b/sys/amd64/include/cpufunc.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cpufunc.h,v 1.15 1994/08/11 02:26:08 jkh Exp $
+ * $Id: cpufunc.h,v 1.16 1994/08/13 03:49:49 wollman Exp $
*/
/*
@@ -153,6 +153,7 @@ void load_cr0 __P((u_int cr0));
u_int rcr0 __P((void));
void load_cr3(u_long);
u_long rcr3(void);
+extern void DELAY(int);
void setidt __P((int, void (*)(), int, int));
extern u_long kvtop(void *);
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index 7ddcebd..1e4cf2b 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -42,7 +42,7 @@
*
* from: hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90
* from: @(#)pmap.h 7.4 (Berkeley) 5/12/91
- * $Id: pmap.h,v 1.12 1994/03/24 23:12:48 davidg Exp $
+ * $Id: pmap.h,v 1.14 1994/05/25 08:56:24 rgrimes Exp $
*/
#ifndef _PMAP_MACHINE_
@@ -194,23 +194,9 @@ pv_entry_t pv_table; /* array of entries, one per page */
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
-extern pmap_t pmap_create(vm_size_t);
-extern void pmap_pinit(struct pmap *);
-extern void pmap_destroy(pmap_t);
-extern void pmap_release(struct pmap *);
-extern void pmap_reference(pmap_t);
-extern void pmap_remove(struct pmap *, vm_offset_t, vm_offset_t);
-extern void pmap_protect(struct pmap *, vm_offset_t, vm_offset_t, vm_prot_t);
-extern void pmap_enter(pmap_t, vm_offset_t, vm_offset_t, vm_prot_t, boolean_t);
-extern void pmap_change_wiring(pmap_t, vm_offset_t, boolean_t);
extern inline pt_entry_t *pmap_pte(pmap_t, vm_offset_t);
-extern vm_offset_t pmap_extract(pmap_t, vm_offset_t);
-extern void pmap_copy(pmap_t, pmap_t, vm_offset_t, vm_size_t, vm_offset_t);
-extern void pmap_collect(pmap_t);
struct pcb; extern void pmap_activate(pmap_t, struct pcb *);
extern pmap_t pmap_kernel(void);
-extern void pmap_pageable(pmap_t, vm_offset_t, vm_offset_t, boolean_t);
-
#endif /* KERNEL */
OpenPOWER on IntegriCloud