From 09c5f9cc49f46d999f75d3bc015e6781b58a7e3a Mon Sep 17 00:00:00 2001 From: thorpej Date: Wed, 28 Feb 2007 04:21:51 +0000 Subject: [PATCH] TRUE -> true, FALSE -> false --- sys/arch/ia64/ia64/db_trace.c | 6 ++--- sys/arch/ia64/ia64/machdep.c | 6 ++--- sys/arch/ia64/ia64/pmap.c | 34 +++++++++++++------------- sys/arch/ia64/unwind/stackframe.c | 10 ++++---- sys/arch/ibmnws/ibmnws/autoconf.c | 4 +-- sys/arch/iyonix/iyonix/autoconf.c | 6 ++--- sys/arch/landisk/landisk/machdep.c | 6 ++--- sys/arch/luna68k/luna68k/machdep.c | 10 ++++---- sys/arch/luna68k/luna68k/trap.c | 6 ++--- sys/arch/mac68k/mac68k/machdep.c | 12 ++++----- sys/arch/mac68k/mac68k/trap.c | 6 ++--- sys/arch/macppc/dev/awacs.c | 6 ++--- sys/arch/macppc/dev/ofb.c | 6 ++--- sys/arch/macppc/dev/ofb_cons.c | 8 +++--- sys/arch/macppc/dev/snapper.c | 4 +-- sys/arch/macppc/macppc/autoconf.c | 6 ++--- sys/arch/mips/alchemy/au1000.c | 6 ++--- sys/arch/mips/alchemy/au1100.c | 8 +++--- sys/arch/mips/alchemy/au1500.c | 8 +++--- sys/arch/mips/alchemy/au1550.c | 8 +++--- sys/arch/mips/alchemy/au_himem_space.c | 6 ++--- sys/arch/mips/alchemy/dev/aupci.c | 16 ++++++------ sys/arch/mips/alchemy/dev/auspi.c | 8 +++--- sys/arch/mips/atheros/ar5312.c | 6 ++--- sys/arch/mips/atheros/ar5315.c | 8 +++--- sys/arch/mips/atheros/dev/arspi.c | 6 ++--- sys/arch/mips/include/db_machdep.h | 6 ++--- sys/arch/mips/mips/db_disasm.c | 14 +++++------ sys/arch/mips/mips/db_interface.c | 6 ++--- sys/arch/mips/mips/pmap.c | 22 ++++++++--------- sys/arch/mips/mips/trap.c | 12 ++++----- sys/arch/mips/mips/vm_machdep.c | 6 ++--- sys/arch/mips/mips/wired_map.c | 12 ++++----- sys/arch/mipsco/mipsco/machdep.c | 8 +++--- sys/arch/mvme68k/mvme68k/machdep.c | 10 ++++---- sys/arch/mvme68k/mvme68k/trap.c | 6 ++--- sys/arch/news68k/news68k/machdep.c | 10 ++++---- sys/arch/news68k/news68k/trap.c | 6 ++--- sys/arch/newsmips/apbus/spifi.c | 6 ++--- sys/arch/newsmips/newsmips/machdep.c | 8 +++--- sys/arch/next68k/next68k/machdep.c | 10 ++++---- sys/arch/next68k/next68k/trap.c | 6 ++--- 42 files changed, 182 insertions(+), 182 deletions(-) diff --git a/sys/arch/ia64/ia64/db_trace.c b/sys/arch/ia64/ia64/db_trace.c index e96bf4b86734..ce036f9dbb17 100644 --- a/sys/arch/ia64/ia64/db_trace.c +++ b/sys/arch/ia64/ia64/db_trace.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_trace.c,v 1.2 2007/02/21 22:59:45 thorpej Exp $ */ +/* $NetBSD: db_trace.c,v 1.3 2007/02/28 04:21:51 thorpej Exp $ */ /* Inspired by reading alpha/db_trace.c */ @@ -76,8 +76,8 @@ db_stack_trace_print(db_expr_t addr, bool have_addr, db_expr_t count, { char c; const char *cp = modif; - bool trace_thread = FALSE; - bool trace_user = FALSE; + bool trace_thread = false; + bool trace_user = false; struct trapframe *tf; struct unwind_frame current_frame; db_addr_t ip; diff --git a/sys/arch/ia64/ia64/machdep.c b/sys/arch/ia64/ia64/machdep.c index 6042a57da84a..01c71a416e36 100644 --- a/sys/arch/ia64/ia64/machdep.c +++ b/sys/arch/ia64/ia64/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.4 2007/02/09 21:55:05 ad Exp $ */ +/* $NetBSD: machdep.c,v 1.5 2007/02/28 04:21:51 thorpej Exp $ */ /*- * Copyright (c) 2003,2004 Marcel Moolenaar @@ -286,13 +286,13 @@ cpu_startup() * limits the number of processes exec'ing at any time. */ exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - 16 * NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); + 16 * NCARGS, VM_MAP_PAGEABLE, false, NULL); /* * Allocate a submap for physio */ phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - VM_PHYS_SIZE, 0, FALSE, NULL); + VM_PHYS_SIZE, 0, false, NULL); /* * No need to allocate an mbuf cluster submap. Mbuf clusters diff --git a/sys/arch/ia64/ia64/pmap.c b/sys/arch/ia64/ia64/pmap.c index 287ee6e99a73..e08d74d9933b 100644 --- a/sys/arch/ia64/ia64/pmap.c +++ b/sys/arch/ia64/ia64/pmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.5 2007/02/21 22:59:45 thorpej Exp $ */ +/* $NetBSD: pmap.c,v 1.6 2007/02/28 04:21:51 thorpej Exp $ */ /*- @@ -92,7 +92,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.5 2007/02/21 22:59:45 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.6 2007/02/28 04:21:51 thorpej Exp $"); #include #include @@ -336,7 +336,7 @@ pmap_steal_memory(vsize_t size, vaddr_t *vstartp, vaddr_t *vendp) #endif for (lcv = 0; lcv < vm_nphysseg; lcv++) { - if (uvm.page_init_done == TRUE) + if (uvm.page_init_done == true) panic("pmap_steal_memory: called _after_ bootstrap"); #if 0 @@ -419,7 +419,7 @@ pmap_steal_vhpt_memory(vsize_t size) #endif for (lcv = 0; lcv < vm_nphysseg; lcv++) { - if (uvm.page_init_done == TRUE) + if (uvm.page_init_done == true) panic("pmap_vhpt_steal_memory: called _after_ bootstrap"); #if 1 @@ -812,7 +812,7 @@ pmap_init(void) /* * Now it is safe to enable pv entry recording. */ - pmap_initialized = TRUE; + pmap_initialized = true; } @@ -828,7 +828,7 @@ vtophys(va) { paddr_t pa; - if (pmap_extract(pmap_kernel(), va, &pa) == TRUE) + if (pmap_extract(pmap_kernel(), va, &pa) == true) return (pa); return (0); } @@ -1057,7 +1057,7 @@ pmap_kenter_pa(vaddr_t va, paddr_t pa, vm_prot_t prot) else pmap_enter_vhpt(pte, va); pmap_pte_prot(pmap_kernel(), pte, prot); - pmap_set_pte(pte, va, pa, FALSE, FALSE); + pmap_set_pte(pte, va, pa, false, false); } @@ -1260,10 +1260,10 @@ pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *pap) if (pte != NULL && pmap_present(pte)) pap = (paddr_t *) pmap_ppn(pte); else - return FALSE; + return false; pmap_install(oldpmap); simple_unlock(pmap->pm_slock); - return TRUE; + return true; } @@ -1275,7 +1275,7 @@ pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *pap) bool pmap_clear_modify(struct vm_page *pg) { - bool rv = FALSE; + bool rv = false; struct ia64_lpte *pte; pmap_t oldpmap; pv_entry_t pv; @@ -1289,7 +1289,7 @@ pmap_clear_modify(struct vm_page *pg) pte = pmap_find_vhpt(pv->pv_va); KASSERT(pte != NULL); if (pmap_dirty(pte)) { - rv = TRUE; + rv = true; pmap_clear_dirty(pte); pmap_invalidate_page(pv->pv_pmap, pv->pv_va); } @@ -1363,7 +1363,7 @@ pmap_reference(pmap_t pmap) bool pmap_clear_reference(struct vm_page *pg) { - return (FALSE); + return (false); } /* @@ -1416,7 +1416,7 @@ pmap_enter(pmap_t pmap, vaddr_t va, paddr_t pa, vm_prot_t prot, int flags) va &= ~PAGE_MASK; - managed = FALSE; + managed = false; wired = (flags & PMAP_WIRED) !=0; @@ -1463,7 +1463,7 @@ pmap_enter(pmap_t pmap, vaddr_t va, paddr_t pa, vm_prot_t prot, int flags) else if (!wired && pmap_wired(&origpte)) pmap->pm_stats.wired_count--; - managed = (pmap_managed(&origpte)) ? TRUE : FALSE; + managed = (pmap_managed(&origpte)) ? true : false; /* @@ -1492,7 +1492,7 @@ pmap_enter(pmap_t pmap, vaddr_t va, paddr_t pa, vm_prot_t prot, int flags) if ((flags & (PG_FAKE)) == 0) { pmap_insert_entry(pmap, va, pg); - managed = TRUE; + managed = true; } /* @@ -2145,9 +2145,9 @@ pmap_poolpage_alloc(paddr_t *pap) simple_unlock(&pg->mdpage.pv_slock); #endif *pap = pa; - return (TRUE); + return (true); } - return (FALSE); + return (false); } /* diff --git a/sys/arch/ia64/unwind/stackframe.c b/sys/arch/ia64/unwind/stackframe.c index 786d84216a85..42457f2a0d1c 100644 --- a/sys/arch/ia64/unwind/stackframe.c +++ b/sys/arch/ia64/unwind/stackframe.c @@ -1,4 +1,4 @@ -/* $NetBSD: stackframe.c,v 1.2 2007/02/21 22:59:45 thorpej Exp $ */ +/* $NetBSD: stackframe.c,v 1.3 2007/02/28 04:21:51 thorpej Exp $ */ /* Contributed to the NetBSD foundation by Cherry G. Mathew * This file contains routines to use decoded unwind descriptor entries @@ -37,7 +37,7 @@ void buildrecordchain(uint64_t unwind_infop, struct recordchain *xxx) uint64_t unwindstart, unwindend; uint64_t unwindlen; uint64_t region_len = 0; - bool region_type = FALSE; /* Prologue */ + bool region_type = false; /* Prologue */ struct unwind_hdr_t { uint64_t uwh; @@ -76,7 +76,7 @@ void buildrecordchain(uint64_t unwind_infop, struct recordchain *xxx) if ((nextrecp = unwind_decode_R2(recptr, &strc[rec_cnt].udesc))){ region_len = strc[rec_cnt].udesc.R2.rlen; - region_type = FALSE; /* R2 regions are prologue regions */ + region_type = false; /* R2 regions are prologue regions */ strc[rec_cnt].type = R2; recptr = nextrecp; continue; @@ -90,7 +90,7 @@ void buildrecordchain(uint64_t unwind_infop, struct recordchain *xxx) continue; } - if(region_type == FALSE) { /* Prologue Region */ + if(region_type == false) { /* Prologue Region */ if ((nextrecp = unwind_decode_P1(recptr, &strc[rec_cnt].udesc))){ strc[rec_cnt].type = P1; recptr = nextrecp; @@ -976,7 +976,7 @@ struct staterecord *buildrecordstack(struct recordchain *rchain, uint64_t procof rdepth = procoffset - roffset; if (rdepth < 0) goto out; /* Overshot Region containing procoffset. Bailout. */ roffset += rlen; - rtype = FALSE; /* prologue region */ + rtype = false; /* prologue region */ pushrecord(¤t_state); /* R2 has save info. Continue down. */ diff --git a/sys/arch/ibmnws/ibmnws/autoconf.c b/sys/arch/ibmnws/ibmnws/autoconf.c index fe949d553032..7b50cc1a4428 100644 --- a/sys/arch/ibmnws/ibmnws/autoconf.c +++ b/sys/arch/ibmnws/ibmnws/autoconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: autoconf.c,v 1.5 2006/10/31 14:04:29 thorpej Exp $ */ +/* $NetBSD: autoconf.c,v 1.6 2007/02/28 04:21:52 thorpej Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -145,7 +145,7 @@ device_register(device_t dev, void *aux) if (BUILTIN_ETHERNET_P(pa)) { if (! prop_dictionary_set_bool(device_properties(dev), "am79c970-no-eeprom", - TRUE)) { + true)) { printf("WARNING: unable to set " "am79c970-no-eeprom property for %s\n", dev->dv_xname); diff --git a/sys/arch/iyonix/iyonix/autoconf.c b/sys/arch/iyonix/iyonix/autoconf.c index bb2b0148019e..04a6199f67a7 100644 --- a/sys/arch/iyonix/iyonix/autoconf.c +++ b/sys/arch/iyonix/iyonix/autoconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: autoconf.c,v 1.7 2006/05/05 18:04:41 thorpej Exp $ */ +/* $NetBSD: autoconf.c,v 1.8 2007/02/28 04:21:52 thorpej Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.7 2006/05/05 18:04:41 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.8 2007/02/28 04:21:52 thorpej Exp $"); #include "opt_md.h" @@ -104,7 +104,7 @@ cpu_configure(void) #define SETPROP(x, y) \ do { \ if (prop_dictionary_set(device_properties(dev), \ - x, y) == FALSE) { \ + x, y) == false) { \ printf("WARNING: unable to set " x " " \ "property for %s\n", dev->dv_xname); \ } \ diff --git a/sys/arch/landisk/landisk/machdep.c b/sys/arch/landisk/landisk/machdep.c index 0b524f27ef55..498fa965ffb4 100644 --- a/sys/arch/landisk/landisk/machdep.c +++ b/sys/arch/landisk/landisk/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.3 2007/01/24 13:08:11 hubertf Exp $ */ +/* $NetBSD: machdep.c,v 1.4 2007/02/28 04:21:52 thorpej Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -72,7 +72,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.3 2007/01/24 13:08:11 hubertf Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.4 2007/02/28 04:21:52 thorpej Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -215,7 +215,7 @@ landisk_startup(int howto, void *bi) #ifdef KLOADER /* copy boot parameter for kloader */ - kloader_bootinfo_set(&kbootinfo, 0, NULL, NULL, TRUE); + kloader_bootinfo_set(&kbootinfo, 0, NULL, NULL, true); #endif /* Load memory to UVM */ diff --git a/sys/arch/luna68k/luna68k/machdep.c b/sys/arch/luna68k/luna68k/machdep.c index 653d1e40045d..1d1108543a60 100644 --- a/sys/arch/luna68k/luna68k/machdep.c +++ b/sys/arch/luna68k/luna68k/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.48 2007/02/09 21:55:05 ad Exp $ */ +/* $NetBSD: machdep.c,v 1.49 2007/02/28 04:21:52 thorpej Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.48 2007/02/09 21:55:05 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.49 2007/02/28 04:21:52 thorpej Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -270,20 +270,20 @@ cpu_startup() * limits the number of processes exec'ing at any time. */ exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); + 16*NCARGS, VM_MAP_PAGEABLE, false, NULL); /* * Allocate a submap for physio */ phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - VM_PHYS_SIZE, 0, FALSE, NULL); + VM_PHYS_SIZE, 0, false, NULL); /* * Finally, allocate mbuf cluster submap. */ mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, nmbclusters * mclbytes, VM_MAP_INTRSAFE, - FALSE, NULL); + false, NULL); format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free)); printf("avail memory = %s\n", pbuf); diff --git a/sys/arch/luna68k/luna68k/trap.c b/sys/arch/luna68k/luna68k/trap.c index b465583b7aad..55106453f3b5 100644 --- a/sys/arch/luna68k/luna68k/trap.c +++ b/sys/arch/luna68k/luna68k/trap.c @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.40 2007/02/09 21:55:05 ad Exp $ */ +/* $NetBSD: trap.c,v 1.41 2007/02/28 04:21:52 thorpej Exp $ */ /* * Copyright (c) 1982, 1986, 1990, 1993 @@ -78,7 +78,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.40 2007/02/09 21:55:05 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.41 2007/02/28 04:21:52 thorpej Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -950,7 +950,7 @@ dumpwb(num, s, a, d) num, a, d, f7sz[(s & SSW4_SZMASK) >> 5], f7tt[(s & SSW4_TTMASK) >> 3], f7tm[s & SSW4_TMMASK]); printf(" PA "); - if (pmap_extract(p->p_vmspace->vm_map.pmap, (vaddr_t)a, &pa) == FALSE) + if (pmap_extract(p->p_vmspace->vm_map.pmap, (vaddr_t)a, &pa) == false) printf(""); else printf("%lx, current value %lx", pa, fuword((caddr_t)a)); diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c index 312d1b5c6158..563430501cd3 100644 --- a/sys/arch/mac68k/mac68k/machdep.c +++ b/sys/arch/mac68k/mac68k/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.311 2007/02/09 21:55:06 ad Exp $ */ +/* $NetBSD: machdep.c,v 1.312 2007/02/28 04:21:52 thorpej Exp $ */ /* * Copyright (c) 1982, 1990 The Regents of the University of California. @@ -107,7 +107,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.311 2007/02/09 21:55:06 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.312 2007/02/28 04:21:52 thorpej Exp $"); #include "opt_adb.h" #include "opt_ddb.h" @@ -458,19 +458,19 @@ cpu_startup(void) * limits the number of processes exec'ing at any time. */ exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - 16 * NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); + 16 * NCARGS, VM_MAP_PAGEABLE, false, NULL); /* * Allocate a submap for physio */ phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - VM_PHYS_SIZE, 0, FALSE, NULL); + VM_PHYS_SIZE, 0, false, NULL); /* * Finally, allocate mbuf cluster submap. */ mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - nmbclusters * mclbytes, VM_MAP_INTRSAFE, FALSE, NULL); + nmbclusters * mclbytes, VM_MAP_INTRSAFE, false, NULL); format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free)); printf("avail memory = %s\n", pbuf); @@ -1145,7 +1145,7 @@ getenv(const char *str) } s++; if (*s == '\0') { /* Not found */ - /* Boolean flags are FALSE (0) if not there */ + /* Boolean flags are false (0) if not there */ return 0; } continue; diff --git a/sys/arch/mac68k/mac68k/trap.c b/sys/arch/mac68k/mac68k/trap.c index ad8a8186fb3f..c2b9fb6195d2 100644 --- a/sys/arch/mac68k/mac68k/trap.c +++ b/sys/arch/mac68k/mac68k/trap.c @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.122 2007/02/09 21:55:06 ad Exp $ */ +/* $NetBSD: trap.c,v 1.123 2007/02/28 04:21:52 thorpej Exp $ */ /* * Copyright (c) 1982, 1986, 1990, 1993 @@ -77,7 +77,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.122 2007/02/09 21:55:06 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.123 2007/02/28 04:21:52 thorpej Exp $"); #include "opt_ddb.h" #include "opt_execfmt.h" @@ -979,7 +979,7 @@ dumpwb(int num, u_short s, u_int a, u_int d) num, a, d, f7sz[(s & SSW4_SZMASK) >> 5], f7tt[(s & SSW4_TTMASK) >> 3], f7tm[s & SSW4_TMMASK]); printf(" PA "); - if (pmap_extract(p->p_vmspace->vm_map.pmap, (vaddr_t)a, &pa) == FALSE) + if (pmap_extract(p->p_vmspace->vm_map.pmap, (vaddr_t)a, &pa) == false) printf(""); else printf("%lx, current value %lx", pa, fuword((caddr_t)a)); diff --git a/sys/arch/macppc/dev/awacs.c b/sys/arch/macppc/dev/awacs.c index 7089823355f4..cce7974a6453 100644 --- a/sys/arch/macppc/dev/awacs.c +++ b/sys/arch/macppc/dev/awacs.c @@ -1,4 +1,4 @@ -/* $NetBSD: awacs.c,v 1.25 2007/01/17 23:34:29 macallan Exp $ */ +/* $NetBSD: awacs.c,v 1.26 2007/02/28 04:21:51 thorpej Exp $ */ /*- * Copyright (c) 2000 Tsubai Masanari. All rights reserved. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: awacs.c,v 1.25 2007/01/17 23:34:29 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: awacs.c,v 1.26 2007/02/28 04:21:51 thorpej Exp $"); #include #include @@ -655,7 +655,7 @@ awacs_set_params(void *h, int setmode, int usemode, } awacs_write_reg(sc, AWACS_BYTE_SWAP, 0); i = auconv_set_converter(sc->sc_formats, AWACS_NFORMATS, - mode, p, TRUE, fil); + mode, p, true, fil); if (i < 0) return EINVAL; if (i == AWACS_FORMATS_LE) diff --git a/sys/arch/macppc/dev/ofb.c b/sys/arch/macppc/dev/ofb.c index 8a3b5fe02591..6f1fab7c7b86 100644 --- a/sys/arch/macppc/dev/ofb.c +++ b/sys/arch/macppc/dev/ofb.c @@ -1,4 +1,4 @@ -/* $NetBSD: ofb.c,v 1.54 2007/01/20 21:42:12 he Exp $ */ +/* $NetBSD: ofb.c,v 1.55 2007/02/28 04:21:51 thorpej Exp $ */ /* * Copyright (c) 1995, 1996 Carnegie-Mellon University. @@ -28,7 +28,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ofb.c,v 1.54 2007/01/20 21:42:12 he Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ofb.c,v 1.55 2007/02/28 04:21:51 thorpej Exp $"); #include #include @@ -164,7 +164,7 @@ ofbattach(struct device *parent, struct device *self, void *aux) sub = OF_peer(sub); } if (sub == console_node) { - console = TRUE; + console = true; } } diff --git a/sys/arch/macppc/dev/ofb_cons.c b/sys/arch/macppc/dev/ofb_cons.c index 9892d62c7799..d27b4227abf3 100644 --- a/sys/arch/macppc/dev/ofb_cons.c +++ b/sys/arch/macppc/dev/ofb_cons.c @@ -1,4 +1,4 @@ -/* $NetBSD: ofb_cons.c,v 1.6 2007/02/05 04:02:01 macallan Exp $ */ +/* $NetBSD: ofb_cons.c,v 1.7 2007/02/28 04:21:51 thorpej Exp $ */ /* * Copyright (c) 1995, 1996 Carnegie-Mellon University. @@ -28,7 +28,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ofb_cons.c,v 1.6 2007/02/05 04:02:01 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ofb_cons.c,v 1.7 2007/02/28 04:21:51 thorpej Exp $"); #include #include @@ -197,7 +197,7 @@ ofb_init_rasops(int node, struct rasops_info *ri) OF_interpret("frame-buffer-adr", 0, 1, &fbaddr); if (width == -1 || height == -1 || fbaddr == 0 || fbaddr == -1) - return FALSE; + return false; /* Enable write-through cache. */ #if defined (PPC_OEA) && !defined (PPC_OEA64) && !defined (PPC_OEA64_BRIDGE) @@ -257,7 +257,7 @@ ofb_init_rasops(int node, struct rasops_info *ri) width / ri->ri_font->fontwidth); } - return TRUE; + return true; } #else /* NWSDISPLAY > 0 */ int diff --git a/sys/arch/macppc/dev/snapper.c b/sys/arch/macppc/dev/snapper.c index eeca1303c74c..b270d7db66c9 100644 --- a/sys/arch/macppc/dev/snapper.c +++ b/sys/arch/macppc/dev/snapper.c @@ -1,4 +1,4 @@ -/* $NetBSD: snapper.c,v 1.15 2006/12/17 21:26:04 macallan Exp $ */ +/* $NetBSD: snapper.c,v 1.16 2007/02/28 04:21:51 thorpej Exp $ */ /* Id: snapper.c,v 1.11 2002/10/31 17:42:13 tsubai Exp */ /* Id: i2s.c,v 1.12 2005/01/15 14:32:35 tsubai Exp */ /*- @@ -789,7 +789,7 @@ snapper_set_params(void *h, int setmode, int usemode, fil = mode == AUMODE_PLAY ? pfil : rfil; if (auconv_set_converter(snapper_formats, SNAPPER_NFORMATS, - mode, p, TRUE, fil) < 0) { + mode, p, true, fil) < 0) { DPRINTF("snapper_set_params: auconv_set_converter failed\n"); return EINVAL; } diff --git a/sys/arch/macppc/macppc/autoconf.c b/sys/arch/macppc/macppc/autoconf.c index d2be4d11cd16..815f06cb9963 100644 --- a/sys/arch/macppc/macppc/autoconf.c +++ b/sys/arch/macppc/macppc/autoconf.c @@ -1,4 +1,4 @@ -/* $NetBSD: autoconf.c,v 1.55 2007/02/09 21:15:54 macallan Exp $ */ +/* $NetBSD: autoconf.c,v 1.56 2007/02/28 04:21:51 thorpej Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.55 2007/02/09 21:15:54 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.56 2007/02/28 04:21:51 thorpej Exp $"); #include #include @@ -280,7 +280,7 @@ device_register(dev, aux) sub = OF_peer(sub); } if (sub == console_node) { - console = TRUE; + console = true; } } diff --git a/sys/arch/mips/alchemy/au1000.c b/sys/arch/mips/alchemy/au1000.c index b4226a98f020..ecc2fc57eaac 100644 --- a/sys/arch/mips/alchemy/au1000.c +++ b/sys/arch/mips/alchemy/au1000.c @@ -1,4 +1,4 @@ -/* $NetBSD: au1000.c,v 1.6 2007/02/21 22:59:47 thorpej Exp $ */ +/* $NetBSD: au1000.c,v 1.7 2007/02/28 04:21:52 thorpej Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -207,7 +207,7 @@ au1000_match(struct au_chipdep **cpp) if (MIPS_PRID_COPTS(cpu_id) == MIPS_AU1000) { *cpp = &au1000_chipdep; - return TRUE; + return true; } - return FALSE; + return false; } diff --git a/sys/arch/mips/alchemy/au1100.c b/sys/arch/mips/alchemy/au1100.c index 329b567eef90..6ce2f3439210 100644 --- a/sys/arch/mips/alchemy/au1100.c +++ b/sys/arch/mips/alchemy/au1100.c @@ -1,4 +1,4 @@ -/* $NetBSD: au1100.c,v 1.6 2007/02/21 22:59:47 thorpej Exp $ */ +/* $NetBSD: au1100.c,v 1.7 2007/02/28 04:21:52 thorpej Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -97,7 +97,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: au1100.c,v 1.6 2007/02/21 22:59:47 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: au1100.c,v 1.7 2007/02/28 04:21:52 thorpej Exp $"); #include #include @@ -208,7 +208,7 @@ au1100_match(struct au_chipdep **cpp) if (MIPS_PRID_COPTS(cpu_id) == MIPS_AU1100) { *cpp = &au1100_chipdep; - return TRUE; + return true; } - return FALSE; + return false; } diff --git a/sys/arch/mips/alchemy/au1500.c b/sys/arch/mips/alchemy/au1500.c index b21a8fe66476..a2c44ba30681 100644 --- a/sys/arch/mips/alchemy/au1500.c +++ b/sys/arch/mips/alchemy/au1500.c @@ -1,4 +1,4 @@ -/* $NetBSD: au1500.c,v 1.7 2007/02/21 22:59:47 thorpej Exp $ */ +/* $NetBSD: au1500.c,v 1.8 2007/02/28 04:21:52 thorpej Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -97,7 +97,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: au1500.c,v 1.7 2007/02/21 22:59:47 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: au1500.c,v 1.8 2007/02/28 04:21:52 thorpej Exp $"); #include #include @@ -204,7 +204,7 @@ au1500_match(struct au_chipdep **cpp) if (MIPS_PRID_COPTS(cpu_id) == MIPS_AU1500) { *cpp = &au1500_chipdep; - return TRUE; + return true; } - return FALSE; + return false; } diff --git a/sys/arch/mips/alchemy/au1550.c b/sys/arch/mips/alchemy/au1550.c index 028e0a69ef91..d869683a23b4 100644 --- a/sys/arch/mips/alchemy/au1550.c +++ b/sys/arch/mips/alchemy/au1550.c @@ -1,4 +1,4 @@ -/* $NetBSD: au1550.c,v 1.10 2007/02/21 22:59:47 thorpej Exp $ */ +/* $NetBSD: au1550.c,v 1.11 2007/02/28 04:21:52 thorpej Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -97,7 +97,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: au1550.c,v 1.10 2007/02/21 22:59:47 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: au1550.c,v 1.11 2007/02/28 04:21:52 thorpej Exp $"); #include #include @@ -209,7 +209,7 @@ au1550_match(struct au_chipdep **cpp) if (MIPS_PRID_COPTS(cpu_id) == MIPS_AU1550) { *cpp = &au1550_chipdep; - return TRUE; + return true; } - return FALSE; + return false; } diff --git a/sys/arch/mips/alchemy/au_himem_space.c b/sys/arch/mips/alchemy/au_himem_space.c index 5881557f6d13..4a1be68f8f56 100644 --- a/sys/arch/mips/alchemy/au_himem_space.c +++ b/sys/arch/mips/alchemy/au_himem_space.c @@ -1,4 +1,4 @@ -/* $NetBSD: au_himem_space.c,v 1.6 2007/02/21 22:59:47 thorpej Exp $ */ +/* $NetBSD: au_himem_space.c,v 1.7 2007/02/28 04:21:53 thorpej Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -68,7 +68,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: au_himem_space.c,v 1.6 2007/02/21 22:59:47 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: au_himem_space.c,v 1.7 2007/02/28 04:21:53 thorpej Exp $"); /* * This provides mappings for the upper I/O regions used on some @@ -288,7 +288,7 @@ au_himem_unmap(void *cookie, bus_space_handle_t bsh, bus_size_t size, int acct) * extent manager. this is the unfortunate thing about using * virtual memory instead of just a 1:1 mapping scheme. */ - if (pmap_extract(pmap_kernel(), va, &pa) == FALSE) + if (pmap_extract(pmap_kernel(), va, &pa) == false) panic("au_himem_unmap: virtual address invalid!"); /* now remove it from the pmap */ diff --git a/sys/arch/mips/alchemy/dev/aupci.c b/sys/arch/mips/alchemy/dev/aupci.c index 1431747c8623..55ed445df1b3 100644 --- a/sys/arch/mips/alchemy/dev/aupci.c +++ b/sys/arch/mips/alchemy/dev/aupci.c @@ -1,4 +1,4 @@ -/* $NetBSD: aupci.c,v 1.7 2007/02/21 22:59:47 thorpej Exp $ */ +/* $NetBSD: aupci.c,v 1.8 2007/02/28 04:21:53 thorpej Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -35,7 +35,7 @@ #include "pci.h" #include -__KERNEL_RCSID(0, "$NetBSD: aupci.c,v 1.7 2007/02/21 22:59:47 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: aupci.c,v 1.8 2007/02/28 04:21:53 thorpej Exp $"); #include #include @@ -345,17 +345,17 @@ aupci_conf_access(void *v, int dir, pcitag_t tag, int reg, pcireg_t *datap) addr = 0x80000000 | tag; } else if (d > 19) { /* device num too big for bus 0 */ - return FALSE; + return false; } else { addr = (0x800 << d) | (f << 8); } /* probing illegal target is OK, return an error indication */ if (addr == 0) - return FALSE; + return false; if (bus_space_map(sc->sc_cfgt, addr, 256, 0, &h) != 0) - return FALSE; + return false; s = splhigh(); @@ -377,9 +377,9 @@ aupci_conf_access(void *v, int dir, pcitag_t tag, int reg, pcireg_t *datap) /* if we got a PCI master abort, fail it */ if (status & AUPCI_CONFIG_EF) - return FALSE; + return false; - return TRUE; + return true; } pcireg_t @@ -387,7 +387,7 @@ aupci_conf_read(void *v, pcitag_t tag, int reg) { pcireg_t data; - if (aupci_conf_access(v, PCI_CFG_READ, tag, reg, &data) == FALSE) + if (aupci_conf_access(v, PCI_CFG_READ, tag, reg, &data) == false) return 0xffffffff; return (data); diff --git a/sys/arch/mips/alchemy/dev/auspi.c b/sys/arch/mips/alchemy/dev/auspi.c index 797655bee785..dcb142028fae 100644 --- a/sys/arch/mips/alchemy/dev/auspi.c +++ b/sys/arch/mips/alchemy/dev/auspi.c @@ -1,4 +1,4 @@ -/* $NetBSD: auspi.c,v 1.2 2007/02/21 22:59:47 thorpej Exp $ */ +/* $NetBSD: auspi.c,v 1.3 2007/02/28 04:21:53 thorpej Exp $ */ /*- * Copyright (c) 2006 Urbana-Champaign Independent Media Center. @@ -42,7 +42,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: auspi.c,v 1.2 2007/02/21 22:59:47 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: auspi.c,v 1.3 2007/02/28 04:21:53 thorpej Exp $"); #include "locators.h" @@ -337,11 +337,11 @@ auspi_sched(struct auspi_softc *sc) auspi_send(sc); /* now kick the master start to get the chip running */ PUTREG(sc, AUPSC_SPIPCR, SPIPCR_MS); - sc->sc_running = TRUE; + sc->sc_running = true; return; } auspi_select(sc, -1); - sc->sc_running = FALSE; + sc->sc_running = false; } void diff --git a/sys/arch/mips/atheros/ar5312.c b/sys/arch/mips/atheros/ar5312.c index 4261580c3b38..efde8361421c 100644 --- a/sys/arch/mips/atheros/ar5312.c +++ b/sys/arch/mips/atheros/ar5312.c @@ -1,4 +1,4 @@ -/* $NetBSD: ar5312.c,v 1.3 2006/09/26 06:37:32 gdamore Exp $ */ +/* $NetBSD: ar5312.c,v 1.4 2007/02/28 04:21:53 thorpej Exp $ */ /* * Copyright (c) 2006 Urbana-Champaign Independent Media Center. @@ -214,7 +214,7 @@ addprop_data(struct device *dev, const char *name, const uint8_t *data, prop_data_t pd; pd = prop_data_create_data(data, len); KASSERT(pd != NULL); - if (prop_dictionary_set(device_properties(dev), name, pd) == FALSE) { + if (prop_dictionary_set(device_properties(dev), name, pd) == false) { printf("WARNING: unable to set %s property for %s\n", name, device_xname(dev)); } @@ -227,7 +227,7 @@ addprop_integer(struct device *dev, const char *name, uint32_t val) prop_number_t pn; pn = prop_number_create_integer(val); KASSERT(pn != NULL); - if (prop_dictionary_set(device_properties(dev), name, pn) == FALSE) { + if (prop_dictionary_set(device_properties(dev), name, pn) == false) { printf("WARNING: unable to set %s property for %s", name, device_xname(dev)); } diff --git a/sys/arch/mips/atheros/ar5315.c b/sys/arch/mips/atheros/ar5315.c index 481e4a0679c7..d0b8f46c5638 100644 --- a/sys/arch/mips/atheros/ar5315.c +++ b/sys/arch/mips/atheros/ar5315.c @@ -1,4 +1,4 @@ -/* $NetBSD: ar5315.c,v 1.3 2006/10/07 07:18:02 gdamore Exp $ */ +/* $NetBSD: ar5315.c,v 1.4 2007/02/28 04:21:53 thorpej Exp $ */ /* * Copyright (c) 2006 Urbana-Champaign Independent Media Center. @@ -48,7 +48,7 @@ * family. */ #include -__KERNEL_RCSID(0, "$NetBSD: ar5315.c,v 1.3 2006/10/07 07:18:02 gdamore Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ar5315.c,v 1.4 2007/02/28 04:21:53 thorpej Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -245,7 +245,7 @@ addprop_data(struct device *dev, const char *name, const uint8_t *data, prop_data_t pd; pd = prop_data_create_data(data, len); KASSERT(pd != NULL); - if (prop_dictionary_set(device_properties(dev), name, pd) == FALSE) { + if (prop_dictionary_set(device_properties(dev), name, pd) == false) { printf("WARNING: unable to set %s property for %s\n", name, device_xname(dev)); } @@ -258,7 +258,7 @@ addprop_integer(struct device *dev, const char *name, uint32_t val) prop_number_t pn; pn = prop_number_create_integer(val); KASSERT(pn != NULL); - if (prop_dictionary_set(device_properties(dev), name, pn) == FALSE) { + if (prop_dictionary_set(device_properties(dev), name, pn) == false) { printf("WARNING: unable to set %s property for %s", name, device_xname(dev)); } diff --git a/sys/arch/mips/atheros/dev/arspi.c b/sys/arch/mips/atheros/dev/arspi.c index d26bee3af70a..2e8f7ebc3aa5 100644 --- a/sys/arch/mips/atheros/dev/arspi.c +++ b/sys/arch/mips/atheros/dev/arspi.c @@ -1,4 +1,4 @@ -/* $NetBSD: arspi.c,v 1.4 2007/02/21 22:59:47 thorpej Exp $ */ +/* $NetBSD: arspi.c,v 1.5 2007/02/28 04:21:53 thorpej Exp $ */ /*- * Copyright (c) 2006 Urbana-Champaign Independent Media Center. @@ -42,7 +42,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: arspi.c,v 1.4 2007/02/21 22:59:47 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: arspi.c,v 1.5 2007/02/28 04:21:53 thorpej Exp $"); #include "locators.h" @@ -212,7 +212,7 @@ arspi_interrupts(struct device *self) int s; s = splserial(); - sc->sc_interrupts = TRUE; + sc->sc_interrupts = true; splx(s); #endif } diff --git a/sys/arch/mips/include/db_machdep.h b/sys/arch/mips/include/db_machdep.h index 255d647df33d..b55588b1bb84 100644 --- a/sys/arch/mips/include/db_machdep.h +++ b/sys/arch/mips/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $NetBSD: db_machdep.h,v 1.21 2007/02/22 05:28:53 matt Exp $ */ +/* $NetBSD: db_machdep.h,v 1.22 2007/02/28 04:21:53 thorpej Exp $ */ /* * Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author) @@ -52,14 +52,14 @@ extern db_regs_t ddb_regs; /* register state */ #define PC_REGS(regs) ((regs)->f_regs[_R_PC]) #define PC_ADVANCE(regs) do { \ - if ((db_get_value((regs)->f_regs[_R_PC], sizeof(int), FALSE) &\ + if ((db_get_value((regs)->f_regs[_R_PC], sizeof(int), false) &\ 0xfc00003f) == 0xd) \ (regs)->f_regs[_R_PC] += BKPT_SIZE; \ } while(0) /* Similar to PC_ADVANCE(), except only advance on cpu_Debugger()'s bpt */ #define PC_BREAK_ADVANCE(regs) do { \ - if (db_get_value((regs)->f_regs[_R_PC], sizeof(int), FALSE) == 0xd) \ + if (db_get_value((regs)->f_regs[_R_PC], sizeof(int), false) == 0xd) \ (regs)->f_regs[_R_PC] += BKPT_SIZE; \ } while(0) diff --git a/sys/arch/mips/mips/db_disasm.c b/sys/arch/mips/mips/db_disasm.c index 2d397d90e62b..2a3054459a85 100644 --- a/sys/arch/mips/mips/db_disasm.c +++ b/sys/arch/mips/mips/db_disasm.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_disasm.c,v 1.18 2007/02/22 05:28:53 matt Exp $ */ +/* $NetBSD: db_disasm.c,v 1.19 2007/02/28 04:21:53 thorpej Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.18 2007/02/22 05:28:53 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.19 2007/02/28 04:21:53 thorpej Exp $"); #include #include @@ -186,7 +186,7 @@ db_disasm(db_addr_t loc, bool altfmt) db_addr_t db_disasm_insn(int insn, db_addr_t loc, bool altfmt) { - bool bdslot = FALSE; + bool bdslot = false; InstFmt i; i.word = insn; @@ -245,7 +245,7 @@ db_disasm_insn(int insn, db_addr_t loc, bool altfmt) case OP_JR: case OP_JALR: db_printf("\t%s", reg_name[i.RType.rs]); - bdslot = TRUE; + bdslot = true; break; case OP_MTLO: case OP_MTHI: @@ -324,7 +324,7 @@ db_disasm_insn(int insn, db_addr_t loc, bool altfmt) reg_name[i.IType.rt]); pr_displ: print_addr(loc + 4 + ((short)i.IType.imm << 2)); - bdslot = TRUE; + bdslot = true; break; case OP_COP0: @@ -409,7 +409,7 @@ db_disasm_insn(int insn, db_addr_t loc, bool altfmt) case OP_JAL: db_printf("%s\t", op_name[i.JType.op]); print_addr((loc & 0xF0000000) | (i.JType.target << 2)); - bdslot = TRUE; + bdslot = true; break; case OP_LWC1: @@ -486,7 +486,7 @@ db_disasm_insn(int insn, db_addr_t loc, bool altfmt) db_printf("\n"); if (bdslot) { db_printf("\t\tbdslot:\t"); - db_disasm(loc+4, FALSE); + db_disasm(loc+4, false); return (loc + 8); } return (loc + 4); diff --git a/sys/arch/mips/mips/db_interface.c b/sys/arch/mips/mips/db_interface.c index 7ca626b7513a..d48b2521acb8 100644 --- a/sys/arch/mips/mips/db_interface.c +++ b/sys/arch/mips/mips/db_interface.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_interface.c,v 1.60 2007/02/22 05:28:53 matt Exp $ */ +/* $NetBSD: db_interface.c,v 1.61 2007/02/28 04:21:53 thorpej Exp $ */ /* * Mach Operating System @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.60 2007/02/22 05:28:53 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.61 2007/02/28 04:21:53 thorpej Exp $"); #include "opt_cputype.h" /* which mips CPUs do we support? */ #include "opt_ddb.h" @@ -721,7 +721,7 @@ next_instr_address(db_addr_t pc, bool bd) { unsigned ins; - if (bd == FALSE) + if (bd == false) return (pc + 4); if (pc < MIPS_KSEG0_START) diff --git a/sys/arch/mips/mips/pmap.c b/sys/arch/mips/mips/pmap.c index 7f06120066e4..3e1e41a53e8a 100644 --- a/sys/arch/mips/mips/pmap.c +++ b/sys/arch/mips/mips/pmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.170 2007/02/21 22:59:48 thorpej Exp $ */ +/* $NetBSD: pmap.c,v 1.171 2007/02/28 04:21:53 thorpej Exp $ */ /*- * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc. @@ -74,7 +74,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.170 2007/02/21 22:59:48 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.171 2007/02/28 04:21:53 thorpej Exp $"); /* * Manages physical address maps. @@ -213,10 +213,10 @@ struct pool pmap_pv_pool; #endif int pmap_pv_lowat = PMAP_PV_LOWAT; -bool pmap_initialized = FALSE; +bool pmap_initialized = false; #define PAGE_IS_MANAGED(pa) \ - (pmap_initialized == TRUE && vm_physseg_find(atop(pa), NULL) != -1) + (pmap_initialized == true && vm_physseg_find(atop(pa), NULL) != -1) #define PMAP_IS_ACTIVE(pm) \ ((pm) == pmap_kernel() || \ @@ -435,7 +435,7 @@ pmap_steal_memory(vsize_t size, vaddr_t *vstartp, vaddr_t *vendp) npgs = atop(size); for (bank = 0; bank < vm_nphysseg; bank++) { - if (uvm.page_init_done == TRUE) + if (uvm.page_init_done == true) panic("pmap_steal_memory: called _after_ bootstrap"); if (vm_physmem[bank].avail_start != vm_physmem[bank].start || @@ -518,7 +518,7 @@ pmap_init(void) /* * Now it is safe to enable pv entry recording. */ - pmap_initialized = TRUE; + pmap_initialized = true; #ifdef MIPS3 if (MIPS_HAS_R4K_MMU) { @@ -1510,7 +1510,7 @@ pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *pap) if (pmapdebug & PDB_FOLLOW) printf("not in segmap\n"); #endif - return FALSE; + return false; } pte += (va >> PGSHIFT) & (NPTEPG - 1); } @@ -1519,7 +1519,7 @@ pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *pap) if (pmapdebug & PDB_FOLLOW) printf("PTE not valid\n"); #endif - return FALSE; + return false; } pa = mips_tlbpfn_to_paddr(pte->pt_entry) | (va & PGOFSET); done: @@ -1530,7 +1530,7 @@ done: if (pmapdebug & PDB_FOLLOW) printf("pa 0x%lx\n", (u_long)pa); #endif - return TRUE; + return true; } /* @@ -1745,7 +1745,7 @@ pmap_clear_modify(struct vm_page *pg) } pv = pg->mdpage.pvh_list; if (pv->pv_pmap == NULL) { - return TRUE; + return true; } /* @@ -1781,7 +1781,7 @@ pmap_clear_modify(struct vm_page *pg) MIPS_TBIS(va | asid); } } - return TRUE; + return true; } /* diff --git a/sys/arch/mips/mips/trap.c b/sys/arch/mips/mips/trap.c index 51d9fe33608c..60d2d6015e27 100644 --- a/sys/arch/mips/mips/trap.c +++ b/sys/arch/mips/mips/trap.c @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.207 2007/02/09 21:55:06 ad Exp $ */ +/* $NetBSD: trap.c,v 1.208 2007/02/28 04:21:53 thorpej Exp $ */ /* * Copyright (c) 1992, 1993 @@ -78,7 +78,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.207 2007/02/09 21:55:06 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.208 2007/02/28 04:21:53 thorpej Exp $"); #include "opt_cputype.h" /* which mips CPU levels do we support? */ #include "opt_ktrace.h" @@ -512,11 +512,11 @@ trap(unsigned int status, unsigned int cause, vaddr_t vaddr, vaddr_t opc, sa = trunc_page(va); ea = round_page(va + sizeof(int) - 1); rv = uvm_map_protect(&p->p_vmspace->vm_map, - sa, ea, VM_PROT_ALL, FALSE); + sa, ea, VM_PROT_ALL, false); if (rv == 0) { rv = suiword((void *)va, l->l_md.md_ss_instr); (void)uvm_map_protect(&p->p_vmspace->vm_map, - sa, ea, VM_PROT_READ|VM_PROT_EXECUTE, FALSE); + sa, ea, VM_PROT_READ|VM_PROT_EXECUTE, false); } } mips_icache_sync_all(); /* XXXJRT -- necessary? */ @@ -672,11 +672,11 @@ mips_singlestep(struct lwp *l) sa = trunc_page(va); ea = round_page(va + sizeof(int) - 1); rv = uvm_map_protect(&p->p_vmspace->vm_map, - sa, ea, VM_PROT_ALL, FALSE); + sa, ea, VM_PROT_ALL, false); if (rv == 0) { rv = suiword((void *)va, MIPS_BREAK_SSTEP); (void)uvm_map_protect(&p->p_vmspace->vm_map, - sa, ea, VM_PROT_READ|VM_PROT_EXECUTE, FALSE); + sa, ea, VM_PROT_READ|VM_PROT_EXECUTE, false); } } #if 0 diff --git a/sys/arch/mips/mips/vm_machdep.c b/sys/arch/mips/mips/vm_machdep.c index 2940f41dd424..4a9a3d015ef0 100644 --- a/sys/arch/mips/mips/vm_machdep.c +++ b/sys/arch/mips/mips/vm_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: vm_machdep.c,v 1.113 2007/02/09 21:55:06 ad Exp $ */ +/* $NetBSD: vm_machdep.c,v 1.114 2007/02/28 04:21:54 thorpej Exp $ */ /* * Copyright (c) 1992, 1993 @@ -80,7 +80,7 @@ #include "opt_coredump.h" #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.113 2007/02/09 21:55:06 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.114 2007/02/28 04:21:54 thorpej Exp $"); #include #include @@ -320,7 +320,7 @@ vmapbuf(struct buf *bp, vsize_t len) bp->b_data = (caddr_t)(kva + off); upmap = vm_map_pmap(&bp->b_proc->p_vmspace->vm_map); do { - if (pmap_extract(upmap, uva, &pa) == FALSE) + if (pmap_extract(upmap, uva, &pa) == false) panic("vmapbuf: null page frame"); pmap_enter(vm_map_pmap(phys_map), kva, pa, VM_PROT_READ | VM_PROT_WRITE, PMAP_WIRED); diff --git a/sys/arch/mips/mips/wired_map.c b/sys/arch/mips/mips/wired_map.c index 326dc2975a0a..f1800169c560 100644 --- a/sys/arch/mips/mips/wired_map.c +++ b/sys/arch/mips/mips/wired_map.c @@ -1,4 +1,4 @@ -/* $NetBSD: wired_map.c,v 1.3 2007/02/21 22:59:48 thorpej Exp $ */ +/* $NetBSD: wired_map.c,v 1.4 2007/02/28 04:21:54 thorpej Exp $ */ /*- * Copyright (c) 2005 Tadpole Computer Inc. @@ -63,7 +63,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: wired_map.c,v 1.3 2007/02/21 22:59:48 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wired_map.c,v 1.4 2007/02/28 04:21:54 thorpej Exp $"); #include #include @@ -118,7 +118,7 @@ mips3_wired_enter_page(vaddr_t va, paddr_t pa, vsize_t pgsize) #ifdef DIAGNOSTIC printf("mips3_wired_map: entries exhausted\n"); #endif - return FALSE; + return false; } index = mips3_nwired_page; @@ -158,7 +158,7 @@ mips3_wired_enter_page(vaddr_t va, paddr_t pa, vsize_t pgsize) MIPS3_PG_IOPAGE( PMAP_CCA_FOR_PA(mips3_wired_map[index].pa1)); MachTLBWriteIndexedVPS(MIPS3_TLB_WIRED_UPAGES + index, &tlb); - return TRUE; + return true; } @@ -193,9 +193,9 @@ mips3_wired_enter_region(vaddr_t va, paddr_t pa, vsize_t size) while (va < vend) { if (!mips3_wired_enter_page(va, pa, MIPS3_WIRED_SIZE)) - return FALSE; + return false; va += MIPS3_WIRED_SIZE; pa += MIPS3_WIRED_SIZE; } - return TRUE; + return true; } diff --git a/sys/arch/mipsco/mipsco/machdep.c b/sys/arch/mipsco/mipsco/machdep.c index 6229d7a9497e..47ddc0266716 100644 --- a/sys/arch/mipsco/mipsco/machdep.c +++ b/sys/arch/mipsco/mipsco/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.50 2007/02/09 21:55:06 ad Exp $ */ +/* $NetBSD: machdep.c,v 1.51 2007/02/28 04:21:54 thorpej Exp $ */ /* * Copyright (c) 1992, 1993 @@ -76,7 +76,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.50 2007/02/09 21:55:06 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.51 2007/02/28 04:21:54 thorpej Exp $"); /* from: Utah Hdr: machdep.c 1.63 91/04/24 */ @@ -418,12 +418,12 @@ cpu_startup() * limits the number of processes exec'ing at any time. */ exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - 16 * NCARGS, TRUE, FALSE, NULL); + 16 * NCARGS, true, false, NULL); /* * Allocate a submap for physio */ phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - VM_PHYS_SIZE, TRUE, FALSE, NULL); + VM_PHYS_SIZE, true, false, NULL); /* * No need to allocate an mbuf cluster submap. Mbuf clusters diff --git a/sys/arch/mvme68k/mvme68k/machdep.c b/sys/arch/mvme68k/mvme68k/machdep.c index 8c6fd138508f..059705996f4c 100644 --- a/sys/arch/mvme68k/mvme68k/machdep.c +++ b/sys/arch/mvme68k/mvme68k/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.118 2007/02/09 21:55:07 ad Exp $ */ +/* $NetBSD: machdep.c,v 1.119 2007/02/28 04:21:54 thorpej Exp $ */ /* * Copyright (c) 1982, 1986, 1990, 1993 @@ -77,7 +77,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.118 2007/02/09 21:55:07 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.119 2007/02/28 04:21:54 thorpej Exp $"); #include "opt_ddb.h" #include "opt_compat_hpux.h" @@ -514,19 +514,19 @@ cpu_startup() * limits the number of processes exec'ing at any time. */ exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); + 16*NCARGS, VM_MAP_PAGEABLE, false, NULL); /* * Allocate a submap for physio */ phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - VM_PHYS_SIZE, 0, FALSE, NULL); + VM_PHYS_SIZE, 0, false, NULL); /* * Finally, allocate mbuf cluster submap. */ mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, nmbclusters * mclbytes, VM_MAP_INTRSAFE, - FALSE, NULL); + false, NULL); #ifdef DEBUG pmapdebug = opmapdebug; diff --git a/sys/arch/mvme68k/mvme68k/trap.c b/sys/arch/mvme68k/mvme68k/trap.c index 667e51cb069e..605cdc17a1c6 100644 --- a/sys/arch/mvme68k/mvme68k/trap.c +++ b/sys/arch/mvme68k/mvme68k/trap.c @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.86 2007/02/09 21:55:07 ad Exp $ */ +/* $NetBSD: trap.c,v 1.87 2007/02/28 04:21:54 thorpej Exp $ */ /* * Copyright (c) 1982, 1986, 1990, 1993 @@ -77,7 +77,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.86 2007/02/09 21:55:07 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.87 2007/02/28 04:21:54 thorpej Exp $"); #include "opt_ddb.h" #include "opt_execfmt.h" @@ -1061,7 +1061,7 @@ dumpwb(num, s, a, d) num, a, d, f7sz[(s & SSW4_SZMASK) >> 5], f7tt[(s & SSW4_TTMASK) >> 3], f7tm[s & SSW4_TMMASK]); printf(" PA "); - if (pmap_extract(p->p_vmspace->vm_map.pmap, (vaddr_t)a, &pa) == FALSE) + if (pmap_extract(p->p_vmspace->vm_map.pmap, (vaddr_t)a, &pa) == false) printf(""); else printf("%lx, current value %lx", pa, fuword((caddr_t)a)); diff --git a/sys/arch/news68k/news68k/machdep.c b/sys/arch/news68k/news68k/machdep.c index e5667ce7d225..4895aeed690a 100644 --- a/sys/arch/news68k/news68k/machdep.c +++ b/sys/arch/news68k/news68k/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.64 2007/02/10 02:03:51 tsutsui Exp $ */ +/* $NetBSD: machdep.c,v 1.65 2007/02/28 04:21:54 thorpej Exp $ */ /* * Copyright (c) 1982, 1986, 1990, 1993 @@ -77,7 +77,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.64 2007/02/10 02:03:51 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.65 2007/02/28 04:21:54 thorpej Exp $"); #include "opt_ddb.h" #include "opt_compat_netbsd.h" @@ -274,19 +274,19 @@ cpu_startup(void) * limits the number of processes exec'ing at any time. */ exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - 16 * NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); + 16 * NCARGS, VM_MAP_PAGEABLE, false, NULL); /* * Allocate a submap for physio */ phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - VM_PHYS_SIZE, 0, FALSE, NULL); + VM_PHYS_SIZE, 0, false, NULL); /* * Finally, allocate mbuf cluster submap. */ mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - nmbclusters * mclbytes, VM_MAP_INTRSAFE, FALSE, NULL); + nmbclusters * mclbytes, VM_MAP_INTRSAFE, false, NULL); #ifdef DEBUG pmapdebug = opmapdebug; diff --git a/sys/arch/news68k/news68k/trap.c b/sys/arch/news68k/news68k/trap.c index 1c4f56e0cc1e..aebcb2f980bd 100644 --- a/sys/arch/news68k/news68k/trap.c +++ b/sys/arch/news68k/news68k/trap.c @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.49 2007/02/10 02:01:26 tsutsui Exp $ */ +/* $NetBSD: trap.c,v 1.50 2007/02/28 04:21:54 thorpej Exp $ */ /* * Copyright (c) 1982, 1986, 1990, 1993 @@ -77,7 +77,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.49 2007/02/10 02:01:26 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.50 2007/02/28 04:21:54 thorpej Exp $"); #include "opt_ddb.h" #include "opt_execfmt.h" @@ -976,7 +976,7 @@ dumpwb(int num, u_short s, u_int a, u_int d) num, a, d, f7sz[(s & SSW4_SZMASK) >> 5], f7tt[(s & SSW4_TTMASK) >> 3], f7tm[s & SSW4_TMMASK]); printf(" PA "); - if (pmap_extract(p->p_vmspace->vm_map.pmap, (vaddr_t)a, &pa) == FALSE) + if (pmap_extract(p->p_vmspace->vm_map.pmap, (vaddr_t)a, &pa) == false) printf(""); else printf("%lx, current value %lx", pa, fuword((caddr_t)a)); diff --git a/sys/arch/newsmips/apbus/spifi.c b/sys/arch/newsmips/apbus/spifi.c index a248dcfb96c8..f40d8a8455e9 100644 --- a/sys/arch/newsmips/apbus/spifi.c +++ b/sys/arch/newsmips/apbus/spifi.c @@ -1,4 +1,4 @@ -/* $NetBSD: spifi.c,v 1.14 2005/12/11 12:18:24 christos Exp $ */ +/* $NetBSD: spifi.c,v 1.15 2007/02/28 04:21:54 thorpej Exp $ */ /*- * Copyright (c) 2000 Tsubai Masanari. All rights reserved. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: spifi.c,v 1.14 2005/12/11 12:18:24 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: spifi.c,v 1.15 2007/02/28 04:21:54 thorpej Exp $"); #include #include @@ -727,7 +727,7 @@ spifi_done(struct spifi_softc *sc) sc->sc_nexus = NULL; spifi_sched(sc); - return FALSE; + return false; } void diff --git a/sys/arch/newsmips/newsmips/machdep.c b/sys/arch/newsmips/newsmips/machdep.c index f801914fa34a..98e10da7cb1f 100644 --- a/sys/arch/newsmips/newsmips/machdep.c +++ b/sys/arch/newsmips/newsmips/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.87 2007/02/09 21:55:07 ad Exp $ */ +/* $NetBSD: machdep.c,v 1.88 2007/02/28 04:21:55 thorpej Exp $ */ /* * Copyright (c) 1992, 1993 @@ -76,7 +76,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.87 2007/02/09 21:55:07 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.88 2007/02/28 04:21:55 thorpej Exp $"); /* from: Utah Hdr: machdep.c 1.63 91/04/24 */ @@ -489,12 +489,12 @@ cpu_startup(void) * limits the number of processes exec'ing at any time. */ exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - 16 * NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); + 16 * NCARGS, VM_MAP_PAGEABLE, false, NULL); /* * Allocate a submap for physio */ phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - VM_PHYS_SIZE, 0, FALSE, NULL); + VM_PHYS_SIZE, 0, false, NULL); /* * No need to allocate an mbuf cluster submap. Mbuf clusters diff --git a/sys/arch/next68k/next68k/machdep.c b/sys/arch/next68k/next68k/machdep.c index a42755117586..a48b46e0d090 100644 --- a/sys/arch/next68k/next68k/machdep.c +++ b/sys/arch/next68k/next68k/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.77 2007/02/09 21:55:07 ad Exp $ */ +/* $NetBSD: machdep.c,v 1.78 2007/02/28 04:21:55 thorpej Exp $ */ /* * Copyright (c) 1998 Darrin B. Jewell @@ -79,7 +79,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.77 2007/02/09 21:55:07 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.78 2007/02/28 04:21:55 thorpej Exp $"); #include "opt_ddb.h" #include "opt_kgdb.h" @@ -349,19 +349,19 @@ cpu_startup(void) * limits the number of processes exec'ing at any time. */ exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL); + 16*NCARGS, VM_MAP_PAGEABLE, false, NULL); /* * Allocate a submap for physio */ phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, - VM_PHYS_SIZE, 0, FALSE, NULL); + VM_PHYS_SIZE, 0, false, NULL); /* * Finally, allocate mbuf cluster submap. */ mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, nmbclusters * mclbytes, VM_MAP_INTRSAFE, - FALSE, NULL); + false, NULL); #ifdef DEBUG pmapdebug = opmapdebug; diff --git a/sys/arch/next68k/next68k/trap.c b/sys/arch/next68k/next68k/trap.c index caaa9da23c48..190dc7495530 100644 --- a/sys/arch/next68k/next68k/trap.c +++ b/sys/arch/next68k/next68k/trap.c @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.62 2007/02/09 21:55:07 ad Exp $ */ +/* $NetBSD: trap.c,v 1.63 2007/02/28 04:21:55 thorpej Exp $ */ /* * This file was taken from mvme68k/mvme68k/trap.c @@ -84,7 +84,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.62 2007/02/09 21:55:07 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.63 2007/02/28 04:21:55 thorpej Exp $"); #include "opt_ddb.h" #include "opt_execfmt.h" @@ -1031,7 +1031,7 @@ dumpwb(int num, u_short s, u_int a, u_int d) num, a, d, f7sz[(s & SSW4_SZMASK) >> 5], f7tt[(s & SSW4_TTMASK) >> 3], f7tm[s & SSW4_TMMASK]); printf(" PA "); - if (pmap_extract(p->p_vmspace->vm_map.pmap, (vaddr_t)a, &pa) == FALSE) + if (pmap_extract(p->p_vmspace->vm_map.pmap, (vaddr_t)a, &pa) == false) printf(""); else printf("%lx, current value %lx", pa, fuword((caddr_t)a));