summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-28 16:13:30 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-28 16:13:30 +0000
commit18fa55b7c0a57038bc44966e200e42c95c1548cd (patch)
treef15be45f48de10a2cf3069a322d112dd49b3c21b /sys/arch/i386
parentc838246d36eaa84d99978e74064e65cd79f105d2 (diff)
zap some typedefs.
vm_map_t -> struct vm_map * vm_map_entry_t -> struct vm_map_entry * simple_lock_data_t -> struct simplelock (uvm not done yet, coming in the next commit)
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/machdep.c8
-rw-r--r--sys/arch/i386/i386/pmap.c14
-rw-r--r--sys/arch/i386/i386/sys_machdep.c4
-rw-r--r--sys/arch/i386/i386/trap.c10
-rw-r--r--sys/arch/i386/include/pmap.h4
5 files changed, 20 insertions, 20 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 169a2a58be3..2c3fb637e37 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.185 2001/11/28 15:02:58 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.186 2001/11/28 16:13:28 art Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -242,9 +242,9 @@ int i386_fpu_fdivbug;
bootarg_t *bootargp;
vm_offset_t avail_end;
-vm_map_t exec_map = NULL;
-vm_map_t mb_map = NULL;
-vm_map_t phys_map = NULL;
+struct vm_map *exec_map = NULL;
+struct vm_map *mb_map = NULL;
+struct vm_map *phys_map = NULL;
int kbd_reset;
diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c
index 2e99c633ee8..2572addfa68 100644
--- a/sys/arch/i386/i386/pmap.c
+++ b/sys/arch/i386/i386/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.50 2001/11/28 15:02:58 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.51 2001/11/28 16:13:28 art Exp $ */
/* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */
/*
@@ -268,11 +268,11 @@
#endif
struct lock pmap_main_lock;
-simple_lock_data_t pvalloc_lock;
-simple_lock_data_t pmaps_lock;
-simple_lock_data_t pmap_copy_page_lock;
-simple_lock_data_t pmap_zero_page_lock;
-simple_lock_data_t pmap_tmpptp_lock;
+struct simplelock pvalloc_lock;
+struct simplelock pmaps_lock;
+struct simplelock pmap_copy_page_lock;
+struct simplelock pmap_zero_page_lock;
+struct simplelock pmap_tmpptp_lock;
#define PMAP_MAP_TO_HEAD_LOCK() \
spinlockmgr(&pmap_main_lock, LK_SHARED, (void *) 0)
@@ -1406,7 +1406,7 @@ pmap_free_pvpage()
{
int s;
struct vm_map *map;
- vm_map_entry_t dead_entries;
+ struct vm_map_entry *dead_entries;
struct pv_page *pvp;
s = splimp(); /* protect kmem_map */
diff --git a/sys/arch/i386/i386/sys_machdep.c b/sys/arch/i386/i386/sys_machdep.c
index 508a4a26088..6aa7063898c 100644
--- a/sys/arch/i386/i386/sys_machdep.c
+++ b/sys/arch/i386/i386/sys_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_machdep.c,v 1.16 2001/11/06 19:53:14 miod Exp $ */
+/* $OpenBSD: sys_machdep.c,v 1.17 2001/11/28 16:13:28 art Exp $ */
/* $NetBSD: sys_machdep.c,v 1.28 1996/05/03 19:42:29 christos Exp $ */
/*-
@@ -70,7 +70,7 @@
#include <machine/vm86.h>
#endif
-extern vm_map_t kernel_map;
+extern struct vm_map *kernel_map;
#ifdef USER_LDT
int i386_get_ldt __P((struct proc *, void *, register_t *));
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index 98580fd7259..391f6e6b233 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.45 2001/11/28 13:47:38 art Exp $ */
+/* $OpenBSD: trap.c,v 1.46 2001/11/28 16:13:28 art Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
/*-
@@ -416,11 +416,11 @@ trap(frame)
/* FALLTHROUGH */
case T_PAGEFLT|T_USER: { /* page fault */
- register vm_offset_t va;
- register struct vmspace *vm = p->p_vmspace;
- register vm_map_t map;
+ vm_offset_t va;
+ struct vmspace *vm = p->p_vmspace;
+ struct vm_map *map;
int rv;
- extern vm_map_t kernel_map;
+ extern struct vm_map *kernel_map;
unsigned nss;
if (vm == NULL)
diff --git a/sys/arch/i386/include/pmap.h b/sys/arch/i386/include/pmap.h
index c024a60a4e8..eb179fb4e2a 100644
--- a/sys/arch/i386/include/pmap.h
+++ b/sys/arch/i386/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.19 2001/11/28 15:02:58 art Exp $ */
+/* $OpenBSD: pmap.h,v 1.20 2001/11/28 16:13:28 art Exp $ */
/* $NetBSD: pmap.h,v 1.44 2000/04/24 17:18:18 thorpej Exp $ */
/*
@@ -291,7 +291,7 @@ struct pmap {
struct pv_entry;
struct pv_head {
- simple_lock_data_t pvh_lock; /* locks every pv on this list */
+ struct simplelock pvh_lock; /* locks every pv on this list */
struct pv_entry *pvh_list; /* head of list (locked by pvh_lock) */
};