TRUE -> true, FALSE -> false

This commit is contained in:
thorpej 2007-02-22 16:57:56 +00:00
parent f6d76ae22a
commit c8daa94cb1
23 changed files with 153 additions and 153 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: scn.c,v 1.77 2007/02/21 22:59:48 thorpej Exp $ */
/* $NetBSD: scn.c,v 1.78 2007/02/22 17:04:52 thorpej Exp $ */
/*
* Copyright (c) 1991, 1992, 1993
@ -85,7 +85,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: scn.c,v 1.77 2007/02/21 22:59:48 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: scn.c,v 1.78 2007/02/22 17:04:52 thorpej Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -1345,7 +1345,7 @@ scnintr(void *arg)
do {
/* Loop to pick up ALL pending interrupts for device. */
rs_work = FALSE;
rs_work = false;
rs_stat = duart->base[DU_ISR];
/* channel a */
@ -1363,7 +1363,7 @@ scnintr(void *arg)
}
(*tp0->t_linesw->l_start) (tp0);
rs_work = TRUE;
rs_work = true;
}
}
/* channel b */
@ -1381,11 +1381,11 @@ scnintr(void *arg)
}
(*tp1->t_linesw->l_start) (tp1);
rs_work = TRUE;
rs_work = true;
}
}
if (rs_stat & INT_IP) {
rs_work = TRUE;
rs_work = true;
rs_ipcr = duart->base[DU_IPCR];
if (rs_ipcr & IPCR_DELTA_DCDA && tp0 != NULL) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_disasm.c,v 1.13 2007/02/21 22:59:49 thorpej Exp $ */
/* $NetBSD: db_disasm.c,v 1.14 2007/02/22 17:04:52 thorpej Exp $ */
/*
* Mach Operating System
@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.13 2007/02/21 22:59:49 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.14 2007/02/22 17:04:52 thorpej Exp $");
#define STATIC static
@ -982,7 +982,7 @@ int db_gen( struct insn *, db_addr_t, int, unsigned char, unsigned char);
int db_dasm_ns32k(struct insn *, db_addr_t);
void db_reverseBits(int *);
#define get_byte(l) ((unsigned char) db_get_value(l, 1, FALSE))
#define get_byte(l) ((unsigned char) db_get_value(l, 1, false))
void
db_formatOperand(struct operand *operand, db_addr_t loc)

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.15 2006/05/12 06:05:23 simonb Exp $ */
/* $NetBSD: db_interface.c,v 1.16 2007/02/22 17:04:53 thorpej Exp $ */
/*
* Mach Operating System
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.15 2006/05/12 06:05:23 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.16 2007/02/22 17:04:53 thorpej Exp $");
#include "opt_ddb.h"
@ -106,14 +106,14 @@ kdb_trap(int type, int code, db_regs_t *regs)
ddb_regs = *regs;
db_active++;
cnpollc(TRUE);
cnpollc(true);
db_trap(type, code);
if ((type = T_BPT) &&
(db_get_value(PC_REGS(DDB_REGS), BKPT_SIZE, FALSE) == BKPT_INST))
(db_get_value(PC_REGS(DDB_REGS), BKPT_SIZE, false) == BKPT_INST))
PC_REGS(DDB_REGS) += BKPT_SIZE;
cnpollc(FALSE);
cnpollc(false);
db_active--;
*regs = ddb_regs;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_trace.c,v 1.18 2007/02/21 23:48:11 thorpej Exp $ */
/* $NetBSD: db_trace.c,v 1.19 2007/02/22 17:04:53 thorpej Exp $ */
/*
* Mach Operating System
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.18 2007/02/21 23:48:11 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.19 2007/02/22 17:04:53 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -108,7 +108,7 @@ enum { NONE, TRAP, INTERRUPT, SYSCALL };
db_addr_t db_trap_symbol_value = 0;
db_addr_t db_syscall_symbol_value = 0;
db_addr_t db_intr_symbol_value = 0;
bool db_trace_symbols_found = FALSE;
bool db_trace_symbols_found = false;
/*
* Figure out how many arguments were passed into the frame at "fp".
@ -124,7 +124,7 @@ db_numargs(struct ns532_frame *fp)
int i;
extern char etext[];
argp = (db_addr_t) db_get_value((db_addr_t)&fp->f_retaddr, 4, FALSE);
argp = (db_addr_t) db_get_value((db_addr_t)&fp->f_retaddr, 4, false);
if (argp < (db_addr_t)VM_MIN_KERNEL_ADDRESS || argp > (db_addr_t)etext)
return(db_numargs_default);
@ -138,8 +138,8 @@ db_numargs(struct ns532_frame *fp)
* Gcc sometimes delays emitting these instructions and
* may even throw a branch between our feet.
*/
inst = db_get_value((db_addr_t) argp , 4, FALSE);
args = db_get_value((db_addr_t) argp + 2, 4, FALSE);
inst = db_get_value((db_addr_t) argp , 4, false);
args = db_get_value((db_addr_t) argp + 2, 4, false);
if ((inst & 0xff) == 0xea) { /* br */
args = ((inst >> 8) & 0xffffff) | (args << 24);
if (args & 0x80) {
@ -207,9 +207,9 @@ db_nextframe(struct ns532_frame **fp, db_addr_t *ip, int *argp, int is_trap,
(*pr)("--- interrupt ---\n");
case NONE:
*ip = (db_addr_t)
db_get_value((int) &(*fp)->f_retaddr, 4, FALSE);
db_get_value((int) &(*fp)->f_retaddr, 4, false);
*fp = (struct ns532_frame *)
db_get_value((int) &(*fp)->f_frame, 4, FALSE);
db_get_value((int) &(*fp)->f_frame, 4, false);
break;
/* The only argument to trap() or syscall() is the trapframe. */
@ -237,9 +237,9 @@ db_stack_trace_print(db_expr_t addr, bool have_addr, db_expr_t count,
int *argp;
db_addr_t callpc;
int is_trap = 0;
bool kernel_only = TRUE;
bool trace_thread = FALSE;
bool lwpaddr = FALSE;
bool kernel_only = true;
bool trace_thread = false;
bool lwpaddr = false;
{
char *cp = modif;
@ -247,13 +247,13 @@ db_stack_trace_print(db_expr_t addr, bool have_addr, db_expr_t count,
while ((c = *cp++) != 0) {
if (c == 'a') {
lwpaddr = TRUE;
trace_thread = TRUE;
lwpaddr = true;
trace_thread = true;
}
if (c == 't')
trace_thread = TRUE;
trace_thread = true;
if (c == 'u')
kernel_only = FALSE;
kernel_only = false;
}
}
@ -265,7 +265,7 @@ db_stack_trace_print(db_expr_t addr, bool have_addr, db_expr_t count,
} else {
frame = (struct ns532_frame *)addr;
callpc = (db_addr_t)
db_get_value((int)&frame->f_retaddr, 4, FALSE);
db_get_value((int)&frame->f_retaddr, 4, false);
}
lastframe = 0;
@ -282,7 +282,7 @@ db_stack_trace_print(db_expr_t addr, bool have_addr, db_expr_t count,
if (lastframe == NULL && sym == 0) {
/* Symbol not found, peek at code */
int instr = db_get_value(callpc, 1, FALSE);
int instr = db_get_value(callpc, 1, false);
offset = 1;
if ((instr & 0xff) == 0x82) /* enter [],c */
@ -323,7 +323,7 @@ db_stack_trace_print(db_expr_t addr, bool have_addr, db_expr_t count,
while (narg) {
if (argnp)
(*pr)("%s=", *argnp++);
(*pr)("%lx", db_get_value((int)argp, 4, FALSE));
(*pr)("%lx", db_get_value((int)argp, 4, false));
argp++;
if (--narg != 0)
(*pr)(",");
@ -336,7 +336,7 @@ db_stack_trace_print(db_expr_t addr, bool have_addr, db_expr_t count,
/* Frame really belongs to next callpc */
lastframe = (struct ns532_frame *)(ddb_regs.tf_regs.r_sp-4);
callpc = (db_addr_t)
db_get_value((int)&lastframe->f_retaddr, 4, FALSE);
db_get_value((int)&lastframe->f_retaddr, 4, false);
continue;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.166 2007/02/09 21:55:09 ad Exp $ */
/* $NetBSD: machdep.c,v 1.167 2007/02/22 17:04:53 thorpej Exp $ */
/*-
* Copyright (c) 1982, 1987, 1990 The Regents of the University of California.
@ -75,7 +75,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.166 2007/02/09 21:55:09 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.167 2007/02/22 17:04:53 thorpej Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -214,19 +214,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);

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.82 2007/02/21 22:59:49 thorpej Exp $ */
/* $NetBSD: pmap.c,v 1.83 2007/02/22 17:04:53 thorpej Exp $ */
/*
*
@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.82 2007/02/21 22:59:49 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.83 2007/02/22 17:04:53 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -281,7 +281,7 @@ paddr_t avail_end; /* PA of last available physical page */
*/
static pt_entry_t protection_codes[8]; /* maps MI prot to ns532 prot code */
static bool pmap_initialized = FALSE; /* pmap_init done yet? */
static bool pmap_initialized = false; /* pmap_init done yet? */
/*
* the following two vaddr_t's are used during system startup
@ -747,7 +747,7 @@ pmap_init(void)
* done: pmap module is up (and ready for business)
*/
pmap_initialized = TRUE;
pmap_initialized = true;
}
/*
@ -1372,10 +1372,10 @@ pmap_extract(struct pmap *pmap, vaddr_t va, paddr_t *pap)
if (__predict_true((pte & PG_V) != 0)) {
if (pap != NULL)
*pap = (pte & PG_FRAME) | (va & ~PG_FRAME);
return (TRUE);
return (true);
}
}
return (FALSE);
return (false);
}
@ -1389,7 +1389,7 @@ vtophys(vaddr_t va)
{
paddr_t pa;
if (pmap_extract(pmap_kernel(), va, &pa) == TRUE)
if (pmap_extract(pmap_kernel(), va, &pa) == true)
return (pa);
return (0);
}
@ -1445,14 +1445,14 @@ pmap_zero_page(paddr_t pa)
/*
* pmap_zero_page_uncached: the same, except uncached. Returns
* TRUE if the page was zero'd, FALSE if we aborted for some
* true if the page was zero'd, false if we aborted for some
* reason.
*/
bool
pmap_zero_page_uncached(paddr_t pa)
{
bool rv = TRUE;
bool rv = true;
int i, *ptr;
simple_lock(&pmap_zero_page_lock);
@ -1468,7 +1468,7 @@ pmap_zero_page_uncached(paddr_t pa)
* do slow memory access to finish this
* page.
*/
rv = FALSE;
rv = false;
break;
}
*ptr++ = 0;
@ -1623,9 +1623,9 @@ pmap_remove_pte(struct pmap *pmap, struct vm_page *ptp, pt_entry_t *pte,
struct pv_entry *pve;
if (!pmap_valid_entry(*pte))
return(FALSE); /* VA not mapped */
return(false); /* VA not mapped */
if ((flags & PMAP_REMOVE_SKIPWIRED) && (*pte & PG_W)) {
return(FALSE);
return(false);
}
opte = *pte; /* save the old PTE */
@ -1651,7 +1651,7 @@ pmap_remove_pte(struct pmap *pmap, struct vm_page *ptp, pt_entry_t *pte,
panic("pmap_remove_pte: managed page without "
"PG_PVLIST for 0x%lx", va);
#endif
return(TRUE);
return(true);
}
bank = vm_physseg_find(ns532_btop(opte & PG_FRAME), &off);
@ -1670,7 +1670,7 @@ pmap_remove_pte(struct pmap *pmap, struct vm_page *ptp, pt_entry_t *pte,
if (pve)
pmap_free_pv(pmap, pve);
return(TRUE);
return(true);
}
/*
@ -1982,7 +1982,7 @@ pmap_test_attrs(struct vm_page *pg, int testbits)
bank = vm_physseg_find(atop(VM_PAGE_TO_PHYS(pg)), &off);
if (bank == -1) {
printf("pmap_test_attrs: unmanaged page?\n");
return(FALSE);
return(false);
}
/*
@ -1992,12 +1992,12 @@ pmap_test_attrs(struct vm_page *pg, int testbits)
myattrs = &vm_physmem[bank].pmseg.attrs[off];
if (*myattrs & testbits)
return(TRUE);
return(true);
/* test to see if there is a list before bothering to lock */
pvh = &vm_physmem[bank].pmseg.pvhead[off];
if (pvh->pvh_list == NULL) {
return(FALSE);
return(false);
}
/* nope, gonna have to do it the hard way */
@ -2027,7 +2027,7 @@ pmap_test_attrs(struct vm_page *pg, int testbits)
* pmap_change_attrs: change a page's attributes
*
* => we set pv_head => pmap locking
* => we return TRUE if we cleared one of the bits we were asked to
* => we return true if we cleared one of the bits we were asked to
*/
bool
@ -2044,7 +2044,7 @@ pmap_change_attrs(struct vm_page *pg, int setbits, int clearbits)
bank = vm_physseg_find(atop(VM_PAGE_TO_PHYS(pg)), &off);
if (bank == -1) {
printf("pmap_change_attrs: unmanaged page?\n");
return(FALSE);
return(false);
}
PMAP_HEAD_TO_MAP_LOCK();
@ -2526,7 +2526,7 @@ pmap_growkernel(vaddr_t maxkvaddr)
for (/*null*/ ; nkpde < needed_kpde ; nkpde++) {
if (uvm.page_init_done == FALSE) {
if (uvm.page_init_done == false) {
/*
* we're growing the kernel pmap early (from
@ -2534,7 +2534,7 @@ pmap_growkernel(vaddr_t maxkvaddr)
* handled a little differently.
*/
if (uvm_page_physget(&ptaddr) == FALSE)
if (uvm_page_physget(&ptaddr) == false)
panic("pmap_growkernel: out of memory");
pmap_zero_page(ptaddr);
@ -2548,7 +2548,7 @@ pmap_growkernel(vaddr_t maxkvaddr)
/*
* THIS *MUST* BE CODED SO AS TO WORK IN THE
* pmap_initialized == FALSE CASE! WE MAY BE
* pmap_initialized == false CASE! WE MAY BE
* INVOKED WHILE pmap_init() IS RUNNING!
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.67 2006/11/05 08:04:55 yamt Exp $ */
/* $NetBSD: vm_machdep.c,v 1.68 2007/02/22 17:04:54 thorpej Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.67 2006/11/05 08:04:55 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.68 2007/02/22 17:04:54 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -319,7 +319,7 @@ kvtop(caddr_t addr)
{
paddr_t pa;
if (pmap_extract(pmap_kernel(), (vaddr_t)addr, &pa) == FALSE)
if (pmap_extract(pmap_kernel(), (vaddr_t)addr, &pa) == false)
panic("kvtop: zero page frame");
return((int)pa);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: rh.c,v 1.3 2005/12/11 12:18:34 christos Exp $ */
/* $NetBSD: rh.c,v 1.4 2007/02/22 17:03:19 thorpej Exp $ */
/*
* Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -286,7 +286,7 @@ rhstart(struct rh_softc *sc)
int blkcnt = ncnt/128;
paddr_t pap;
if (pmap_extract(pmap_kernel(), (vaddr_t)bp->b_data, &pap) == FALSE)
if (pmap_extract(pmap_kernel(), (vaddr_t)bp->b_data, &pap) == false)
panic("rhstart");
if (pap & 03777)

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_machdep.c,v 1.4 2007/02/21 22:59:49 thorpej Exp $ */
/* $NetBSD: db_machdep.c,v 1.5 2007/02/22 17:03:19 thorpej Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@ -106,13 +106,13 @@ db_stack_trace_print(db_expr_t addr, bool have_addr, db_expr_t count,
bool
inst_branch(int inst)
{
return TRUE;
return true;
}
bool
inst_unconditional_flow_transfer(int inst)
{
return TRUE;
return true;
}
db_addr_t

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.10 2007/02/09 21:55:09 ad Exp $ */
/* $NetBSD: machdep.c,v 1.11 2007/02/22 17:03:20 thorpej Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@ -81,13 +81,13 @@ cpu_startup()
* At most one process with the full length is allowed.
*/
exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
NCARGS/4, VM_MAP_PAGEABLE, FALSE, NULL);
NCARGS/4, VM_MAP_PAGEABLE, false, NULL);
/*
* 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)/4);
pbuf[strlen(pbuf)-1] = 0; /* Remove 'B' */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.3 2007/02/21 22:59:49 thorpej Exp $ */
/* $NetBSD: pmap.c,v 1.4 2007/02/22 17:03:20 thorpej Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@ -243,7 +243,7 @@ pmap_remove(pmap_t pmap, vaddr_t v1, vaddr_t v2)
/*
* Get the physical page address for the virtual address v.
* Return FALSE if no mapping exists.
* Return false if no mapping exists.
*/
bool
pmap_extract(pmap_t pmap, vaddr_t v, paddr_t *pp)
@ -255,14 +255,14 @@ pmap_extract(pmap_t pmap, vaddr_t v, paddr_t *pp)
panic("pmap_extract");
seg = SEGNO(nv);
if (((pga = ept->ept_section[seg]) & PG_IMM) == 0)
return FALSE;
return false;
pg = PGINSEG(nv);
pgp = (int *)(((pga << PGSH) & 017777777) << PTOV_COMP);
if (((paddr = pgp[pg]) & PG_IMM) == 0)
return FALSE;
return false;
*pp = (paddr << PGSH) & 037777777;
*pp <<= PTOV_COMP;
return TRUE;
return true;
}
int

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.16 2006/04/09 01:18:14 tsutsui Exp $ */
/* $NetBSD: machdep.c,v 1.17 2007/02/22 16:59:18 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.16 2006/04/09 01:18:14 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.17 2007/02/22 16:59:18 thorpej Exp $");
#include "opt_ddb.h"
#include "opt_kloader.h"
@ -195,12 +195,12 @@ 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
@ -236,7 +236,7 @@ cpu_reboot(int howto, char *bootstr)
#ifdef KLOADER
/* No bootinfo is required. */
kloader_bootinfo_set(&kbi, 0, NULL, NULL, TRUE);
kloader_bootinfo_set(&kbi, 0, NULL, NULL, true);
#ifndef KLOADER_KERNEL_PATH
#define KLOADER_KERNEL_PATH "/netbsd"
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.215 2006/12/21 15:55:24 yamt Exp $ */
/* $NetBSD: machdep.c,v 1.216 2007/02/22 16:58:35 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.215 2006/12/21 15:55:24 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.216 2007/02/22 16:58:35 thorpej Exp $");
#include "fs_mfs.h"
#include "opt_ddb.h"
@ -454,13 +454,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

View File

@ -1,4 +1,4 @@
/* $NetBSD: com_opb.c,v 1.18 2006/07/13 22:56:01 gdamore Exp $ */
/* $NetBSD: com_opb.c,v 1.19 2007/02/22 16:57:57 thorpej Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: com_opb.c,v 1.18 2006/07/13 22:56:01 gdamore Exp $");
__KERNEL_RCSID(0, "$NetBSD: com_opb.c,v 1.19 2007/02/22 16:57:57 thorpej Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -175,7 +175,7 @@ com_opb_device_register(struct device *dev, int frequency)
KASSERT(pn != NULL);
if (prop_dictionary_set(device_properties(dev),
"clock-frequency", pn) == FALSE) {
"clock-frequency", pn) == false) {
printf("WARNING: unable to set clock-frequency "
"property for %s\n", dev->dv_xname);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ibm4xx_autoconf.c,v 1.10 2006/05/05 18:04:42 thorpej Exp $ */
/* $NetBSD: ibm4xx_autoconf.c,v 1.11 2007/02/22 16:57:56 thorpej Exp $ */
/* Original Tag: ibm4xxgpx_autoconf.c,v 1.2 2004/10/23 17:12:22 thorpej Exp $ */
/*
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ibm4xx_autoconf.c,v 1.10 2006/05/05 18:04:42 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: ibm4xx_autoconf.c,v 1.11 2007/02/22 16:57:56 thorpej Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@ -70,7 +70,7 @@ ibm4xx_device_register(struct device *dev, void *aux)
return;
}
if (prop_dictionary_set(device_properties(dev),
"mac-addr", pd) == FALSE) {
"mac-addr", pd) == false) {
printf("WARNING: unable to set mac-addr "
"property for %s\n", dev->dv_xname);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ibm4xx_machdep.c,v 1.5 2005/12/24 22:45:36 perry Exp $ */
/* $NetBSD: ibm4xx_machdep.c,v 1.6 2007/02/22 16:57:56 thorpej Exp $ */
/* Original: ibm40x_machdep.c,v 1.3 2005/01/17 17:19:36 shige Exp $ */
/*
@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ibm4xx_machdep.c,v 1.5 2005/12/24 22:45:36 perry Exp $");
__KERNEL_RCSID(0, "$NetBSD: ibm4xx_machdep.c,v 1.6 2007/02/22 16:57:56 thorpej Exp $");
#include "opt_compat_netbsd.h"
#include "opt_ddb.h"
@ -308,13 +308,13 @@ ibm4xx_cpu_startup(const char *model)
* 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

View File

@ -1,4 +1,4 @@
/* $NetBSD: openbios.c,v 1.3 2006/05/05 18:04:42 thorpej Exp $ */
/* $NetBSD: openbios.c,v 1.4 2007/02/22 16:57:57 thorpej Exp $ */
/*
* Copyright (c) 2004 Shigeyuki Fukushima.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: openbios.c,v 1.3 2006/05/05 18:04:42 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: openbios.c,v 1.4 2007/02/22 16:57:57 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -89,20 +89,20 @@ openbios_board_info_set(void)
ps = prop_string_create_cstring_nocopy(board_bios.usr_config_ver);
KASSERT(ps != NULL);
if (prop_dictionary_set(board_properties, "user-config-version",
ps) == FALSE)
ps) == false)
panic("setting user-config-version");
prop_object_release(ps);
ps = prop_string_create_cstring_nocopy(board_bios.rom_sw_ver);
KASSERT(ps != NULL);
if (prop_dictionary_set(board_properties, "rom-software-version",
ps) == FALSE)
ps) == false)
panic("setting rom-software-version");
prop_object_release(ps);
pn = prop_number_create_integer(board_bios.mem_size);
KASSERT(pn != NULL);
if (prop_dictionary_set(board_properties, "mem-size", pn) == FALSE)
if (prop_dictionary_set(board_properties, "mem-size", pn) == false)
panic("setting mem-size");
prop_object_release(pn);
@ -110,7 +110,7 @@ openbios_board_info_set(void)
sizeof(board_bios.mac_address_local));
KASSERT(pd != NULL);
if (prop_dictionary_set(board_properties, "emac0-mac-addr",
pd) == FALSE)
pd) == false)
panic("setting emac0-mac-addr");
prop_object_release(pd);
@ -118,26 +118,26 @@ openbios_board_info_set(void)
sizeof(board_bios.mac_address_pci));
KASSERT(pd != NULL);
if (prop_dictionary_set(board_properties, "sip0-mac-addr",
pd) == FALSE)
pd) == false)
panic("setting sip0-mac-addr");
prop_object_release(pd);
pn = prop_number_create_integer(board_bios.processor_speed);
KASSERT(pn != NULL);
if (prop_dictionary_set(board_properties, "processor-frequency",
pn) == FALSE)
pn) == false)
panic("setting processor-frequency");
prop_object_release(pn);
pn = prop_number_create_integer(board_bios.plb_speed);
KASSERT(pn != NULL);
if (prop_dictionary_set(board_properties, "plb-frequency", pn) == FALSE)
if (prop_dictionary_set(board_properties, "plb-frequency", pn) == false)
panic("setting plb-frequency");
prop_object_release(pn);
pn = prop_number_create_integer(board_bios.pci_speed);
KASSERT(pn != NULL);
if (prop_dictionary_set(board_properties, "pci-frequency", pn) == FALSE)
if (prop_dictionary_set(board_properties, "pci-frequency", pn) == false)
panic("setting pci-frequency");
prop_object_release(pn);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.45 2007/02/21 22:59:49 thorpej Exp $ */
/* $NetBSD: pmap.c,v 1.46 2007/02/22 16:57:57 thorpej Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.45 2007/02/21 22:59:49 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.46 2007/02/22 16:57:57 thorpej Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@ -1078,7 +1078,7 @@ pmap_check_attr(struct vm_page *pg, u_int mask, int clear)
pa = VM_PAGE_TO_PHYS(pg);
attr = pa_to_attr(pa);
if (attr == NULL)
return FALSE;
return false;
s = splvm();
rv = ((*attr & mask) != 0);

View File

@ -1,4 +1,4 @@
/* $NetBSD: oea_machdep.c,v 1.30 2007/02/09 21:55:11 ad Exp $ */
/* $NetBSD: oea_machdep.c,v 1.31 2007/02/22 16:57:57 thorpej Exp $ */
/*
* Copyright (C) 2002 Matt Thomas
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.30 2007/02/09 21:55:11 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: oea_machdep.c,v 1.31 2007/02/22 16:57:57 thorpej Exp $");
#include "opt_compat_netbsd.h"
#include "opt_ddb.h"
@ -724,13 +724,13 @@ oea_startup(const char *model)
* submaps will be allocated after the dead zone.
*/
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);
#ifndef PMAP_MAP_POOLPAGE
/*
@ -739,7 +739,7 @@ oea_startup(const char *model)
* pool pages.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
mclbytes*nmbclusters, VM_MAP_INTRSAFE, FALSE, NULL);
mclbytes*nmbclusters, VM_MAP_INTRSAFE, false, NULL);
#endif
format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free));
@ -791,7 +791,7 @@ kvtop(caddr_t addr)
va = trunc_page((vaddr_t)addr);
off = (uintptr_t)addr - va;
if (pmap_extract(pmap_kernel(), va, &pa) == FALSE) {
if (pmap_extract(pmap_kernel(), va, &pa) == false) {
/*printf("kvtop: zero page frame (va=0x%x)\n", addr);*/
return (paddr_t)addr;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.44 2007/02/21 22:59:50 thorpej Exp $ */
/* $NetBSD: pmap.c,v 1.45 2007/02/22 16:57:57 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.44 2007/02/21 22:59:50 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.45 2007/02/22 16:57:57 thorpej Exp $");
#include "opt_ppcarch.h"
#include "opt_altivec.h"
@ -1745,7 +1745,7 @@ pmap_pvo_enter(pmap_t pm, struct pool *pl, struct pvo_head *pvo_head,
* If this is a kernel page, make sure it's active.
*/
if (pm == pmap_kernel()) {
i = pmap_pte_spill(pm, va, FALSE);
i = pmap_pte_spill(pm, va, false);
KASSERT(i);
}
}
@ -2149,7 +2149,7 @@ pmap_extract(pmap_t pm, vaddr_t va, paddr_t *pap)
(~(batu & BAT_BL) << 15) & ~0x1ffffL;
if (pap)
*pap = (batl & mask) | (va & ~mask);
return TRUE;
return true;
}
} else {
register_t batu = battable[va >> 23].batu;
@ -2161,15 +2161,15 @@ pmap_extract(pmap_t pm, vaddr_t va, paddr_t *pap)
(~(batl & BAT601_BSM) << 17) & ~0x1ffffL;
if (pap)
*pap = (batl & mask) | (va & ~mask);
return TRUE;
return true;
} else if (SR601_VALID_P(sr) &&
SR601_PA_MATCH_P(sr, va)) {
if (pap)
*pap = va;
return TRUE;
return true;
}
}
return FALSE;
return false;
#elif defined (PPC_OEA64_BRIDGE)
panic("%s: pm: %s, va: 0x%08lx\n", __FUNCTION__,
(pm == pmap_kernel() ? "kernel" : "user"), va);
@ -2402,7 +2402,7 @@ pmap_query_bit(struct vm_page *pg, int ptebit)
register_t msr;
if (pmap_attr_fetch(pg) & ptebit)
return TRUE;
return true;
msr = pmap_interrupts_off();
LIST_FOREACH(pvo, vm_page_to_pvoh(pg), pvo_vlink) {
@ -2415,7 +2415,7 @@ pmap_query_bit(struct vm_page *pg, int ptebit)
pmap_attr_save(pg, ptebit);
PMAP_PVO_CHECK(pvo); /* sanity check */
pmap_interrupts_restore(msr);
return TRUE;
return true;
}
}
/*
@ -2438,12 +2438,12 @@ pmap_query_bit(struct vm_page *pg, int ptebit)
pmap_attr_save(pg, ptebit);
PMAP_PVO_CHECK(pvo); /* sanity check */
pmap_interrupts_restore(msr);
return TRUE;
return true;
}
}
}
pmap_interrupts_restore(msr);
return FALSE;
return false;
}
bool
@ -2828,7 +2828,7 @@ pmap_pool_ualloc(struct pool *pp, int flags)
SIMPLEQ_REMOVE_HEAD(&pmap_upvop_head, pvop_link);
return pvop;
}
if (uvm.page_init_done != TRUE) {
if (uvm.page_init_done != true) {
return (void *) uvm_pageboot_alloc(PAGE_SIZE);
}
return pmap_pool_malloc(pp, flags);
@ -2906,7 +2906,7 @@ pmap_steal_memory(vsize_t vsize, vaddr_t *vstartp, vaddr_t *vendp)
int npgs, bank;
struct vm_physseg *ps;
if (uvm.page_init_done == TRUE)
if (uvm.page_init_done == true)
panic("pmap_steal_memory: called _after_ bootstrap");
*vstartp = VM_MIN_KERNEL_ADDRESS;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_trace.c,v 1.45 2007/02/22 04:47:07 matt Exp $ */
/* $NetBSD: db_trace.c,v 1.46 2007/02/22 16:57:57 thorpej Exp $ */
/* $OpenBSD: db_trace.c,v 1.3 1997/03/21 02:10:48 niklas Exp $ */
/*
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.45 2007/02/22 04:47:07 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.46 2007/02/22 16:57:57 thorpej Exp $");
#include "opt_ppcarch.h"
@ -109,24 +109,24 @@ db_stack_trace_print(db_expr_t addr, bool have_addr, db_expr_t count,
const char *symname;
const char *cp = modif;
char c;
bool kernel_only = TRUE;
bool trace_thread = FALSE;
bool lwpaddr = FALSE;
bool kernel_only = true;
bool trace_thread = false;
bool lwpaddr = false;
extern int trapexit[], sctrapexit[];
bool full = FALSE;
bool in_kernel = TRUE;
bool full = false;
bool in_kernel = true;
while ((c = *cp++) != 0) {
if (c == 'a') {
lwpaddr = TRUE;
trace_thread = TRUE;
lwpaddr = true;
trace_thread = true;
}
if (c == 't')
trace_thread = TRUE;
trace_thread = true;
if (c == 'u')
kernel_only = FALSE;
kernel_only = false;
if (c == 'f')
full = TRUE;
full = true;
}
if (have_addr) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap_subr.c,v 1.15 2007/02/21 22:59:50 thorpej Exp $ */
/* $NetBSD: pmap_subr.c,v 1.16 2007/02/22 16:57:58 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap_subr.c,v 1.15 2007/02/21 22:59:50 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap_subr.c,v 1.16 2007/02/22 16:57:58 thorpej Exp $");
#include "opt_multiprocessor.h"
#include "opt_altivec.h"
@ -310,20 +310,20 @@ pmap_pageidlezero(paddr_t pa)
{
register_t msr;
register_t *dp = (register_t *) pa;
bool rv = TRUE;
bool rv = true;
int i;
#if defined(PPC_OEA) || defined (PPC_OEA64_BRIDGE)
if (pa < SEGMENT_LENGTH) {
for (i = 0; i < PAGE_SIZE / sizeof(dp[0]); i++) {
if (sched_whichqs != 0)
return FALSE;
return false;
*dp++ = 0;
}
#ifdef PMAPCOUNTERS
pmap_evcnt_idlezeroed_pages.ev_count++;
#endif
return TRUE;
return true;
}
#endif
@ -338,7 +338,7 @@ pmap_pageidlezero(paddr_t pa)
*/
for (i = 0; i < PAGE_SIZE / sizeof(dp[0]); i++) {
if (sched_whichqs != 0) {
rv = FALSE;
rv = false;
break;
}
*dp++ = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.116 2007/02/09 21:55:11 ad Exp $ */
/* $NetBSD: trap.c,v 1.117 2007/02/22 16:57:58 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.116 2007/02/09 21:55:11 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.117 2007/02/22 16:57:58 thorpej Exp $");
#include "opt_altivec.h"
#include "opt_ddb.h"
@ -136,7 +136,7 @@ trap(struct trapframe *frame)
if ((frame->dsisr & DSISR_NOTFOUND) &&
vm_map_pmap(map)->pm_ste_evictions > 0 &&
pmap_ste_spill(vm_map_pmap(map),
trunc_page(va), FALSE)) {
trunc_page(va), false)) {
/* KERNEL_UNLOCK_LAST(l); */
KERNEL_UNLOCK_ONE(NULL);
return;
@ -146,7 +146,7 @@ trap(struct trapframe *frame)
if ((frame->dsisr & DSISR_NOTFOUND) &&
vm_map_pmap(map)->pm_evictions > 0 &&
pmap_pte_spill(vm_map_pmap(map),
trunc_page(va), FALSE)) {
trunc_page(va), false)) {
/* KERNEL_UNLOCK_LAST(l); */
KERNEL_UNLOCK_ONE(NULL);
return;
@ -227,7 +227,7 @@ trap(struct trapframe *frame)
if ((frame->dsisr & DSISR_NOTFOUND) &&
vm_map_pmap(map)->pm_ste_evictions > 0 &&
pmap_ste_spill(vm_map_pmap(map), trunc_page(frame->dar),
FALSE)) {
false)) {
KERNEL_UNLOCK_LAST(l);
break;
}
@ -236,7 +236,7 @@ trap(struct trapframe *frame)
if ((frame->dsisr & DSISR_NOTFOUND) &&
vm_map_pmap(map)->pm_evictions > 0 &&
pmap_pte_spill(vm_map_pmap(map), trunc_page(frame->dar),
FALSE)) {
false)) {
KERNEL_UNLOCK_LAST(l);
break;
}
@ -296,7 +296,7 @@ trap(struct trapframe *frame)
#ifdef PPC_OEA64
if (vm_map_pmap(map)->pm_ste_evictions > 0 &&
pmap_ste_spill(vm_map_pmap(map), trunc_page(frame->srr0),
TRUE)) {
true)) {
KERNEL_UNLOCK_LAST(l);
break;
}
@ -304,7 +304,7 @@ trap(struct trapframe *frame)
if (vm_map_pmap(map)->pm_evictions > 0 &&
pmap_pte_spill(vm_map_pmap(map), trunc_page(frame->srr0),
TRUE)) {
true)) {
KERNEL_UNLOCK_LAST(l);
break;
}