diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-12-01 22:24:53 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-12-01 22:24:53 +0000 |
commit | e1479e938b762ba4b093f11b37ce4a928e82406d (patch) | |
tree | c59385c6962388affe1d5d8e3864aa1329c24945 /sys/arch/m88k/include | |
parent | 964ae37351bb4b966106359d3434ce972d3a75ee (diff) |
Get rid of PMAP_NULL and xx_ENTRY_NULL and simply use NULL when necessary.
Diffstat (limited to 'sys/arch/m88k/include')
-rw-r--r-- | sys/arch/m88k/include/mmu.h | 6 | ||||
-rw-r--r-- | sys/arch/m88k/include/pmap.h | 4 | ||||
-rw-r--r-- | sys/arch/m88k/include/vmparam.h | 4 |
3 files changed, 4 insertions, 10 deletions
diff --git a/sys/arch/m88k/include/mmu.h b/sys/arch/m88k/include/mmu.h index e44180047da..6984c374327 100644 --- a/sys/arch/m88k/include/mmu.h +++ b/sys/arch/m88k/include/mmu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mmu.h,v 1.4 2005/09/15 21:07:04 miod Exp $ */ +/* $OpenBSD: mmu.h,v 1.5 2005/12/01 22:24:49 miod Exp $ */ /* * This file bears almost no resemblance to the original m68k file, @@ -102,8 +102,6 @@ typedef u_int32_t sdt_entry_t; -#define SDT_ENTRY_NULL ((sdt_entry_t *) 0) - #define SG_V 0x00000001 #define SG_NV 0x00000000 #define SG_PROT 0x00000004 @@ -121,8 +119,6 @@ typedef u_int32_t sdt_entry_t; typedef u_int32_t pt_entry_t; -#define PT_ENTRY_NULL ((pt_entry_t *) 0) - #define PG_V 0x00000001 #define PG_NV 0x00000000 #define PG_PROT 0x00000004 diff --git a/sys/arch/m88k/include/pmap.h b/sys/arch/m88k/include/pmap.h index c4a950d5752..6c26c4095c6 100644 --- a/sys/arch/m88k/include/pmap.h +++ b/sys/arch/m88k/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.5 2005/03/28 12:42:44 miod Exp $ */ +/* $OpenBSD: pmap.h,v 1.6 2005/12/01 22:24:49 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1991 Carnegie Mellon University @@ -31,8 +31,6 @@ struct pmap { struct pmap_statistics pm_stats; /* pmap statistics */ }; -#define PMAP_NULL ((pmap_t) 0) - /* The PV (Physical to virtual) List. * * For each vm_page_t, pmap keeps a list of all currently valid virtual diff --git a/sys/arch/m88k/include/vmparam.h b/sys/arch/m88k/include/vmparam.h index 9f1a26d19e0..8f19a0667c1 100644 --- a/sys/arch/m88k/include/vmparam.h +++ b/sys/arch/m88k/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.3 2005/04/11 15:13:01 deraadt Exp $ */ +/* $OpenBSD: vmparam.h,v 1.4 2005/12/01 22:24:49 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1992 Carnegie Mellon University @@ -114,7 +114,7 @@ struct vm_page_md { #define VM_MDPAGE_INIT(pg) do { \ (pg)->mdpage.pvent.pv_next = NULL; \ - (pg)->mdpage.pvent.pv_pmap = PMAP_NULL; \ + (pg)->mdpage.pvent.pv_pmap = NULL; \ (pg)->mdpage.pvent.pv_va = 0; \ (pg)->mdpage.pvent.pv_flags = 0; \ } while (0) |