Replace the Mach-derived boolean_t type with the C99 bool type. A

future commit will replace use of TRUE and FALSE with true and false.
This commit is contained in:
thorpej 2007-02-21 22:59:35 +00:00
parent fe8ace86aa
commit 712239e366
285 changed files with 1648 additions and 1651 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.12 2006/09/28 23:54:14 bjh21 Exp $ */
/* $NetBSD: db_interface.c,v 1.13 2007/02/21 22:59:35 thorpej Exp $ */
/*
* Copyright (c) 1996 Scott K. Stevens
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.12 2006/09/28 23:54:14 bjh21 Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.13 2007/02/21 22:59:35 thorpej Exp $");
#include "opt_ddb.h"
@ -164,7 +164,7 @@ kdb_trap(int type, db_regs_t *regs)
return 1;
}
volatile boolean_t db_validating, db_faulted;
volatile bool db_validating, db_faulted;
int
db_validate_address(vm_offset_t addr)

View File

@ -1,4 +1,4 @@
/* $NetBSD: except.c,v 1.17 2006/10/14 20:39:21 bjh21 Exp $ */
/* $NetBSD: except.c,v 1.18 2007/02/21 22:59:35 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 Ben Harris
* All rights reserved.
@ -31,7 +31,7 @@
#include <sys/param.h>
__KERNEL_RCSID(0, "$NetBSD: except.c,v 1.17 2006/10/14 20:39:21 bjh21 Exp $");
__KERNEL_RCSID(0, "$NetBSD: except.c,v 1.18 2007/02/21 22:59:35 thorpej Exp $");
#include "opt_ddb.h"
@ -65,7 +65,7 @@ static void do_fault(struct trapframe *, struct lwp *, struct vm_map *,
static void data_abort_fixup(struct trapframe *);
static vaddr_t data_abort_address(struct trapframe *, vsize_t *);
static vm_prot_t data_abort_atype(struct trapframe *);
static boolean_t data_abort_usrmode(struct trapframe *);
static bool data_abort_usrmode(struct trapframe *);
#ifdef DEBUG
static void printregs(struct trapframe *tf);
#endif
@ -147,7 +147,7 @@ data_abort_handler(struct trapframe *tf)
struct proc *p;
struct lwp *l;
vm_prot_t atype;
boolean_t usrmode, twopages;
bool usrmode, twopages;
struct vm_map *map;
/*
@ -441,7 +441,7 @@ data_abort_atype(struct trapframe *tf)
/*
* Work out what effective mode was in use when a data abort occurred.
*/
static boolean_t
static bool
data_abort_usrmode(struct trapframe *tf)
{
register_t insn;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.12 2005/12/08 22:41:44 yamt Exp $ */
/* $NetBSD: pmap.c,v 1.13 2007/02/21 22:59:35 thorpej Exp $ */
/*-
* Copyright (c) 1997, 1998, 2000 Ben Harris
* All rights reserved.
@ -102,7 +102,7 @@
#include <sys/param.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.12 2005/12/08 22:41:44 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.13 2007/02/21 22:59:35 thorpej Exp $");
#include <sys/kernel.h> /* for cold */
#include <sys/malloc.h>
@ -182,7 +182,7 @@ struct pv_entry *pv_table;
struct pmap kernel_pmap_store;
struct pv_entry *kernel_pmap_entries[PM_NENTRIES];
static boolean_t pmap_initialised = FALSE;
static bool pmap_initialised = FALSE;
static struct pool pmap_pool;
@ -739,7 +739,7 @@ pmap_remove(pmap_t pmap, vaddr_t sva, vaddr_t eva)
splx(s);
}
boolean_t
bool
pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *ppa)
{
struct pv_entry *pv;
@ -771,12 +771,12 @@ pmap_kremove(vaddr_t va, vsize_t len)
pmap_remove(pmap_kernel(), va, va+len);
}
inline boolean_t
inline bool
pmap_is_modified(page)
struct vm_page *page;
{
int ppn;
boolean_t rv;
bool rv;
#ifdef PMAP_DEBUG_MODIFIED
unsigned char digest[16];
#endif
@ -805,7 +805,7 @@ pmap_is_modified(page)
return rv;
}
inline boolean_t
inline bool
pmap_is_referenced(page)
struct vm_page *page;
{
@ -836,11 +836,11 @@ pmap_update_page(int ppn)
}
}
boolean_t
bool
pmap_clear_modify(struct vm_page *page)
{
int ppn;
boolean_t rv;
bool rv;
struct pv_entry *pv;
UVMHIST_FUNC("pmap_clear_modify");
@ -861,11 +861,11 @@ pmap_clear_modify(struct vm_page *page)
return rv;
}
boolean_t
bool
pmap_clear_reference(struct vm_page *page)
{
int ppn;
boolean_t rv;
bool rv;
UVMHIST_FUNC("pmap_clear_reference");
UVMHIST_CALLED(pmaphist);
@ -883,7 +883,7 @@ pmap_clear_reference(struct vm_page *page)
* referenced/modified emulation). If it was, handle it and return
* TRUE. Otherwise, return FALSE.
*/
boolean_t
bool
pmap_fault(struct pmap *pmap, vaddr_t va, vm_prot_t atype)
{
int lpn, ppn;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_machdep.h,v 1.4 2006/09/27 21:21:09 bjh21 Exp $ */
/* $NetBSD: db_machdep.h,v 1.5 2007/02/21 22:59:36 thorpej Exp $ */
#include <arm/db_machdep.h>
@ -12,4 +12,4 @@ void db_show_frame_cmd __P((db_expr_t, int, db_expr_t, const char *));
void db_bus_write_cmd __P((db_expr_t, int, db_expr_t, const char *));
void db_irqstat_cmd __P((db_expr_t, int, db_expr_t, const char *));
extern volatile boolean_t db_validating, db_faulted;
extern volatile bool db_validating, db_faulted;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.6 2006/02/16 20:17:12 perry Exp $ */
/* $NetBSD: pmap.h,v 1.7 2007/02/21 22:59:36 thorpej Exp $ */
/*-
* Copyright (c) 1997, 1998 Ben Harris
* All rights reserved.
@ -45,7 +45,7 @@ extern struct pmap kernel_pmap_store;
#define pmap_kernel() (&kernel_pmap_store)
extern boolean_t pmap_fault(pmap_t, vaddr_t, vm_prot_t);
extern bool pmap_fault(pmap_t, vaddr_t, vm_prot_t);
/* These have to be macros, whatever pmap(9) says. */
#define pmap_resident_count(pmap) _pmap_resident_count(pmap)

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_disasm.c,v 1.12 2005/12/11 12:16:10 christos Exp $ */
/* $NetBSD: db_disasm.c,v 1.13 2007/02/21 22:59:36 thorpej Exp $ */
/*
* Mach Operating System
@ -48,7 +48,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.12 2005/12/11 12:16:10 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.13 2007/02/21 22:59:36 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -805,12 +805,12 @@ register_name(int ireg)
static int
alpha_print_instruction(db_addr_t iadr, alpha_instruction i,
boolean_t showregs)
bool showregs)
{
const char *opcode;
int ireg;
long signed_immediate;
boolean_t fstore;
bool fstore;
pal_instruction p;
regcount = 0;
@ -1073,7 +1073,7 @@ branch_displacement:
}
db_addr_t
db_disasm(db_addr_t loc, boolean_t altfmt)
db_disasm(db_addr_t loc, bool altfmt)
{
alpha_instruction inst;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.22 2005/12/24 20:06:46 perry Exp $ */
/* $NetBSD: db_interface.c,v 1.23 2007/02/21 22:59:36 thorpej Exp $ */
/*
* Mach Operating System
@ -52,7 +52,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.22 2005/12/24 20:06:46 perry Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.23 2007/02/21 22:59:36 thorpej Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@ -375,7 +375,7 @@ db_register_value(regs, regno)
* Support functions for software single-step.
*/
boolean_t
bool
db_inst_call(ins)
int ins;
{
@ -387,7 +387,7 @@ db_inst_call(ins)
(insn.jump_format.action & 1)));
}
boolean_t
bool
db_inst_return(ins)
int ins;
{
@ -398,7 +398,7 @@ db_inst_return(ins)
(insn.jump_format.action == op_ret));
}
boolean_t
bool
db_inst_trap_return(ins)
int ins;
{
@ -409,7 +409,7 @@ db_inst_trap_return(ins)
(insn.pal_format.function == PAL_OSF1_rti));
}
boolean_t
bool
db_inst_branch(ins)
int ins;
{
@ -439,7 +439,7 @@ db_inst_branch(ins)
return (FALSE);
}
boolean_t
bool
db_inst_unconditional_flow_transfer(ins)
int ins;
{
@ -464,7 +464,7 @@ db_inst_unconditional_flow_transfer(ins)
}
#if 0
boolean_t
bool
db_inst_spill(ins, regn)
int ins, regn;
{
@ -476,7 +476,7 @@ db_inst_spill(ins, regn)
}
#endif
boolean_t
bool
db_inst_load(ins)
int ins;
{
@ -507,7 +507,7 @@ db_inst_load(ins)
return (FALSE);
}
boolean_t
bool
db_inst_store(ins)
int ins;
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.215 2006/05/14 21:55:09 elad Exp $ */
/* $NetBSD: pmap.c,v 1.216 2007/02/21 22:59:36 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -145,7 +145,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.215 2006/05/14 21:55:09 elad Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.216 2007/02/21 22:59:36 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -232,7 +232,7 @@ paddr_t avail_start; /* PA of first available physical page */
paddr_t avail_end; /* PA of last available physical page */
static vaddr_t virtual_end; /* VA of last avail page (end of kernel AS) */
static boolean_t pmap_initialized; /* Has pmap_init completed? */
static bool pmap_initialized; /* Has pmap_init completed? */
u_long pmap_pages_stolen; /* instrumentation */
@ -466,9 +466,8 @@ static void pmap_tlb_shootdown_job_put(struct pmap_tlb_shootdown_q *,
* Internal routines
*/
static void alpha_protection_init(void);
static void pmap_do_remove(pmap_t, vaddr_t, vaddr_t, boolean_t);
static boolean_t pmap_remove_mapping(pmap_t, vaddr_t, pt_entry_t *,
boolean_t, long);
static void pmap_do_remove(pmap_t, vaddr_t, vaddr_t, bool);
static bool pmap_remove_mapping(pmap_t, vaddr_t, pt_entry_t *, bool, long);
static void pmap_changebit(struct vm_page *, pt_entry_t, pt_entry_t, long);
/*
@ -495,8 +494,8 @@ static int pmap_l1pt_ctor(void *, void *, int);
* PV table management functions.
*/
static int pmap_pv_enter(pmap_t, struct vm_page *, vaddr_t, pt_entry_t *,
boolean_t);
static void pmap_pv_remove(pmap_t, struct vm_page *, vaddr_t, boolean_t);
bool);
static void pmap_pv_remove(pmap_t, struct vm_page *, vaddr_t, bool);
static void *pmap_pv_page_alloc(struct pool *, int);
static void pmap_pv_page_free(struct pool *, void *);
@ -519,7 +518,7 @@ static void pmap_asn_alloc(pmap_t, long);
/*
* Misc. functions.
*/
static boolean_t pmap_physpage_alloc(int, paddr_t *);
static bool pmap_physpage_alloc(int, paddr_t *);
static void pmap_physpage_free(paddr_t);
static int pmap_physpage_addref(void *);
static int pmap_physpage_delref(void *);
@ -1318,12 +1317,12 @@ pmap_remove(pmap_t pmap, vaddr_t sva, vaddr_t eva)
* want to remove wired mappings).
*/
static void
pmap_do_remove(pmap_t pmap, vaddr_t sva, vaddr_t eva, boolean_t dowired)
pmap_do_remove(pmap_t pmap, vaddr_t sva, vaddr_t eva, bool dowired)
{
pt_entry_t *l1pte, *l2pte, *l3pte;
pt_entry_t *saved_l1pte, *saved_l2pte, *saved_l3pte;
vaddr_t l1eva, l2eva, vptva;
boolean_t needisync = FALSE;
bool needisync = FALSE;
long cpu_id = cpu_number();
#ifdef DEBUG
@ -1480,7 +1479,7 @@ pmap_page_protect(struct vm_page *pg, vm_prot_t prot)
{
pmap_t pmap;
pv_entry_t pv, nextpv;
boolean_t needkisync = FALSE;
bool needkisync = FALSE;
long cpu_id = cpu_number();
PMAP_TLB_SHOOTDOWN_CPUSET_DECL
#ifdef DEBUG
@ -1563,8 +1562,8 @@ void
pmap_protect(pmap_t pmap, vaddr_t sva, vaddr_t eva, vm_prot_t prot)
{
pt_entry_t *l1pte, *l2pte, *l3pte, bits;
boolean_t isactive;
boolean_t hadasm;
bool isactive;
bool hadasm;
vaddr_t l1eva, l2eva;
long cpu_id = cpu_number();
PMAP_TLB_SHOOTDOWN_CPUSET_DECL
@ -1646,12 +1645,12 @@ pmap_enter(pmap_t pmap, vaddr_t va, paddr_t pa, vm_prot_t prot, int flags)
struct vm_page *pg; /* if != NULL, managed page */
pt_entry_t *pte, npte, opte;
paddr_t opa;
boolean_t tflush = TRUE;
boolean_t hadasm = FALSE; /* XXX gcc -Wuninitialized */
boolean_t needisync = FALSE;
boolean_t setisync = FALSE;
boolean_t isactive;
boolean_t wired;
bool tflush = TRUE;
bool hadasm = FALSE; /* XXX gcc -Wuninitialized */
bool needisync = FALSE;
bool setisync = FALSE;
bool isactive;
bool wired;
long cpu_id = cpu_number();
int error = 0;
PMAP_TLB_SHOOTDOWN_CPUSET_DECL
@ -1979,7 +1978,7 @@ pmap_kenter_pa(vaddr_t va, paddr_t pa, vm_prot_t prot)
{
pt_entry_t *pte, npte;
long cpu_id = cpu_number();
boolean_t needisync = FALSE;
bool needisync = FALSE;
pmap_t pmap = pmap_kernel();
PMAP_TLB_SHOOTDOWN_CPUSET_DECL
@ -2043,7 +2042,7 @@ void
pmap_kremove(vaddr_t va, vsize_t size)
{
pt_entry_t *pte;
boolean_t needisync = FALSE;
bool needisync = FALSE;
long cpu_id = cpu_number();
pmap_t pmap = pmap_kernel();
PMAP_TLB_SHOOTDOWN_CPUSET_DECL
@ -2140,7 +2139,7 @@ pmap_unwire(pmap_t pmap, vaddr_t va)
* Extract the physical address associated with the given
* pmap/virtual address pair.
*/
boolean_t
bool
pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *pap)
{
pt_entry_t *l1pte, *l2pte, *l3pte;
@ -2427,7 +2426,7 @@ pmap_copy_page(paddr_t src, paddr_t dst)
* Page zero'er for the idle loop. Returns TRUE if the
* page was zero'd, FLASE if we aborted for some reason.
*/
boolean_t
bool
pmap_pageidlezero(paddr_t pa)
{
u_long *ptr;
@ -2453,10 +2452,10 @@ pmap_pageidlezero(paddr_t pa)
*
* Clear the modify bits on the specified physical page.
*/
boolean_t
bool
pmap_clear_modify(struct vm_page *pg)
{
boolean_t rv = FALSE;
bool rv = FALSE;
long cpu_id = cpu_number();
#ifdef DEBUG
@ -2484,10 +2483,10 @@ pmap_clear_modify(struct vm_page *pg)
*
* Clear the reference bit on the specified physical page.
*/
boolean_t
bool
pmap_clear_reference(struct vm_page *pg)
{
boolean_t rv = FALSE;
bool rv = FALSE;
long cpu_id = cpu_number();
#ifdef DEBUG
@ -2600,16 +2599,16 @@ alpha_protection_init(void)
* Returns TRUE or FALSE, indicating if an I-stream sync needs
* to be initiated (for this CPU or for other CPUs).
*/
static boolean_t
static bool
pmap_remove_mapping(pmap_t pmap, vaddr_t va, pt_entry_t *pte,
boolean_t dolock, long cpu_id)
bool dolock, long cpu_id)
{
paddr_t pa;
struct vm_page *pg; /* if != NULL, page is managed */
boolean_t onpv;
boolean_t hadasm;
boolean_t isactive;
boolean_t needisync = FALSE;
bool onpv;
bool hadasm;
bool isactive;
bool needisync = FALSE;
PMAP_TLB_SHOOTDOWN_CPUSET_DECL
#ifdef DEBUG
@ -2712,7 +2711,7 @@ pmap_changebit(struct vm_page *pg, u_long set, u_long mask, long cpu_id)
pv_entry_t pv;
pt_entry_t *pte, npte;
vaddr_t va;
boolean_t hadasm, isactive;
bool hadasm, isactive;
PMAP_TLB_SHOOTDOWN_CPUSET_DECL
#ifdef DEBUG
@ -2760,8 +2759,8 @@ pmap_emulate_reference(struct lwp *l, vaddr_t v, int user, int type)
pt_entry_t faultoff, *pte;
struct vm_page *pg;
paddr_t pa;
boolean_t didlock = FALSE;
boolean_t exec = FALSE;
bool didlock = FALSE;
bool exec = FALSE;
long cpu_id = cpu_number();
#ifdef DEBUG
@ -2937,7 +2936,7 @@ vtophys(vaddr_t vaddr)
*/
static int
pmap_pv_enter(pmap_t pmap, struct vm_page *pg, vaddr_t va, pt_entry_t *pte,
boolean_t dolock)
bool dolock)
{
pv_entry_t newpv;
@ -2987,7 +2986,7 @@ pmap_pv_enter(pmap_t pmap, struct vm_page *pg, vaddr_t va, pt_entry_t *pte,
* Remove a physical->virtual entry from the pv_table.
*/
static void
pmap_pv_remove(pmap_t pmap, struct vm_page *pg, vaddr_t va, boolean_t dolock)
pmap_pv_remove(pmap_t pmap, struct vm_page *pg, vaddr_t va, bool dolock)
{
pv_entry_t pv, *pvp;
@ -3050,7 +3049,7 @@ pmap_pv_page_free(struct pool *pp, void *v)
* Allocate a single page from the VM system and return the
* physical address for that page.
*/
static boolean_t
static bool
pmap_physpage_alloc(int usage, paddr_t *pap)
{
struct vm_page *pg;

View File

@ -1,4 +1,4 @@
/* $NetBSD: syscall.c,v 1.24 2007/02/09 21:55:01 ad Exp $ */
/* $NetBSD: syscall.c,v 1.25 2007/02/21 22:59:36 thorpej Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -98,7 +98,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.24 2007/02/09 21:55:01 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.25 2007/02/21 22:59:36 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -152,7 +152,7 @@ syscall_plain(struct lwp *l, u_int64_t code, struct trapframe *framep)
u_int64_t *args, copyargs[10]; /* XXX */
u_int hidden, nargs;
struct proc *p = l->l_proc;
boolean_t needlock;
bool needlock;
LWP_CACHE_CREDS(l, p);

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_machdep.h,v 1.16 2006/05/17 21:35:45 drochner Exp $ */
/* $NetBSD: db_machdep.h,v 1.17 2007/02/21 22:59:37 thorpej Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
@ -64,13 +64,13 @@ extern db_regs_t *ddb_regp; /* pointer to current register state */
* Functions needed for software single-stepping.
*/
boolean_t db_inst_trap_return(int inst);
boolean_t db_inst_return(int inst);
boolean_t db_inst_call(int inst);
boolean_t db_inst_branch(int inst);
boolean_t db_inst_load(int inst);
boolean_t db_inst_store(int inst);
boolean_t db_inst_unconditional_flow_transfer(int inst);
bool db_inst_trap_return(int inst);
bool db_inst_return(int inst);
bool db_inst_call(int inst);
bool db_inst_branch(int inst);
bool db_inst_load(int inst);
bool db_inst_store(int inst);
bool db_inst_unconditional_flow_transfer(int inst);
db_addr_t db_branch_taken(int inst, db_addr_t pc, db_regs_t *regs);
#define inst_trap_return(ins) db_inst_trap_return(ins)

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.67 2006/04/02 03:41:32 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.68 2007/02/21 22:59:37 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -250,7 +250,7 @@ pmap_remove_all(struct pmap *pmap)
*/
#define POOL_VTOPHYS(va) ALPHA_K0SEG_TO_PHYS((vaddr_t) (va))
boolean_t pmap_pageidlezero(paddr_t);
bool pmap_pageidlezero(paddr_t);
#define PMAP_PAGEIDLEZERO(pa) pmap_pageidlezero((pa))
paddr_t vtophys(vaddr_t);

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_disasm.c,v 1.4 2005/12/11 12:16:21 christos Exp $ */
/* $NetBSD: db_disasm.c,v 1.5 2007/02/21 22:59:37 thorpej Exp $ */
/*
* Mach Operating System
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.4 2005/12/11 12:16:21 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.5 2007/02/21 22:59:37 thorpej Exp $");
#ifndef _KERNEL
#include "stubs.h"
@ -1159,7 +1159,7 @@ db_disasm_esc(loc, inst, rex, short_addr, size, seg)
db_addr_t
db_disasm(loc, altfmt)
db_addr_t loc;
boolean_t altfmt;
bool altfmt;
{
int inst;
int size;
@ -1170,7 +1170,7 @@ db_disasm(loc, altfmt)
int i_size;
int i_mode;
int regmodrm = 0;
boolean_t first;
bool first;
int displ;
int prefix;
int imm;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.28 2007/01/06 17:03:11 pavel Exp $ */
/* $NetBSD: pmap.c,v 1.29 2007/02/21 22:59:37 thorpej Exp $ */
/*
*
@ -108,7 +108,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.28 2007/01/06 17:03:11 pavel Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.29 2007/02/21 22:59:37 thorpej Exp $");
#ifndef __x86_64__
#include "opt_cputype.h"
@ -407,8 +407,8 @@ paddr_t avail_end; /* PA of last available physical page */
* other data structures
*/
static pt_entry_t protection_codes[8]; /* maps MI prot to i386 prot code */
static boolean_t pmap_initialized = FALSE; /* pmap_init done yet? */
static pt_entry_t protection_codes[8]; /* maps MI prot to i386 prot code */
static bool pmap_initialized = FALSE; /* pmap_init done yet? */
/*
* the following two vaddr_t's are used during system startup
@ -517,7 +517,7 @@ extern vaddr_t pentium_idt_vaddr;
* local prototypes
*/
static struct pv_entry *pmap_add_pvpage __P((struct pv_page *, boolean_t));
static struct pv_entry *pmap_add_pvpage __P((struct pv_page *, bool));
static struct pv_entry *pmap_alloc_pv __P((struct pmap *, int)); /* see codes below */
#define ALLOCPV_NEED 0 /* need PV now */
#define ALLOCPV_TRY 1 /* just try to allocate, don't steal */
@ -539,15 +539,15 @@ static void pmap_freepage __P((struct pmap *, struct vm_page *,
static void pmap_free_ptp __P((struct pmap *, struct vm_page *,
vaddr_t, pt_entry_t *,
pd_entry_t **, int32_t *));
static boolean_t pmap_is_curpmap __P((struct pmap *));
static boolean_t pmap_is_active __P((struct pmap *, int));
static bool pmap_is_curpmap __P((struct pmap *));
static bool pmap_is_active __P((struct pmap *, int));
static void pmap_map_ptes __P((struct pmap *, pt_entry_t **,
pd_entry_t ***));
static struct pv_entry *pmap_remove_pv __P((struct pv_head *, struct pmap *,
vaddr_t));
static void pmap_do_remove __P((struct pmap *, vaddr_t,
vaddr_t, int));
static boolean_t pmap_remove_pte __P((struct pmap *, struct vm_page *,
static bool pmap_remove_pte __P((struct pmap *, struct vm_page *,
pt_entry_t *, vaddr_t, int32_t *,
int));
static void pmap_remove_ptes __P((struct pmap *,
@ -558,8 +558,8 @@ static void pmap_remove_ptes __P((struct pmap *,
#define PMAP_REMOVE_SKIPWIRED 1 /* skip wired mappings */
static void pmap_unmap_ptes __P((struct pmap *));
static boolean_t pmap_get_physpage __P((vaddr_t, int, paddr_t *));
static boolean_t pmap_pdes_valid __P((vaddr_t, pd_entry_t **,
static bool pmap_get_physpage __P((vaddr_t, int, paddr_t *));
static bool pmap_pdes_valid __P((vaddr_t, pd_entry_t **,
pd_entry_t *));
static void pmap_alloc_level __P((pd_entry_t **, vaddr_t, int,
long *));
@ -573,7 +573,7 @@ static void pmap_alloc_level __P((pd_entry_t **, vaddr_t, int,
* of course the kernel is always loaded
*/
inline static boolean_t
inline static bool
pmap_is_curpmap(pmap)
struct pmap *pmap;
{
@ -585,7 +585,7 @@ pmap_is_curpmap(pmap)
* pmap_is_active: is this pmap loaded into the specified processor's %cr3?
*/
inline static boolean_t
inline static bool
pmap_is_active(pmap, cpu_num)
struct pmap *pmap;
int cpu_num;
@ -1365,7 +1365,7 @@ pmap_alloc_pvpage(pmap, mode)
static struct pv_entry *
pmap_add_pvpage(pvp, need_entry)
struct pv_page *pvp;
boolean_t need_entry;
bool need_entry;
{
int tofree, lcv;
@ -2067,7 +2067,7 @@ pmap_deactivate(l)
* some misc. functions
*/
static boolean_t
static bool
pmap_pdes_valid(vaddr_t va, pd_entry_t **pdes, pd_entry_t *lastpde)
{
int i;
@ -2089,7 +2089,7 @@ pmap_pdes_valid(vaddr_t va, pd_entry_t **pdes, pd_entry_t *lastpde)
* pmap_extract: extract a PA for the given VA
*/
boolean_t
bool
pmap_extract(pmap, va, pap)
struct pmap *pmap;
vaddr_t va;
@ -2222,7 +2222,7 @@ pmap_zero_page(pa)
* some reason.
*/
boolean_t
bool
pmap_pageidlezero(pa)
paddr_t pa;
{
@ -2231,7 +2231,7 @@ pmap_pageidlezero(pa)
#endif
pt_entry_t *zpte = PTESLEW(zero_pte, id);
caddr_t zerova = VASLEW(zerop, id);
boolean_t rv = TRUE;
bool rv = TRUE;
int i, *ptr;
#ifdef DIAGNOSTIC
@ -2405,7 +2405,7 @@ pmap_remove_ptes(pmap, ptp, ptpva, startva, endva, cpumaskp, flags)
* => returns true if we removed a mapping
*/
static boolean_t
static bool
pmap_remove_pte(pmap, ptp, pte, va, cpumaskp, flags)
struct pmap *pmap;
struct vm_page *ptp;
@ -2498,7 +2498,7 @@ pmap_do_remove(pmap, sva, eva, flags)
{
pt_entry_t *ptes;
pd_entry_t **pdes, pde;
boolean_t result;
bool result;
paddr_t ptppa;
vaddr_t blkendva;
struct vm_page *ptp;
@ -2714,7 +2714,7 @@ pmap_page_remove(pg)
* => we set pv_head => pmap locking
*/
boolean_t
bool
pmap_test_attrs(pg, testbits)
struct vm_page *pg;
unsigned testbits;
@ -2777,7 +2777,7 @@ pmap_test_attrs(pg, testbits)
* => we return TRUE if we cleared one of the bits we were asked to
*/
boolean_t
bool
pmap_clear_attrs(pg, clearbits)
struct vm_page *pg;
unsigned clearbits;
@ -3023,7 +3023,7 @@ pmap_enter(pmap, va, pa, prot, flags)
struct pv_entry *pve;
int bank, off, error;
int ptpdelta, wireddelta, resdelta;
boolean_t wired = (flags & PMAP_WIRED) != 0;
bool wired = (flags & PMAP_WIRED) != 0;
KASSERT(pmap_initialized);
@ -3230,7 +3230,7 @@ out:
return error;
}
static boolean_t
static bool
pmap_get_physpage(va, level, paddrp)
vaddr_t va;
int level;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_machdep.h,v 1.5 2006/06/26 14:11:29 christos Exp $ */
/* $NetBSD: db_machdep.h,v 1.6 2007/02/21 22:59:37 thorpej Exp $ */
/*
* Mach Operating System
@ -95,8 +95,8 @@ extern db_regs_t *ddb_regp;
((user) && (addr) < VM_MAX_ADDRESS))
#if 0
boolean_t db_check_access __P((vaddr_t, int, task_t));
boolean_t db_phys_eq __P((task_t, vaddr_t, task_t, vaddr_t));
bool db_check_access __P((vaddr_t, int, task_t));
bool db_phys_eq __P((task_t, vaddr_t, task_t, vaddr_t));
#endif
/* macros for printing OS server dependent task name */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.9 2006/02/16 20:17:13 perry Exp $ */
/* $NetBSD: pmap.h,v 1.10 2007/02/21 22:59:37 thorpej Exp $ */
/*
*
@ -422,14 +422,14 @@ extern long nkptp[], nbpd[], nkptpmax[];
void pmap_activate __P((struct lwp *));
void pmap_bootstrap __P((vaddr_t));
boolean_t pmap_clear_attrs __P((struct vm_page *, unsigned));
bool pmap_clear_attrs __P((struct vm_page *, unsigned));
void pmap_deactivate __P((struct lwp *));
static void pmap_page_protect __P((struct vm_page *, vm_prot_t));
void pmap_page_remove __P((struct vm_page *));
static void pmap_protect __P((struct pmap *, vaddr_t,
vaddr_t, vm_prot_t));
void pmap_remove __P((struct pmap *, vaddr_t, vaddr_t));
boolean_t pmap_test_attrs __P((struct vm_page *, unsigned));
bool pmap_test_attrs __P((struct vm_page *, unsigned));
static void pmap_update_pg __P((vaddr_t));
static void pmap_update_2pg __P((vaddr_t,vaddr_t));
void pmap_write_protect __P((struct pmap *, vaddr_t,
@ -448,7 +448,7 @@ void pmap_prealloc_lowmem_ptps __P((void));
/*
* Do idle page zero'ing uncached to avoid polluting the cache.
*/
boolean_t pmap_pageidlezero __P((paddr_t));
bool pmap_pageidlezero __P((paddr_t));
#define PMAP_PAGEIDLEZERO(pa) pmap_pageidlezero((pa))
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.118 2006/09/14 01:27:59 mhitch Exp $ */
/* $NetBSD: pmap.c,v 1.119 2007/02/21 22:59:37 thorpej Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -107,7 +107,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.118 2006/09/14 01:27:59 mhitch Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.119 2007/02/21 22:59:37 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -285,7 +285,7 @@ vsize_t mem_size; /* memory size in bytes */
vaddr_t virtual_avail; /* VA of first avail page (after kernel bss)*/
vaddr_t virtual_end; /* VA of last avail page (end of kernel AS) */
int page_cnt; /* number of pages managed by the VM system */
boolean_t pmap_initialized = FALSE; /* Has pmap_init completed? */
bool pmap_initialized = FALSE; /* Has pmap_init completed? */
char *pmap_attributes; /* reference and modify bits */
TAILQ_HEAD(pv_page_list, pv_page) pv_page_freelist;
int pv_nfree;
@ -304,11 +304,11 @@ extern paddr_t z2mem_start;
extern vaddr_t reserve_dumppages(vaddr_t);
boolean_t pmap_testbit(paddr_t, int);
bool pmap_testbit(paddr_t, int);
void pmap_enter_ptpage(pmap_t, vaddr_t);
static void pmap_ptpage_addref(vaddr_t);
static int pmap_ptpage_delref(vaddr_t);
static void pmap_changebit(vaddr_t, int, boolean_t);
static void pmap_changebit(vaddr_t, int, bool);
struct pv_entry * pmap_alloc_pv(void);
void pmap_free_pv(struct pv_entry *);
void pmap_pinit(pmap_t);
@ -1035,7 +1035,7 @@ pmap_protect(pmap, sva, eva, prot)
{
u_int *pte;
vaddr_t va;
boolean_t needtflush;
bool needtflush;
int isro;
#ifdef DEBUG
@ -1115,9 +1115,9 @@ pmap_enter(pmap, va, pa, prot, flags)
u_int *pte;
int npte;
paddr_t opa;
boolean_t cacheable = TRUE;
boolean_t checkpv = TRUE;
boolean_t wired = (flags & PMAP_WIRED) != 0;
bool cacheable = TRUE;
bool checkpv = TRUE;
bool wired = (flags & PMAP_WIRED) != 0;
#ifdef DEBUG
if (pmapdebug & (PDB_FOLLOW|PDB_ENTER))
@ -1562,13 +1562,13 @@ pmap_unwire(pmap, va)
* with the given map/virtual_address pair.
*/
boolean_t
bool
pmap_extract(pmap, va, pap)
pmap_t pmap;
vaddr_t va;
paddr_t *pap;
{
boolean_t rv = FALSE;
bool rv = FALSE;
paddr_t pa = 0;
u_int pte;
@ -1900,11 +1900,11 @@ pmap_copy_page(src, dst)
* Clear the modify bits on the specified physical page.
*/
boolean_t
bool
pmap_clear_modify(pg)
struct vm_page *pg;
{
boolean_t rv;
bool rv;
paddr_t pa = VM_PAGE_TO_PHYS(pg);
#ifdef DEBUG
@ -1923,11 +1923,11 @@ pmap_clear_modify(pg)
* Clear the reference bit on the specified physical page.
*/
boolean_t
bool
pmap_clear_reference(pg)
struct vm_page *pg;
{
boolean_t rv;
bool rv;
paddr_t pa = VM_PAGE_TO_PHYS(pg);
#ifdef DEBUG
@ -1947,7 +1947,7 @@ pmap_clear_reference(pg)
* by any physical maps.
*/
boolean_t
bool
pmap_is_referenced(pg)
struct vm_page *pg;
{
@ -1955,7 +1955,7 @@ pmap_is_referenced(pg)
#ifdef DEBUG
if (pmapdebug & PDB_FOLLOW) {
boolean_t rv = pmap_testbit(pa, PG_U);
bool rv = pmap_testbit(pa, PG_U);
printf("pmap_is_referenced(%lx) -> %c\n", pa, "FT"[rv]);
return(rv);
}
@ -1970,7 +1970,7 @@ pmap_is_referenced(pg)
* by any physical maps.
*/
boolean_t
bool
pmap_is_modified(pg)
struct vm_page *pg;
{
@ -1978,7 +1978,7 @@ pmap_is_modified(pg)
#ifdef DEBUG
if (pmapdebug & PDB_FOLLOW) {
boolean_t rv = pmap_testbit(pa, PG_M);
bool rv = pmap_testbit(pa, PG_M);
printf("pmap_is_modified(%lx) -> %c\n", pa, "FT"[rv]);
return(rv);
}
@ -2323,7 +2323,7 @@ amiga_protection_init()
}
/* static */
boolean_t
bool
pmap_testbit(pa, bit)
paddr_t pa;
int bit;
@ -2366,12 +2366,12 @@ static void
pmap_changebit(pa, bit, setem)
paddr_t pa;
int bit;
boolean_t setem;
bool setem;
{
pv_entry_t pv;
int *pte, npte;
vaddr_t va;
boolean_t firstpage;
bool firstpage;
int s;
firstpage = TRUE;

View File

@ -1,4 +1,4 @@
/* $NetBSD: wired_map_machdep.c,v 1.3 2006/06/25 16:52:01 tsutsui Exp $ */
/* $NetBSD: wired_map_machdep.c,v 1.4 2007/02/21 22:59:38 thorpej Exp $ */
/*-
* Copyright (C) 2000 Shuichiro URATA. All rights reserved.
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: wired_map_machdep.c,v 1.3 2006/06/25 16:52:01 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: wired_map_machdep.c,v 1.4 2007/02/21 22:59:38 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -41,9 +41,9 @@ __KERNEL_RCSID(0, "$NetBSD: wired_map_machdep.c,v 1.3 2006/06/25 16:52:01 tsutsu
#include <mips/locore.h>
#include <mips/pte.h>
static boolean_t arc_wired_map_paddr_entry(paddr_t pa, vaddr_t *vap,
static bool arc_wired_map_paddr_entry(paddr_t pa, vaddr_t *vap,
vsize_t *sizep);
static boolean_t arc_wired_map_vaddr_entry(vaddr_t va, paddr_t *pap,
static bool arc_wired_map_vaddr_entry(vaddr_t va, paddr_t *pap,
vsize_t *sizep);
static struct extent *arc_wired_map_ex;
@ -88,7 +88,7 @@ arc_wired_enter_page(vaddr_t va, paddr_t pa, vaddr_t pg_size)
mips3_wired_enter_page(va, pa, pg_size);
}
static boolean_t
static bool
arc_wired_map_paddr_entry(paddr_t pa, vaddr_t *vap, vsize_t *sizep)
{
vsize_t size;
@ -115,7 +115,7 @@ arc_wired_map_paddr_entry(paddr_t pa, vaddr_t *vap, vsize_t *sizep)
}
/* XXX: Using tlbp makes this easier... */
static boolean_t
static bool
arc_wired_map_vaddr_entry(vaddr_t va, paddr_t *pap, vsize_t *sizep)
{
vsize_t size;
@ -203,7 +203,7 @@ arc_map_wired(paddr_t pa, vsize_t size)
return va + off;
}
boolean_t
bool
arc_wired_map_extract(vaddr_t va, paddr_t *pap)
{
paddr_t pa;

View File

@ -1,4 +1,4 @@
/* $NetBSD: wired_map.h,v 1.2 2005/12/11 12:16:39 christos Exp $ */
/* $NetBSD: wired_map.h,v 1.3 2007/02/21 22:59:38 thorpej Exp $ */
/*-
* Copyright (C) 2000 Shuichiro URATA. All rights reserved.
@ -39,4 +39,4 @@ void arc_init_wired_map(void);
void arc_wired_enter_page(vaddr_t, paddr_t, vsize_t);
vaddr_t arc_contiguously_wired_mapped(paddr_t, vsize_t);
vaddr_t arc_map_wired(paddr_t, vsize_t);
boolean_t arc_wired_map_extract(vaddr_t, paddr_t *);
bool arc_wired_map_extract(vaddr_t, paddr_t *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_disasm.c,v 1.5 2005/12/11 12:16:41 christos Exp $ */
/* $NetBSD: db_disasm.c,v 1.6 2007/02/21 22:59:38 thorpej Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe.
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.5 2005/12/11 12:16:41 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.6 2007/02/21 22:59:38 thorpej Exp $");
#include <sys/param.h>
#include <machine/db_machdep.h>
@ -70,7 +70,7 @@ db_disasm_printaddr(u_int address)
}
vaddr_t
db_disasm(vaddr_t loc, boolean_t altfmt)
db_disasm(vaddr_t loc, bool altfmt)
{
return disasm(&db_disasm_interface, loc, altfmt);

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.158 2007/01/06 00:40:47 christos Exp $ */
/* $NetBSD: pmap.c,v 1.159 2007/02/21 22:59:38 thorpej Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@ -212,7 +212,7 @@
#include <machine/param.h>
#include <arm/arm32/katelib.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.158 2007/01/06 00:40:47 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.159 2007/02/21 22:59:38 thorpej Exp $");
#ifdef PMAP_DEBUG
@ -312,7 +312,7 @@ extern caddr_t msgbufaddr;
/*
* Flag to indicate if pmap_init() has done its thing
*/
boolean_t pmap_initialized;
bool pmap_initialized;
/*
* Misc. locking data structures
@ -484,8 +484,8 @@ struct pv_entry {
static int pmap_set_pt_cache_mode(pd_entry_t *, vaddr_t);
static void pmap_alloc_specials(vaddr_t *, int, vaddr_t *,
pt_entry_t **);
static boolean_t pmap_is_current(pmap_t);
static boolean_t pmap_is_cached(pmap_t);
static bool pmap_is_current(pmap_t);
static bool pmap_is_cached(pmap_t);
static void pmap_enter_pv(struct vm_page *, struct pv_entry *,
pmap_t, vaddr_t, u_int);
static struct pv_entry *pmap_find_pv(struct vm_page *, pmap_t, vaddr_t);
@ -511,7 +511,7 @@ static void pmap_vac_me_kpmap(struct vm_page *, pmap_t, vaddr_t);
static void pmap_vac_me_user(struct vm_page *, pmap_t, vaddr_t);
static void pmap_clearbit(struct vm_page *, u_int);
static int pmap_clean_page(struct pv_entry *, boolean_t);
static int pmap_clean_page(struct pv_entry *, bool);
static void pmap_page_remove(struct vm_page *);
static void pmap_init_l1(struct l1_ttable *, pd_entry_t *);
@ -598,7 +598,7 @@ pmap_idcache_wbinv_range(pmap_t pm, vaddr_t va, vsize_t len)
static inline void
pmap_dcache_wb_range(pmap_t pm, vaddr_t va, vsize_t len,
boolean_t do_inv, boolean_t rd_only)
bool do_inv, bool rd_only)
{
if (pm->pm_cstate.cs_cache_d) {
@ -633,7 +633,7 @@ pmap_dcache_wbinv_all(pmap_t pm)
}
}
static inline boolean_t
static inline bool
pmap_is_current(pmap_t pm)
{
@ -644,7 +644,7 @@ pmap_is_current(pmap_t pm)
return (FALSE);
}
static inline boolean_t
static inline bool
pmap_is_cached(pmap_t pm)
{
@ -1000,7 +1000,7 @@ static inline void
#ifndef PMAP_INCLUDE_PTE_SYNC
pmap_free_l2_ptp(pt_entry_t *l2, paddr_t pa)
#else
pmap_free_l2_ptp(boolean_t need_sync, pt_entry_t *l2, paddr_t pa)
pmap_free_l2_ptp(bool need_sync, pt_entry_t *l2, paddr_t pa)
#endif
{
#ifdef PMAP_INCLUDE_PTE_SYNC
@ -1722,7 +1722,7 @@ pmap_clearbit(struct vm_page *pg, u_int maskbits)
* it will just result in not the most efficient clean for the page.
*/
static int
pmap_clean_page(struct pv_entry *pv, boolean_t is_src)
pmap_clean_page(struct pv_entry *pv, bool is_src)
{
pmap_t pm, pm_to_clean = NULL;
struct pv_entry *npv;
@ -1803,7 +1803,7 @@ pmap_page_remove(struct vm_page *pg)
struct pv_entry *pv, *npv;
pmap_t pm, curpm;
pt_entry_t *ptep, pte;
boolean_t flush;
bool flush;
u_int flags;
NPDEBUG(PDB_FOLLOW,
@ -2173,7 +2173,7 @@ pmap_enter(pmap_t pm, vaddr_t va, paddr_t pa, vm_prot_t prot, int flags)
* identical, so there's no need to update the page table.
*/
if (npte != opte) {
boolean_t is_cached = pmap_is_cached(pm);
bool is_cached = pmap_is_cached(pm);
*ptep = npte;
if (is_cached) {
@ -2515,7 +2515,7 @@ pmap_kremove(vaddr_t va, vsize_t len)
cpu_cpwait();
}
boolean_t
bool
pmap_extract(pmap_t pm, vaddr_t va, paddr_t *pap)
{
struct l2_dtable *l2;
@ -2702,10 +2702,10 @@ pmap_page_protect(struct vm_page *pg, vm_prot_t prot)
*
* Clear the "modified" attribute for a page.
*/
boolean_t
bool
pmap_clear_modify(struct vm_page *pg)
{
boolean_t rv;
bool rv;
if (pg->mdpage.pvh_attrs & PVF_MOD) {
rv = TRUE;
@ -2721,10 +2721,10 @@ pmap_clear_modify(struct vm_page *pg)
*
* Clear the "referenced" attribute for a page.
*/
boolean_t
bool
pmap_clear_reference(struct vm_page *pg)
{
boolean_t rv;
bool rv;
if (pg->mdpage.pvh_attrs & PVF_REF) {
rv = TRUE;
@ -3337,12 +3337,12 @@ pmap_zero_page_xscale(paddr_t phys)
* mapped. This means we never have to flush the cache first. Called
* from the idle loop.
*/
boolean_t
bool
pmap_pageidlezero(paddr_t phys)
{
unsigned int i;
int *ptr;
boolean_t rv = TRUE;
bool rv = TRUE;
#ifdef DEBUG
struct vm_page *pg;
@ -3737,7 +3737,7 @@ pmap_set_pcb_pagedir(pmap_t pm, struct pcb *pcb)
* NOTE: We can return a NULL *ptp in the case where the L1 pde is
* a "section" mapping.
*/
boolean_t
bool
pmap_get_pde_pte(pmap_t pm, vaddr_t va, pd_entry_t **pdp, pt_entry_t **ptp)
{
struct l2_dtable *l2;
@ -3771,7 +3771,7 @@ pmap_get_pde_pte(pmap_t pm, vaddr_t va, pd_entry_t **pdp, pt_entry_t **ptp)
return (TRUE);
}
boolean_t
bool
pmap_get_pde(pmap_t pm, vaddr_t va, pd_entry_t **pdp)
{
u_short l1idx;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.79 2005/12/24 20:06:52 perry Exp $ */
/* $NetBSD: pmap.h,v 1.80 2007/02/21 22:59:38 thorpej Exp $ */
/*
* Copyright (c) 2002, 2003 Wasabi Systems, Inc.
@ -170,7 +170,7 @@ struct pmap_devmap {
*/
struct pmap {
u_int8_t pm_domain;
boolean_t pm_remove_all;
bool pm_remove_all;
struct l1_ttable *pm_l1;
union pmap_cache_state pm_cstate;
struct uvm_object pm_obj;
@ -252,7 +252,7 @@ extern int pmap_debug_level; /* Only exists if PMAP_DEBUG */
*/
void pmap_procwr(struct proc *, vaddr_t, int);
void pmap_remove_all(pmap_t);
boolean_t pmap_extract(pmap_t, vaddr_t, paddr_t *);
bool pmap_extract(pmap_t, vaddr_t, paddr_t *);
#define PMAP_NEED_PROCWR
#define PMAP_GROWKERNEL /* turn on pmap_growkernel interface */
@ -262,8 +262,8 @@ void pmap_bootstrap(pd_entry_t *, vaddr_t, vaddr_t);
void pmap_do_remove(pmap_t, vaddr_t, vaddr_t, int);
int pmap_fault_fixup(pmap_t, vaddr_t, vm_prot_t, int);
boolean_t pmap_get_pde_pte(pmap_t, vaddr_t, pd_entry_t **, pt_entry_t **);
boolean_t pmap_get_pde(pmap_t, vaddr_t, pd_entry_t **);
bool pmap_get_pde_pte(pmap_t, vaddr_t, pd_entry_t **, pt_entry_t **);
bool pmap_get_pde(pmap_t, vaddr_t, pd_entry_t **);
void pmap_set_pcb_pagedir(pmap_t, struct pcb *);
void pmap_debug(int);
@ -285,7 +285,7 @@ void pmap_devmap_register(const struct pmap_devmap *);
/*
* Special page zero routine for use by the idle loop (no cache cleans).
*/
boolean_t pmap_pageidlezero(paddr_t);
bool pmap_pageidlezero(paddr_t);
#define PMAP_PAGEIDLEZERO(pa) pmap_pageidlezero((pa))
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: pxa2x0.c,v 1.15 2006/12/17 16:03:33 peter Exp $ */
/* $NetBSD: pxa2x0.c,v 1.16 2007/02/21 22:59:39 thorpej Exp $ */
/*
* Copyright (c) 2002, 2005 Genetec Corporation. All rights reserved.
@ -94,7 +94,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pxa2x0.c,v 1.15 2006/12/17 16:03:33 peter Exp $");
__KERNEL_RCSID(0, "$NetBSD: pxa2x0.c,v 1.16 2007/02/21 22:59:39 thorpej Exp $");
#include "pxaintc.h"
#include "pxagpio.h"
@ -481,7 +481,7 @@ pxa2x0_clkman_bootstrap(vaddr_t va)
}
void
pxa2x0_clkman_config(u_int clk, boolean_t enable)
pxa2x0_clkman_config(u_int clk, bool enable)
{
struct pxaip_softc *sc;
bus_space_tag_t iot;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pxa2x0_dmac.h,v 1.2 2005/12/11 12:16:52 christos Exp $ */
/* $NetBSD: pxa2x0_dmac.h,v 1.3 2007/02/21 22:59:39 thorpej Exp $ */
/*
* Copyright (c) 2003, 2005 Wasabi Systems, Inc.
@ -97,7 +97,7 @@ struct dmac_xfer_desc {
* and the first dma segment in xd_dma_segs must have a non-zero
* ds_len field.
*/
boolean_t xd_addr_hold;
bool xd_addr_hold;
u_int xd_nsegs;
bus_dma_segment_t *xd_dma_segs;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pxa2x0var.h,v 1.4 2006/12/17 16:03:33 peter Exp $ */
/* $NetBSD: pxa2x0var.h,v 1.5 2007/02/21 22:59:39 thorpej Exp $ */
/*
* Copyright (c) 2002 Genetec Corporation. All rights reserved.
@ -87,6 +87,6 @@ extern void pxa2x0_memctl_write(int, uint32_t);
* CKEN register.
*/
extern void pxa2x0_clkman_bootstrap(vaddr_t);
extern void pxa2x0_clkman_config(u_int, boolean_t);
extern void pxa2x0_clkman_config(u_int, bool);
#endif /* _ARM_XSCALE_PXA2X0VAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.94 2006/09/16 18:53:53 mhitch Exp $ */
/* $NetBSD: pmap.c,v 1.95 2007/02/21 22:59:39 thorpej Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -107,7 +107,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.94 2006/09/16 18:53:53 mhitch Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.95 2007/02/21 22:59:39 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -285,7 +285,7 @@ paddr_t avail_end; /* PA of last available physical page */
vaddr_t virtual_avail; /* VA of first avail page (after kernel bss)*/
vaddr_t virtual_end; /* VA of last avail page (end of kernel AS) */
int page_cnt; /* number of pages managed by the VM system */
boolean_t pmap_initialized = FALSE; /* Has pmap_init completed? */
bool pmap_initialized = FALSE; /* Has pmap_init completed? */
char *pmap_attributes; /* reference and modify bits */
TAILQ_HEAD(pv_page_list, pv_page) pv_page_freelist;
int pv_nfree;
@ -297,7 +297,7 @@ int protostfree; /* prototype (default) free ST map */
extern caddr_t msgbufaddr;
extern vaddr_t msgbufpa;
static boolean_t pmap_testbit __P((paddr_t, int));
static bool pmap_testbit __P((paddr_t, int));
static void pmap_enter_ptpage __P((pmap_t, vaddr_t));
static struct pv_entry* pmap_alloc_pv __P((void));
static void pmap_free_pv __P((struct pv_entry *));
@ -995,7 +995,7 @@ pmap_protect(pmap, sva, eva, prot)
{
register u_int *pte;
register vaddr_t va;
boolean_t needtflush;
bool needtflush;
int isro;
#ifdef DEBUG
@ -1075,9 +1075,9 @@ pmap_enter(pmap, va, pa, prot, flags)
register u_int *pte;
register int npte;
paddr_t opa;
boolean_t cacheable = TRUE;
boolean_t checkpv = TRUE;
boolean_t wired = (flags & PMAP_WIRED) != 0;
bool cacheable = TRUE;
bool checkpv = TRUE;
bool wired = (flags & PMAP_WIRED) != 0;
#ifdef DEBUG
if (pmapdebug & (PDB_FOLLOW|PDB_ENTER))
@ -1516,13 +1516,13 @@ pmap_unwire(pmap, va)
* with the given map/virtual_address pair.
*/
boolean_t
bool
pmap_extract(pmap, va, pap)
register pmap_t pmap;
vaddr_t va;
paddr_t *pap;
{
boolean_t rv = FALSE;
bool rv = FALSE;
paddr_t pa;
u_int pte;
@ -1854,12 +1854,12 @@ pmap_copy_page(src, dst)
* Clear the modify bits on the specified physical page.
*/
boolean_t
bool
pmap_clear_modify(pg)
struct vm_page *pg;
{
paddr_t pa = VM_PAGE_TO_PHYS(pg);
boolean_t rv;
bool rv;
#ifdef DEBUG
if (pmapdebug & PDB_FOLLOW)
@ -1876,12 +1876,12 @@ pmap_clear_modify(pg)
* Clear the reference bit on the specified physical page.
*/
boolean_t
bool
pmap_clear_reference(pg)
struct vm_page *pg;
{
paddr_t pa = VM_PAGE_TO_PHYS(pg);
boolean_t rv;
bool rv;
#ifdef DEBUG
if (pmapdebug & PDB_FOLLOW)
@ -1899,7 +1899,7 @@ pmap_clear_reference(pg)
* by any physical maps.
*/
boolean_t
bool
pmap_is_referenced(pg)
struct vm_page *pg;
{
@ -1907,7 +1907,7 @@ pmap_is_referenced(pg)
#ifdef DEBUG
if (pmapdebug & PDB_FOLLOW) {
boolean_t rv = pmap_testbit(pa, PG_U);
bool rv = pmap_testbit(pa, PG_U);
printf("pmap_is_referenced(%lx) -> %c\n", pa, "FT"[rv]);
return(rv);
}
@ -1922,7 +1922,7 @@ pmap_is_referenced(pg)
* by any physical maps.
*/
boolean_t
bool
pmap_is_modified(pg)
struct vm_page *pg;
{
@ -1930,7 +1930,7 @@ pmap_is_modified(pg)
#ifdef DEBUG
if (pmapdebug & PDB_FOLLOW) {
boolean_t rv = pmap_testbit(pa, PG_M);
bool rv = pmap_testbit(pa, PG_M);
printf("pmap_is_modified(%lx) -> %c\n", pa, "FT"[rv]);
return(rv);
}
@ -2275,7 +2275,7 @@ atari_protection_init()
}
}
static boolean_t
static bool
pmap_testbit(pa, bit)
register paddr_t pa;
int bit;
@ -2318,13 +2318,13 @@ void
pmap_changebit(pa, bit, setem)
register paddr_t pa;
int bit;
boolean_t setem;
bool setem;
{
register pv_entry_t pv;
register int *pte, npte;
vaddr_t va;
int s;
boolean_t firstpage;
bool firstpage;
firstpage = TRUE;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.34 2006/02/16 20:17:13 perry Exp $ */
/* $NetBSD: pmap.h,v 1.35 2007/02/21 22:59:40 thorpej Exp $ */
/*
* Copyright (c) 1991 Regents of the University of California.
@ -199,7 +199,7 @@ pmap_remove_all(struct pmap *pmap)
(pm) != pmap_kernel() && (pm) == curproc->p_vmspace->vm_map.pmap)
void pmap_bootstrap __P((psize_t, u_int, u_int));
void pmap_changebit __P((paddr_t, int, boolean_t));
void pmap_changebit __P((paddr_t, int, bool));
vaddr_t pmap_map __P((vaddr_t, paddr_t, paddr_t, int));
void pmap_procwr __P((struct proc *, vaddr_t, u_long));

View File

@ -1,4 +1,4 @@
/* $NetBSD: pstwo.c,v 1.1 2006/12/02 22:18:47 freza Exp $ */
/* $NetBSD: pstwo.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $ */
/*
* Copyright (c) 2006 Jachym Holecek
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pstwo.c,v 1.1 2006/12/02 22:18:47 freza Exp $");
__KERNEL_RCSID(0, "$NetBSD: pstwo.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -68,7 +68,7 @@ struct pstwo_softc {
};
static int pstwo_intr(void *);
static void pstwo_reset(bus_space_tag_t, bus_space_handle_t, boolean_t);
static void pstwo_reset(bus_space_tag_t, bus_space_handle_t, bool);
#if 0
static void pstwo_printreg(struct pstwo_softc *);
#endif
@ -168,7 +168,7 @@ pstwo_intr(void *arg)
}
static void
pstwo_reset(bus_space_tag_t iot, bus_space_handle_t ioh, boolean_t restart)
pstwo_reset(bus_space_tag_t iot, bus_space_handle_t ioh, bool restart)
{
bus_space_write_4(iot, ioh, PSTWO_CTRL, CTRL_RESET);
@ -187,7 +187,7 @@ pstwo_reset(bus_space_tag_t iot, bus_space_handle_t ioh, boolean_t restart)
* Return zero on success, one on timeout.
*/
static int
pstwo_wait(struct pstwo_softc *sc, uint32_t mask, boolean_t set)
pstwo_wait(struct pstwo_softc *sc, uint32_t mask, bool set)
{
uint32_t val = (set ? mask : 0);
int i = 1000;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ewskbd.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $ */
/* $NetBSD: ewskbd.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $ */
/*
* Copyright (c) 2005 Izumi Tsutsui
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ewskbd.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: ewskbd.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@ -549,7 +549,7 @@ static void
ewskbd_wskbd_pollc(void *cookie, int on)
{
static boolean_t __polling = FALSE;
static bool __polling = FALSE;
static int s;
if (on && !__polling) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: ewsms.c,v 1.2 2006/11/12 19:00:43 plunky Exp $ */
/* $NetBSD: ewsms.c,v 1.3 2007/02/21 22:59:40 thorpej Exp $ */
/*
* Copyright (c) 2004 Steve Rumble
@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ewsms.c,v 1.2 2006/11/12 19:00:43 plunky Exp $");
__KERNEL_RCSID(0, "$NetBSD: ewsms.c,v 1.3 2007/02/21 22:59:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -317,7 +317,7 @@ static void
ewsms_wsmouse_input(struct ewsms_softc *sc)
{
u_int btns;
boolean_t bl, bm, br;
bool bl, bm, br;
int dx, dy;
btns = (uint8_t)sc->sc_packet[EWSMS_PACKET_SYNC] & EWSMS_SYNC_BTN_MASK;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ga.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $ */
/* $NetBSD: ga.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $ */
/*-
* Copyright (c) 2004, 2005 The NetBSD Foundation, Inc.
@ -39,7 +39,7 @@
/* Graphic Adaptor (350, 360) */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ga.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: ga.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -56,7 +56,7 @@ __KERNEL_RCSID(0, "$NetBSD: ga.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $");
#include <machine/gareg.h>
#include <machine/gavar.h>
boolean_t ga_map(struct ga *);
bool ga_map(struct ga *);
void ga_clut_init(struct ga *);
void ga_vblank_start(const struct ga *);
void ga_bt463_reg(const struct ga *, int);
@ -75,7 +75,7 @@ void ga_plane_mask_test(const struct ga *);
#define ga_reg_read(ga, ofs) \
(*(volatile uint32_t *)((ga)->reg_addr + (ofs)))
boolean_t
bool
ga_init(struct ga *ga)
{
int i;
@ -163,7 +163,7 @@ ga_init(struct ga *ga)
return TRUE;
}
boolean_t
bool
ga_map(struct ga *ga)
{
#ifdef _STANDALONE

View File

@ -1,4 +1,4 @@
/* $NetBSD: cons_machdep.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $ */
/* $NetBSD: cons_machdep.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $ */
/*-
* Copyright (c) 2004, 2005 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cons_machdep.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: cons_machdep.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -169,7 +169,7 @@ rom_cngetc(dev_t dev)
void
rom_cnpollc(dev_t dev, int on)
{
static boolean_t __polling = FALSE;
static bool __polling = FALSE;
static int s;
if (on && !__polling) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: disklabel_conv.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $ */
/* $NetBSD: disklabel_conv.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: disklabel_conv.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: disklabel_conv.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $");
#include <sys/systm.h>
#include <sys/param.h>
@ -280,7 +280,7 @@ vtoc_to_disklabel(struct cpu_disklabel *ux, struct disklabel *d)
d->d_checksum = dkcksum(d);
}
boolean_t
bool
disklabel_sanity(struct disklabel *d)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: disksubr.c,v 1.2 2006/11/25 11:59:58 scw Exp $ */
/* $NetBSD: disksubr.c,v 1.3 2007/02/21 22:59:40 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.2 2006/11/25 11:59:58 scw Exp $");
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.3 2007/02/21 22:59:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -62,8 +62,8 @@ readdisklabel(dev_t dev, void (*strategy)(struct buf *), struct disklabel *d,
uint8_t buf[DEV_BSIZE];
struct pdinfo_sector *pdinfo = &ux->pdinfo;
struct vtoc_sector *vtoc = &ux->vtoc;
boolean_t disklabel_available = FALSE;
boolean_t vtoc_available = FALSE;
bool disklabel_available = FALSE;
bool vtoc_available = FALSE;
void *rwops;
if ((rwops = sector_init(dev, strategy)) == 0)

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.2 2006/02/25 02:28:56 wiz Exp $ */
/* $NetBSD: machdep.c,v 1.3 2007/02/21 22:59:40 thorpej Exp $ */
/*-
* Copyright (c) 2001, 2004, 2005 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.2 2006/02/25 02:28:56 wiz Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.3 2007/02/21 22:59:40 thorpej Exp $");
#include "opt_ddb.h"
@ -176,7 +176,7 @@ void
option(int argc, char *argv[], struct bootinfo *bi)
{
extern char __boot_kernel_name[];
boolean_t boot_device_set;
bool boot_device_set;
char *p;
int i;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pdinfo.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $ */
/* $NetBSD: pdinfo.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pdinfo.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: pdinfo.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@ -55,7 +55,7 @@ __KERNEL_RCSID(0, "$NetBSD: pdinfo.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $");
#include <machine/sector.h>
#include <machine/pdinfo.h>
boolean_t
bool
pdinfo_sector(void *rwops, struct pdinfo_sector *pdinfo)
{
@ -68,14 +68,14 @@ pdinfo_sector(void *rwops, struct pdinfo_sector *pdinfo)
return TRUE;
}
boolean_t
bool
pdinfo_valid(const struct pdinfo_sector *disk)
{
return disk->magic == PDINFO_MAGIC;
}
boolean_t
bool
pdinfo_sanity(const struct pdinfo_sector *disk)
{
const struct disk_geometory *geom;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sector.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $ */
/* $NetBSD: sector.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sector.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: sector.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -47,7 +47,7 @@ __KERNEL_RCSID(0, "$NetBSD: sector.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $");
struct sector_rw {
struct buf *buf;
void (*strategy)(struct buf *);
boolean_t busy;
bool busy;
} __context;
void *
@ -74,7 +74,7 @@ sector_fini(void *self)
rw->busy = FALSE;
}
boolean_t
bool
sector_read_n(void *self, uint8_t *buf, daddr_t sector, int count)
{
int i;
@ -89,7 +89,7 @@ sector_read_n(void *self, uint8_t *buf, daddr_t sector, int count)
return TRUE;
}
boolean_t
bool
sector_read(void *self, uint8_t *buf, daddr_t sector)
{
struct sector_rw *rw = self;
@ -110,7 +110,7 @@ sector_read(void *self, uint8_t *buf, daddr_t sector)
return TRUE;
}
boolean_t
bool
sector_write_n(void *self, uint8_t *buf, daddr_t sector, int count)
{
int i;
@ -125,7 +125,7 @@ sector_write_n(void *self, uint8_t *buf, daddr_t sector, int count)
return TRUE;
}
boolean_t
bool
sector_write(void *self, uint8_t *buf, daddr_t sector)
{
struct sector_rw *rw = self;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vtoc.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $ */
/* $NetBSD: vtoc.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vtoc.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: vtoc.c,v 1.2 2007/02/21 22:59:40 thorpej Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@ -60,7 +60,7 @@ __KERNEL_RCSID(0, "$NetBSD: vtoc.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $");
void vtoc_print_partition_table(const struct ux_partition *);
#endif /* VTOC_DEBUG */
boolean_t
bool
vtoc_sector(void *rwops, struct vtoc_sector *vtoc, int start)
{
@ -95,14 +95,14 @@ vtoc_find_bfs(const struct vtoc_sector *vtoc)
return &vtoc->partition[i];
}
boolean_t
bool
vtoc_valid(const struct vtoc_sector *vtoc)
{
return (vtoc->magic == VTOC_MAGIC) && (vtoc->version == VTOC_VERSION);
}
boolean_t
bool
vtoc_sanity(const struct vtoc_sector *vtoc)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: disklabel.h,v 1.1 2005/12/29 15:20:08 tsutsui Exp $ */
/* $NetBSD: disklabel.h,v 1.2 2007/02/21 22:59:41 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -79,7 +79,7 @@ void vtoc_set_default(struct cpu_disklabel *, struct disklabel *);
void disklabel_to_vtoc(struct cpu_disklabel *, struct disklabel *);
void vtoc_to_disklabel(struct cpu_disklabel *, struct disklabel *);
void disklabel_set_default(struct disklabel *);
boolean_t disklabel_sanity(struct disklabel *);
bool disklabel_sanity(struct disklabel *);
#endif
#endif /* _EWS4800MIPS_DISKLABEL_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: gavar.h,v 1.1 2005/12/29 15:20:08 tsutsui Exp $ */
/* $NetBSD: gavar.h,v 1.2 2007/02/21 22:59:41 thorpej Exp $ */
/*-
* Copyright (c) 2004, 2005 The NetBSD Foundation, Inc.
@ -45,7 +45,7 @@ struct ga {
int flags;
uint8_t clut[256][3];
};
boolean_t ga_init(struct ga *);
bool ga_init(struct ga *);
void ga_clut_get(struct ga *);
void ga_clut_set(const struct ga *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: pdinfo.h,v 1.1 2005/12/29 15:20:08 tsutsui Exp $ */
/* $NetBSD: pdinfo.h,v 1.2 2007/02/21 22:59:41 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -82,9 +82,9 @@ struct pdinfo_sector {
} __attribute__((__packed__)); /* 512 byte */
#if defined(_KERNEL) || defined(_STANDALONE)
boolean_t pdinfo_sector(void *, struct pdinfo_sector *);
boolean_t pdinfo_sanity(const struct pdinfo_sector *);
boolean_t pdinfo_valid(const struct pdinfo_sector *);
bool pdinfo_sector(void *, struct pdinfo_sector *);
bool pdinfo_sanity(const struct pdinfo_sector *);
bool pdinfo_valid(const struct pdinfo_sector *);
#endif
#endif /* _EWS4800MIPS_PDINFO_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: sector.h,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: sector.h,v 1.2 2007/02/21 22:59:41 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -42,10 +42,10 @@
void *sector_init(dev_t, void (*)(struct buf *));
#endif
void sector_fini(void *);
boolean_t sector_read_n(void *, uint8_t *, daddr_t, int);
boolean_t sector_read(void *, uint8_t *, daddr_t);
boolean_t sector_write_n(void *, uint8_t *, daddr_t, int);
boolean_t sector_write(void *, uint8_t *, daddr_t);
bool sector_read_n(void *, uint8_t *, daddr_t, int);
bool sector_read(void *, uint8_t *, daddr_t);
bool sector_write_n(void *, uint8_t *, daddr_t, int);
bool sector_write(void *, uint8_t *, daddr_t);
#define ROUND_SECTOR(x) (((x) + 511) & ~511)
#define TRUNC_SECTOR(x) ((x) & ~511)

View File

@ -1,4 +1,4 @@
/* $NetBSD: vtoc.h,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: vtoc.h,v 1.2 2007/02/21 22:59:41 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -86,11 +86,11 @@ struct vtoc_sector {
struct pdinfo_sector;
#if defined(_KERNEL) || defined(_STANDALONE)
boolean_t vtoc_sector(void *, struct vtoc_sector *, int);
boolean_t vtoc_valid(const struct vtoc_sector *);
boolean_t vtoc_sanity(const struct vtoc_sector *);
bool vtoc_sector(void *, struct vtoc_sector *, int);
bool vtoc_valid(const struct vtoc_sector *);
bool vtoc_sanity(const struct vtoc_sector *);
const struct ux_partition *vtoc_find_bfs(const struct vtoc_sector *);
boolean_t vtoc_write(struct vtoc_sector *, struct pdinfo_sector *);
bool vtoc_write(struct vtoc_sector *, struct pdinfo_sector *);
#endif
#endif /* _EWS4800MIPS_VTOC_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: kbms_sbdio.c,v 1.2 2006/11/12 19:00:43 plunky Exp $ */
/* $NetBSD: kbms_sbdio.c,v 1.3 2007/02/21 22:59:41 thorpej Exp $ */
/*-
* Copyright (c) 2004, 2005 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kbms_sbdio.c,v 1.2 2006/11/12 19:00:43 plunky Exp $");
__KERNEL_RCSID(0, "$NetBSD: kbms_sbdio.c,v 1.3 2007/02/21 22:59:41 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -93,8 +93,8 @@ int mouse_enable(void *);
void mouse_disable(void *);
int mouse_ioctl(void *, u_long, caddr_t, int, struct lwp *);
boolean_t kbd_init(struct kbms_softc *);
boolean_t kbd_reset(struct kbms_softc *, int);
bool kbd_init(struct kbms_softc *);
bool kbd_reset(struct kbms_softc *, int);
void mouse_init(struct kbms_softc *);
#ifdef MOUSE_DEBUG
@ -259,7 +259,7 @@ do { \
delay(1); \
} while (/*CONSTCOND*/ 0)
boolean_t
bool
kbd_init(struct kbms_softc *sc)
{
struct kbms_reg *reg = &sc->sc_reg;
@ -295,7 +295,7 @@ kbd_init(struct kbms_softc *sc)
return TRUE;
}
boolean_t
bool
kbd_reset(struct kbms_softc *sc, int retry)
{
#define __RETRY_LOOP(x, y) \
@ -461,7 +461,7 @@ kbd_cngetc(void *arg, u_int *type, int *data)
void
kbd_cnpollc(void *arg, int on)
{
static boolean_t __polling = FALSE;
static bool __polling = FALSE;
static int s;
if (on && !__polling) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: boot.c,v 1.3 2006/02/25 02:28:56 wiz Exp $ */
/* $NetBSD: boot.c,v 1.4 2007/02/21 22:59:41 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -69,7 +69,7 @@ struct cmd_batch_tab cmd_batch_tab[] = {
struct ipl_args ipl_args;
struct device_capability DEVICE_CAPABILITY;
void set_device_capability(void);
boolean_t guess_boot_kernel(char *, size_t, int);
bool guess_boot_kernel(char *, size_t, int);
extern int kernel_binary_size;
void
@ -127,7 +127,7 @@ main(int a0, int v0, int v1)
/* NOTREACHED */
}
boolean_t
bool
guess_boot_kernel(char *name, size_t len, int pri)
{
extern struct vtoc_sector vtoc;

View File

@ -1,4 +1,4 @@
/* $NetBSD: bootxx.c,v 1.2 2006/08/26 14:13:40 tsutsui Exp $ */
/* $NetBSD: bootxx.c,v 1.3 2007/02/21 22:59:41 thorpej Exp $ */
/*-
* Copyright (c) 2004, 2005 The NetBSD Foundation, Inc.
@ -90,7 +90,7 @@ const char *boottab[] = {
};
int __dk_unit, __dk_type;
boolean_t (*fd_position)(uint32_t, uint32_t *, int *);
bool (*fd_position)(uint32_t, uint32_t *, int *);
int
main(void)

View File

@ -1,4 +1,4 @@
/* $NetBSD: bootxx.h,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: bootxx.h,v 1.2 2007/02/21 22:59:41 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -40,12 +40,6 @@
#include <lib/libkern/libkern.h>
#endif
#ifndef _STANDALONE
typedef int boolean_t;
#define TRUE 1
#define FALSE 0
#endif
enum {
BERR_NONE,
BERR_PDINFO,

View File

@ -1,4 +1,4 @@
/* $NetBSD: common.h,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: common.h,v 1.2 2007/02/21 22:59:41 thorpej Exp $ */
/*-
* Copyright (c) 2004, 2005 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@ enum fd_format {
FD_FORMAT_2HD = 2,
};
boolean_t blk_to_2d_position(uint32_t, uint32_t *, int *);
boolean_t blk_to_2hc_position(uint32_t, uint32_t *, int *);
boolean_t blk_to_2hd_position(uint32_t, uint32_t *, int *);
bool blk_to_2d_position(uint32_t, uint32_t *, int *);
bool blk_to_2hc_position(uint32_t, uint32_t *, int *);
bool blk_to_2hd_position(uint32_t, uint32_t *, int *);
void boot_device(int *, int *, int *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: cons_fb.c,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: cons_fb.c,v 1.2 2007/02/21 22:59:41 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -80,7 +80,7 @@ fb_init(void)
}
void
fb_active(boolean_t on)
fb_active(bool on)
{
if (fb.active && !on)

View File

@ -1,4 +1,4 @@
/* $NetBSD: console.c,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: console.c,v 1.2 2007/02/21 22:59:41 thorpej Exp $ */
/*-
* Copyright (c) 2004, 2005 The NetBSD Foundation, Inc.
@ -136,7 +136,7 @@ console_init(void)
}
void
console_cursor(boolean_t on)
console_cursor(bool on)
{
cons.cursor_enable = on;

View File

@ -1,4 +1,4 @@
/* $NetBSD: console.h,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: console.h,v 1.2 2007/02/21 22:59:41 thorpej Exp $ */
/*-
* Copyright (c) 2004, 2005 The NetBSD Foundation, Inc.
@ -81,15 +81,15 @@ struct cons {
void (*cursor)(int, int);
int x, y;
enum console_type type;
boolean_t erace_previous_cursor;
boolean_t cursor_enable;
bool erace_previous_cursor;
bool cursor_enable;
};
struct fb {
uint8_t *fb_addr;
uint32_t fb_size;
uint8_t *font_addr;
boolean_t active;
bool active;
};
struct zskbd {
@ -118,7 +118,7 @@ void fb_drawfont(int, int, uint16_t *);
void fb_drawcursor(int, int);
void fb_clear(int, int, int, int, int);
void fb_copy(int, int, int, int, int, int);
void fb_active(boolean_t);
void fb_active(bool);
void zskbd_set_addr(uint32_t, uint32_t);
int zskbd_getc(void);
@ -133,7 +133,7 @@ int rom_scan(void);
enum console_type console_type(void);
void console_init(void);
void console_cursor(boolean_t);
void console_cursor(bool);
int cnscan(void);

View File

@ -1,4 +1,4 @@
/* $NetBSD: device_test.c,v 1.2 2006/08/26 14:13:40 tsutsui Exp $ */
/* $NetBSD: device_test.c,v 1.3 2007/02/21 22:59:42 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -49,7 +49,7 @@
struct ga ga;
extern boolean_t lance_test(void);
extern bool lance_test(void);
int fdd_test(void);
int i82589_test(void);
int picnic_test(void);

View File

@ -1,4 +1,4 @@
/* $NetBSD: disk.c,v 1.2 2006/08/26 14:13:40 tsutsui Exp $ */
/* $NetBSD: disk.c,v 1.3 2007/02/21 22:59:42 thorpej Exp $ */
/*-
* Copyright (c) 2004, 2005 The NetBSD Foundation, Inc.
@ -55,7 +55,7 @@ struct devsw dkdevsw = {
};
struct disk {
boolean_t active;
bool active;
int type; /* FD/HD */
int unit;
int format; /* 2D/2HD */
@ -65,13 +65,13 @@ struct disk {
} __disk;
void sector_init(void);
boolean_t __sector_rw(uint8_t *, int, int, int);
bool __sector_rw(uint8_t *, int, int, int);
int __hd_rw(uint8_t *, int, int, int);
int __fd_2d_rw(uint8_t *, int, int, int);
int __fd_2hd_rw(uint8_t *, int, int, int);
void __fd_progress_msg(int);
boolean_t
bool
device_attach(int type, int unit, int partition)
{
@ -168,7 +168,7 @@ sector_fini(void *self)
__disk.active = FALSE;
}
boolean_t
bool
sector_read_n(void *self, uint8_t *buf, int sector, int count)
{
@ -177,14 +177,14 @@ sector_read_n(void *self, uint8_t *buf, int sector, int count)
return TRUE;
}
boolean_t
bool
sector_read(void *self, uint8_t *buf, int sector)
{
return __sector_rw(buf, sector, 0, 1);
}
boolean_t
bool
sector_write_n(void *self, uint8_t *buf, int sector, int count)
{
@ -193,14 +193,14 @@ sector_write_n(void *self, uint8_t *buf, int sector, int count)
return TRUE;
}
boolean_t
bool
sector_write(void *self, uint8_t *buf, int sector)
{
return __sector_rw(buf, sector, 0x1000, 1);
}
boolean_t
bool
__sector_rw(uint8_t *buf, int block, int flag, int count)
{
int err;

View File

@ -1,4 +1,4 @@
/* $NetBSD: diskutil.c,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: diskutil.c,v 1.2 2007/02/21 22:59:42 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -152,7 +152,7 @@ fstype(int partition)
return -1;
}
boolean_t
bool
find_partition_start(int partition, int *sector)
{
@ -166,7 +166,7 @@ find_partition_start(int partition, int *sector)
return TRUE;
}
boolean_t
bool
read_vtoc(void)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: ether_if.c,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: ether_if.c,v 1.2 2007/02/21 22:59:42 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -66,10 +66,10 @@ int ether_get(struct iodesc *, void *, size_t, time_t);
int ether_put(struct iodesc *, void *, size_t);
void ether_end(struct netif *);
extern boolean_t lance_init(void);
extern bool lance_init(void);
extern void lance_eaddr(uint8_t *);
extern boolean_t lance_get(void *, size_t);
extern boolean_t lance_put(void *, size_t);
extern bool lance_get(void *, size_t);
extern bool lance_put(void *, size_t);
struct netif_stats ether_stats[1];

View File

@ -1,4 +1,4 @@
/* $NetBSD: floppy_2d.c,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: floppy_2d.c,v 1.2 2007/02/21 22:59:42 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -39,7 +39,7 @@
#include <sys/types.h>
#include "common.h"
boolean_t
bool
blk_to_2d_position(uint32_t logical_block_number, uint32_t *position,
int *count)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: floppy_2hc.c,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: floppy_2hc.c,v 1.2 2007/02/21 22:59:42 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -39,7 +39,7 @@
#include <sys/types.h>
#include "common.h"
boolean_t
bool
blk_to_2hc_position(uint32_t logical_block_number, uint32_t *position,
int *count)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: floppy_2hd_ibmpc.c,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: floppy_2hd_ibmpc.c,v 1.2 2007/02/21 22:59:42 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -39,7 +39,7 @@
#include <sys/types.h>
#include "common.h"
boolean_t
bool
blk_to_2hd_position(uint32_t logical_block_number, uint32_t *position,
int *count)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: lance.c,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: lance.c,v 1.2 2007/02/21 22:59:42 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -64,24 +64,24 @@ struct {
uint8_t rxdata[RX_BUFSIZE] __attribute__((__aligned__(0x1000)));
} lance_mem __attribute__((__aligned__(64)));
boolean_t lance_init(void);
bool lance_init(void);
void lance_eaddr(uint8_t *);
boolean_t lance_get(void *, size_t);
boolean_t lance_put(void *, size_t);
bool lance_get(void *, size_t);
bool lance_put(void *, size_t);
void lance_setup(void);
boolean_t lance_set_initblock(struct leinit *);
boolean_t lacne_do_initialize(void);
bool lance_set_initblock(struct leinit *);
bool lacne_do_initialize(void);
boolean_t lance_test(void);
boolean_t lance_internal_loopback_test(boolean_t);
void lance_internal_loopback_setup(boolean_t);
bool lance_test(void);
bool lance_internal_loopback_test(bool);
void lance_internal_loopback_setup(bool);
void lance_internal_loopback_testdata(void);
boolean_t lance_internal_loopback_data_check(boolean_t);
boolean_t __poll_interrupt(void);
boolean_t __poll_lance_c0(uint16_t);
bool lance_internal_loopback_data_check(bool);
bool __poll_interrupt(void);
bool __poll_lance_c0(uint16_t);
boolean_t
bool
lance_init(void)
{
@ -107,7 +107,7 @@ lance_eaddr(uint8_t *p)
p[i] = lance_mem.eaddr[i];
}
boolean_t
bool
lance_get(void *data, size_t len)
{
static int current;
@ -154,7 +154,7 @@ lance_get(void *data, size_t len)
return TRUE;
}
boolean_t
bool
lance_put(void *data, size_t len)
{
static int current;
@ -222,7 +222,7 @@ lance_put(void *data, size_t len)
return TRUE;
}
boolean_t
bool
lance_set_initblock(struct leinit *leinit)
{
uint16_t test_data[] = { 0xffff, 0xaaaa, 0x5555, 0x0000 };
@ -286,7 +286,7 @@ lance_set_initblock(struct leinit *leinit)
return FALSE;
}
boolean_t
bool
lacne_do_initialize(void)
{
@ -363,7 +363,7 @@ lance_setup(void)
/*
* Internal loopback test.
*/
boolean_t
bool
lance_test(void)
{
@ -378,8 +378,8 @@ lance_test(void)
return TRUE;
}
boolean_t
lance_internal_loopback_test(boolean_t crc)
bool
lance_internal_loopback_test(bool crc)
{
lance_internal_loopback_setup(crc);
@ -399,7 +399,7 @@ lance_internal_loopback_test(boolean_t crc)
}
void
lance_internal_loopback_setup(boolean_t crc)
lance_internal_loopback_setup(bool crc)
{
struct leinit *init = &lance_mem.leinit;
struct lermd *lermd = lance_mem.lermd;
@ -487,8 +487,8 @@ lance_internal_loopback_testdata(void)
}
}
boolean_t
lance_internal_loopback_data_check(boolean_t crc_check)
bool
lance_internal_loopback_data_check(bool crc_check)
{
uint32_t *p = (uint32_t *)lance_mem.txdata;
uint32_t *q = (uint32_t *)lance_mem.rxdata;
@ -550,7 +550,7 @@ lance_internal_loopback_data_check(boolean_t crc_check)
return FALSE;
}
boolean_t
bool
__poll_interrupt(void)
{
int j;
@ -568,7 +568,7 @@ __poll_interrupt(void)
return TRUE;
}
boolean_t
bool
__poll_lance_c0(uint16_t r)
{
int j;

View File

@ -1,4 +1,4 @@
/* $NetBSD: local.h,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: local.h,v 1.2 2007/02/21 22:59:42 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -56,22 +56,22 @@ enum fstype {
};
struct device_capability {
boolean_t active;
bool active;
int booted_device;
int booted_unit;
int active_device;
boolean_t disk_enabled;
boolean_t network_enabled;
boolean_t fd_enabled;
bool disk_enabled;
bool network_enabled;
bool fd_enabled;
};
extern struct device_capability DEVICE_CAPABILITY;
boolean_t find_partition_start(int, int *);
bool find_partition_start(int, int *);
int fstype(int);
void delay(int);
boolean_t device_attach(int, int, int);
bool device_attach(int, int, int);
void data_attach(void *, size_t);
boolean_t ustarfs_load(const char *, void **, size_t *);
boolean_t prompt_yesno(int);
bool ustarfs_load(const char *, void **, size_t *);
bool prompt_yesno(int);
void prompt(void);
boolean_t read_vtoc(void);
bool read_vtoc(void);

View File

@ -1,4 +1,4 @@
/* $NetBSD: mem.c,v 1.2 2006/01/25 18:28:26 christos Exp $ */
/* $NetBSD: mem.c,v 1.3 2007/02/21 22:59:42 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -53,7 +53,7 @@
void mem_write(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t);
void mem_read(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t);
boolean_t __ga_rom;
bool __ga_rom;
int
cmd_mem(int argc, char *argp[], int interactive)

View File

@ -1,4 +1,4 @@
/* $NetBSD: prompt.c,v 1.1 2005/12/29 15:20:09 tsutsui Exp $ */
/* $NetBSD: prompt.c,v 1.2 2007/02/21 22:59:42 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -168,7 +168,7 @@ prompt_reset(void)
printf(PROMPT);
}
boolean_t
bool
prompt_yesno(int interactive)
{
int i;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ustarfs.c,v 1.3 2006/08/26 14:13:40 tsutsui Exp $ */
/* $NetBSD: ustarfs.c,v 1.4 2007/02/21 22:59:42 thorpej Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -46,9 +46,9 @@
#include "local.h"
#include "common.h"
boolean_t __ustarfs_file(int, char *, size_t *);
boolean_t __block_read(uint8_t *, int);
boolean_t __block_read_n(uint8_t *, int, int);
bool __ustarfs_file(int, char *, size_t *);
bool __block_read(uint8_t *, int);
bool __block_read_n(uint8_t *, int, int);
void __change_volume(int);
enum { USTAR_BLOCK_SIZE = 8192 };/* Check src/distrib/common/buildfloppies.sh */
@ -58,7 +58,7 @@ struct volume {
int block_offset;
} __volume;
boolean_t
bool
ustarfs_load(const char *file, void **addrp, size_t *sizep)
{
char fname[16];
@ -113,7 +113,7 @@ ustarfs_load(const char *file, void **addrp, size_t *sizep)
return TRUE;
}
boolean_t
bool
__ustarfs_file(int start_block, char *file, size_t *size)
{
uint8_t buf[512];
@ -132,7 +132,7 @@ __ustarfs_file(int start_block, char *file, size_t *size)
return TRUE;
}
boolean_t
bool
__block_read_n(uint8_t *buf, int blk, int count)
{
int i;
@ -144,7 +144,7 @@ __block_read_n(uint8_t *buf, int blk, int count)
return TRUE;
}
boolean_t
bool
__block_read(uint8_t *buf, int blk)
{
int vol;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mainbus.c,v 1.36 2006/10/30 16:22:42 skrll Exp $ */
/* $NetBSD: mainbus.c,v 1.37 2007/02/21 22:59:42 thorpej Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.36 2006/10/30 16:22:42 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.37 2007/02/21 22:59:42 thorpej Exp $");
#include "locators.h"
#include "opt_power_switch.h"
@ -1395,7 +1395,7 @@ _bus_dmamap_load_buffer(bus_dma_tag_t t, bus_dmamap_t map, void *buf,
bmask = ~(map->_dm_boundary - 1);
for (seg = *segp; buflen > 0; ) {
boolean_t ok;
bool ok;
/*
* Get the physical address for this segment.
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: txcom.c,v 1.34 2006/10/01 20:31:50 elad Exp $ */
/* $NetBSD: txcom.c,v 1.35 2007/02/21 22:59:43 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2000, 2004 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: txcom.c,v 1.34 2006/10/01 20:31:50 elad Exp $");
__KERNEL_RCSID(0, "$NetBSD: txcom.c,v 1.35 2007/02/21 22:59:43 thorpej Exp $");
#include "opt_tx39uart_debug.h"
@ -145,7 +145,7 @@ void txcomstart(struct tty *);
int txcomparam(struct tty *, struct termios *);
void txcom_reset (struct txcom_chip *);
int txcom_enable (struct txcom_chip *, boolean_t);
int txcom_enable (struct txcom_chip *, bool);
void txcom_disable (struct txcom_chip *);
void txcom_setmode (struct txcom_chip *);
void txcom_setbaudrate(struct txcom_chip *);
@ -328,7 +328,7 @@ txcom_reset(struct txcom_chip *chip)
}
int
txcom_enable(struct txcom_chip *chip, boolean_t console)
txcom_enable(struct txcom_chip *chip, bool console)
{
tx_chipset_tag_t tc;
txreg_t reg;

View File

@ -1,4 +1,4 @@
/* $NetBSD: hd64461video.c,v 1.37 2006/08/18 00:41:57 uwe Exp $ */
/* $NetBSD: hd64461video.c,v 1.38 2007/02/21 22:59:43 thorpej Exp $ */
/*-
* Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: hd64461video.c,v 1.37 2006/08/18 00:41:57 uwe Exp $");
__KERNEL_RCSID(0, "$NetBSD: hd64461video.c,v 1.38 2007/02/21 22:59:43 thorpej Exp $");
#include "opt_hd64461video.h"
// #define HD64461VIDEO_HWACCEL
@ -138,7 +138,7 @@ STATIC void hd64461video_get_clut(struct hd64461video_chip *, int, int,
STATIC int hd64461video_power(void *, int, long, void *);
STATIC void hd64461video_off(struct hd64461video_chip *);
STATIC void hd64461video_on(struct hd64461video_chip *);
STATIC void hd64461video_display_onoff(void *, boolean_t);
STATIC void hd64461video_display_onoff(void *, bool);
STATIC void hd64461video_display_on(void *);
#if notyet
@ -1217,7 +1217,7 @@ hd64461video_display_on(void *arg)
}
STATIC void
hd64461video_display_onoff(void *arg, boolean_t on)
hd64461video_display_onoff(void *arg, bool on)
{
/* struct hd64461video_chip *vc = arg; */
uint16_t r;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_disasm.c,v 1.9 2006/02/25 00:58:35 wiz Exp $ */
/* $NetBSD: db_disasm.c,v 1.10 2007/02/21 22:59:43 thorpej Exp $ */
/* $OpenBSD: db_disasm.c,v 1.9 2000/04/18 20:02:45 mickey Exp $ */
@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.9 2006/02/25 00:58:35 wiz Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.10 2007/02/21 22:59:43 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -2240,7 +2240,7 @@ fmpyaddDasm(const struct inst *i, OFS ofs, union insn w)
}
vaddr_t
db_disasm(vaddr_t loc, boolean_t flag)
db_disasm(vaddr_t loc, bool flag)
{
const struct inst *i;
const struct majoropcode *m;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.31 2007/02/19 13:19:20 skrll Exp $ */
/* $NetBSD: pmap.c,v 1.32 2007/02/21 22:59:43 thorpej Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@ -171,7 +171,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.31 2007/02/19 13:19:20 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.32 2007/02/21 22:59:43 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -260,7 +260,7 @@ static u_int *page_aliased_bitmap;
struct pmap kernel_pmap_store;
pmap_t kernel_pmap;
boolean_t pmap_initialized = FALSE;
bool pmap_initialized = FALSE;
TAILQ_HEAD(, pmap) pmap_freelist; /* list of free pmaps */
u_int pmap_nfree;
@ -316,8 +316,8 @@ static inline void _pmap_pv_update(paddr_t, struct pv_entry *, u_int, u_int);
static inline struct pv_entry *pmap_pv_enter(pmap_t, pa_space_t, vaddr_t,
paddr_t, u_int);
static void pmap_pinit(pmap_t);
static inline boolean_t pmap_clear_bit(paddr_t, u_int);
static inline boolean_t pmap_test_bit(paddr_t, u_int);
static inline bool pmap_clear_bit(paddr_t, u_int);
static inline bool pmap_test_bit(paddr_t, u_int);
/*
* Given a directly-mapped region, this makes pv_entries out of it and
@ -1362,8 +1362,8 @@ pmap_enter(pmap_t pmap, vaddr_t va, paddr_t pa, vm_prot_t prot, int flags)
struct pv_entry *pv;
u_int tlbpage, tlbprot;
pa_space_t space;
boolean_t waswired;
boolean_t wired = (flags & PMAP_WIRED) != 0;
bool waswired;
bool wired = (flags & PMAP_WIRED) != 0;
int s;
/* Get a handle on the mapping we want to enter. */
@ -1636,7 +1636,7 @@ pmap_unwire(pmap_t pmap, vaddr_t va)
* storage pointed to by pap and returns TRUE if the
* virtual address is mapped. returns FALSE in not mapped.
*/
boolean_t
bool
pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *pap)
{
struct pv_entry *pv;
@ -1727,13 +1727,13 @@ pmap_copy_page(paddr_t spa, paddr_t dpa)
* Given a PA and a bit, this tests and clears that bit in
* the modref information for the PA.
*/
static inline boolean_t
static inline bool
pmap_clear_bit(paddr_t pa, u_int tlbprot_bit)
{
int table_off;
struct pv_head *hpv;
u_int pv_head_bit;
boolean_t ret;
bool ret;
int s;
table_off = pmap_table_find_pa(pa);
@ -1752,14 +1752,14 @@ pmap_clear_bit(paddr_t pa, u_int tlbprot_bit)
* Given a PA and a bit, this tests that bit in the modref
* information for the PA.
*/
static inline boolean_t
static inline bool
pmap_test_bit(paddr_t pa, u_int tlbprot_bit)
{
int table_off;
struct pv_head *hpv;
u_int pv_head_bit;
struct pv_entry *pv;
boolean_t ret;
bool ret;
int s;
table_off = pmap_table_find_pa(pa);
@ -1791,11 +1791,11 @@ pmap_test_bit(paddr_t pa, u_int tlbprot_bit)
* physical address. phys must be aligned on a machine
* independent page boundary.
*/
boolean_t
bool
pmap_clear_modify(struct vm_page *pg)
{
paddr_t pa = VM_PAGE_TO_PHYS(pg);
boolean_t ret = pmap_clear_bit(pa, TLB_DIRTY);
bool ret = pmap_clear_bit(pa, TLB_DIRTY);
PMAP_PRINTF(PDB_BITS, ("(%p) = %d\n", (caddr_t)pa, ret));
return ret;
}
@ -1805,11 +1805,11 @@ pmap_clear_modify(struct vm_page *pg)
* returns TRUE if the given physical page has been modified
* since the last call to pmap_clear_modify().
*/
boolean_t
bool
pmap_is_modified(struct vm_page *pg)
{
paddr_t pa = VM_PAGE_TO_PHYS(pg);
boolean_t ret = pmap_test_bit(pa, TLB_DIRTY);
bool ret = pmap_test_bit(pa, TLB_DIRTY);
PMAP_PRINTF(PDB_BITS, ("(%p) = %d\n", (caddr_t)pa, ret));
return ret;
}
@ -1822,11 +1822,11 @@ pmap_is_modified(struct vm_page *pg)
* Currently, we treat a TLB miss as a reference; i.e. to clear
* the reference bit we flush all mappings for pa from the TLBs.
*/
boolean_t
bool
pmap_clear_reference(struct vm_page *pg)
{
paddr_t pa = VM_PAGE_TO_PHYS(pg);
boolean_t ret = pmap_clear_bit(pa, TLB_REF);
bool ret = pmap_clear_bit(pa, TLB_REF);
PMAP_PRINTF(PDB_BITS, ("(%p) = %d\n", (caddr_t)pa, ret));
return ret;
}
@ -1836,11 +1836,11 @@ pmap_clear_reference(struct vm_page *pg)
* returns TRUE if the given physical page has been referenced
* since the last call to pmap_clear_reference().
*/
boolean_t
bool
pmap_is_referenced(struct vm_page *pg)
{
paddr_t pa = VM_PAGE_TO_PHYS(pg);
boolean_t ret = pmap_test_bit(pa, TLB_REF);
bool ret = pmap_test_bit(pa, TLB_REF);
PMAP_PRINTF(PDB_BITS, ("(%p) = %d\n", (caddr_t)pa, ret));
return ret;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_disasm.c,v 1.33 2006/11/16 01:32:38 christos Exp $ */
/* $NetBSD: db_disasm.c,v 1.34 2007/02/21 22:59:43 thorpej Exp $ */
/*
* Mach Operating System
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.33 2006/11/16 01:32:38 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.34 2007/02/21 22:59:43 thorpej Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@ -1077,7 +1077,7 @@ db_disasm_esc(
db_addr_t
db_disasm(
db_addr_t loc,
boolean_t altfmt)
bool altfmt)
{
int inst;
int size;
@ -1088,7 +1088,7 @@ db_disasm(
int i_size;
int i_mode;
int regmodrm = 0;
boolean_t first;
bool first;
int displ;
int prefix;
int imm;

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.598 2007/02/18 18:20:26 dsl Exp $ */
/* $NetBSD: machdep.c,v 1.599 2007/02/21 22:59:43 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006 The NetBSD Foundation, Inc.
@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.598 2007/02/18 18:20:26 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.599 2007/02/21 22:59:43 thorpej Exp $");
#include "opt_beep.h"
#include "opt_compat_ibcs2.h"
@ -2025,7 +2025,7 @@ init386(paddr_t first_avail)
#if NKSYMS || defined(DDB) || defined(LKM)
{
extern int end;
boolean_t loaded;
bool loaded;
struct btinfo_symtab *symtab;
#ifdef DDB

View File

@ -1,4 +1,4 @@
/* $NetBSD: multiboot.c,v 1.9 2006/11/06 13:35:35 jmmv Exp $ */
/* $NetBSD: multiboot.c,v 1.10 2007/02/21 22:59:44 thorpej Exp $ */
/*-
* Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: multiboot.c,v 1.9 2006/11/06 13:35:35 jmmv Exp $");
__KERNEL_RCSID(0, "$NetBSD: multiboot.c,v 1.10 2007/02/21 22:59:44 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -96,7 +96,7 @@ extern int * esym;
static char Multiboot_Cmdline[255];
static uint8_t Multiboot_Drives[255];
static struct multiboot_info Multiboot_Info;
static boolean_t Multiboot_Loader = FALSE;
static bool Multiboot_Loader = FALSE;
static char Multiboot_Loader_Name[255];
static uint8_t Multiboot_Mmap[1024];
static struct multiboot_symbols Multiboot_Symbols;
@ -140,7 +140,7 @@ multiboot_pre_reloc(struct multiboot_info *mi)
struct multiboot_info *midest =
RELOC(struct multiboot_info *, &Multiboot_Info);
*RELOC(boolean_t *, &Multiboot_Loader) = TRUE;
*RELOC(bool *, &Multiboot_Loader) = TRUE;
memcpy(midest, mi, sizeof(Multiboot_Info));
if (mi->mi_flags & MULTIBOOT_INFO_HAS_CMDLINE) {
@ -437,7 +437,7 @@ setup_biosgeom(struct multiboot_info *mi)
static void
setup_bootdisk(struct multiboot_info *mi)
{
boolean_t found;
bool found;
struct btinfo_rootdevice bi;
found = FALSE;
@ -535,7 +535,7 @@ static void
setup_console(struct multiboot_info *mi)
{
struct btinfo_console bi;
boolean_t found;
bool found;
found = FALSE;
@ -680,7 +680,7 @@ setup_memory(struct multiboot_info *mi)
* Sets up the initial kernel symbol table. Returns true if this was
* passed in by Multiboot; false otherwise.
*/
boolean_t
bool
multiboot_ksyms_init(void)
{
struct multiboot_info *mi = &Multiboot_Info;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.197 2007/02/18 15:51:54 dsl Exp $ */
/* $NetBSD: pmap.c,v 1.198 2007/02/21 22:59:44 thorpej Exp $ */
/*
*
@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.197 2007/02/18 15:51:54 dsl Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.198 2007/02/21 22:59:44 thorpej Exp $");
#include "opt_cputype.h"
#include "opt_user_ldt.h"
@ -357,8 +357,8 @@ paddr_t avail_end; /* PA of last available physical page */
* other data structures
*/
static pt_entry_t protection_codes[8]; /* maps MI prot to i386 prot code */
static boolean_t pmap_initialized = FALSE; /* pmap_init done yet? */
static pt_entry_t protection_codes[8]; /* maps MI prot to i386 prot code */
static bool pmap_initialized = FALSE; /* pmap_init done yet? */
/*
* the following two vaddr_t's are used during system startup
@ -459,7 +459,7 @@ extern vaddr_t pentium_idt_vaddr;
* local prototypes
*/
static struct pv_entry *pmap_add_pvpage(struct pv_page *, boolean_t);
static struct pv_entry *pmap_add_pvpage(struct pv_page *, bool);
static struct vm_page *pmap_alloc_ptp(struct pmap *, int);
static struct pv_entry *pmap_alloc_pv(struct pmap *, int); /* see codes below */
#define ALLOCPV_NEED 0 /* need PV now */
@ -474,13 +474,13 @@ static void pmap_free_pvs(struct pmap *, struct pv_entry *);
static void pmap_free_pv_doit(struct pv_entry *);
static void pmap_free_pvpage(void);
static struct vm_page *pmap_get_ptp(struct pmap *, int);
static boolean_t pmap_is_curpmap(struct pmap *);
static boolean_t pmap_is_active(struct pmap *, int);
static bool pmap_is_curpmap(struct pmap *);
static bool pmap_is_active(struct pmap *, int);
static pt_entry_t *pmap_map_ptes(struct pmap *);
static struct pv_entry *pmap_remove_pv(struct pv_head *, struct pmap *,
vaddr_t);
static void pmap_do_remove(struct pmap *, vaddr_t, vaddr_t, int);
static boolean_t pmap_remove_pte(struct pmap *, struct vm_page *,
static bool pmap_remove_pte(struct pmap *, struct vm_page *,
pt_entry_t *, vaddr_t, int32_t *, int);
static void pmap_remove_ptes(struct pmap *, struct vm_page *,
vaddr_t, vaddr_t, vaddr_t, int32_t *,
@ -490,7 +490,7 @@ static void pmap_remove_ptes(struct pmap *, struct vm_page *,
static void pmap_unmap_ptes(struct pmap *);
static boolean_t pmap_reactivate(struct pmap *);
static bool pmap_reactivate(struct pmap *);
/*
* p m a p i n l i n e h e l p e r f u n c t i o n s
@ -501,7 +501,7 @@ static boolean_t pmap_reactivate(struct pmap *);
* of course the kernel is always loaded
*/
inline static boolean_t
inline static bool
pmap_is_curpmap(pmap)
struct pmap *pmap;
{
@ -514,7 +514,7 @@ pmap_is_curpmap(pmap)
* pmap_is_active: is this pmap loaded into the specified processor's %cr3?
*/
inline static boolean_t
inline static bool
pmap_is_active(pmap, cpu_id)
struct pmap *pmap;
int cpu_id;
@ -1206,7 +1206,7 @@ pmap_alloc_pvpage(struct pmap *pmap, int mode)
static struct pv_entry *
pmap_add_pvpage(pvp, need_entry)
struct pv_page *pvp;
boolean_t need_entry;
bool need_entry;
{
int tofree, lcv;
@ -1816,13 +1816,13 @@ pmap_activate(l)
* pmap_reactivate: try to regain reference to the pmap.
*/
static boolean_t
static bool
pmap_reactivate(struct pmap *pmap)
{
struct cpu_info *ci = curcpu();
uint32_t cpumask = 1U << ci->ci_cpuid;
int s;
boolean_t result;
bool result;
uint32_t oldcpus;
KASSERT(pmap->pm_pdirpa == rcr3());
@ -2008,7 +2008,7 @@ pmap_deactivate2(l)
* pmap_extract: extract a PA for the given VA
*/
boolean_t
bool
pmap_extract(pmap, va, pap)
struct pmap *pmap;
vaddr_t va;
@ -2127,7 +2127,7 @@ pmap_zero_page(pa)
* some reason.
*/
boolean_t
bool
pmap_pageidlezero(pa)
paddr_t pa;
{
@ -2136,7 +2136,7 @@ pmap_pageidlezero(pa)
#endif
pt_entry_t *zpte = PTESLEW(zero_pte, id);
caddr_t zerova = VASLEW(zerop, id);
boolean_t rv = TRUE;
bool rv = TRUE;
int *ptr;
int *ep;
#if defined(I686_CPU)
@ -2331,7 +2331,7 @@ pmap_remove_ptes(pmap, ptp, ptpva, startva, endva, cpumaskp, flags)
* => returns true if we removed a mapping
*/
static boolean_t
static bool
pmap_remove_pte(pmap, ptp, pte, va, cpumaskp, flags)
struct pmap *pmap;
struct vm_page *ptp;
@ -2429,7 +2429,7 @@ pmap_do_remove(pmap, sva, eva, flags)
int flags;
{
pt_entry_t *ptes, opte;
boolean_t result;
bool result;
paddr_t ptppa;
vaddr_t blkendva;
struct vm_page *ptp;
@ -2775,7 +2775,7 @@ pmap_page_remove(pg)
* => we set pv_head => pmap locking
*/
boolean_t
bool
pmap_test_attrs(pg, testbits)
struct vm_page *pg;
int testbits;
@ -2842,7 +2842,7 @@ pmap_test_attrs(pg, testbits)
* => we return TRUE if we cleared one of the bits we were asked to
*/
boolean_t
bool
pmap_clear_attrs(pg, clearbits)
struct vm_page *pg;
int clearbits;
@ -3119,7 +3119,7 @@ pmap_enter(pmap, va, pa, prot, flags)
struct pv_head *old_pvh, *new_pvh;
struct pv_entry *pve = NULL; /* XXX gcc */
int error;
boolean_t wired = (flags & PMAP_WIRED) != 0;
bool wired = (flags & PMAP_WIRED) != 0;
KASSERT(pmap_initialized);
@ -3653,7 +3653,7 @@ pmap_tlb_shootdown(pmap, va, pte, cpumaskp)
* => called at splvm if !MULTIPROCESSOR.
* => return TRUE if we need to maintain user tlbs.
*/
static inline boolean_t
static inline bool
pmap_do_tlb_shootdown_checktlbstate(struct cpu_info *ci)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: powernow_k7.c,v 1.22 2007/01/20 20:19:36 xtraeme Exp $ */
/* $NetBSD: powernow_k7.c,v 1.23 2007/02/21 22:59:44 thorpej Exp $ */
/* $OpenBSD: powernow-k7.c,v 1.24 2006/06/16 05:58:50 gwk Exp $ */
/*-
@ -66,7 +66,7 @@
/* AMD POWERNOW K7 driver */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: powernow_k7.c,v 1.22 2007/01/20 20:19:36 xtraeme Exp $");
__KERNEL_RCSID(0, "$NetBSD: powernow_k7.c,v 1.23 2007/02/21 22:59:44 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -122,13 +122,13 @@ static char *freq_names;
static size_t freq_names_len;
static uint8_t k7pnow_flag;
static boolean_t pnow_cpu_check(uint32_t, uint32_t);
static bool pnow_cpu_check(uint32_t, uint32_t);
int k7_powernow_setperf(unsigned int);
int k7pnow_sysctl_helper(SYSCTLFN_PROTO);
int k7pnow_decode_pst(struct powernow_cpu_state *, uint8_t *, int);
int k7pnow_states(struct powernow_cpu_state *, uint32_t, unsigned int, unsigned int);
static boolean_t
static bool
pnow_cpu_check(uint32_t real_cpusig, uint32_t pst_cpusig)
{
int j;
@ -287,7 +287,7 @@ k7pnow_states(struct powernow_cpu_state *cstate, uint32_t cpusig,
struct powernow_psb_s *psb;
struct powernow_pst_s *pst;
uint8_t *p;
boolean_t cpusig_ok;
bool cpusig_ok;
j = 0;
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_machdep.h,v 1.25 2006/04/01 15:44:59 cherry Exp $ */
/* $NetBSD: db_machdep.h,v 1.26 2007/02/21 22:59:45 thorpej Exp $ */
/*
* Mach Operating System
@ -96,8 +96,8 @@ extern db_regs_t *ddb_regp;
((user) && (addr) < VM_MAX_ADDRESS))
#if 0
boolean_t db_check_access(vaddr_t, int, task_t);
boolean_t db_phys_eq(task_t, vaddr_t, task_t, vaddr_t);
bool db_check_access(vaddr_t, int, task_t);
bool db_phys_eq(task_t, vaddr_t, task_t, vaddr_t);
#endif
/* macros for printing OS server dependent task name */

View File

@ -1,4 +1,4 @@
/* $NetBSD: multiboot.h,v 1.4 2006/10/25 13:56:16 jmmv Exp $ */
/* $NetBSD: multiboot.h,v 1.5 2007/02/21 22:59:45 thorpej Exp $ */
/*-
* Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
@ -198,7 +198,7 @@ struct multiboot_mmap {
void multiboot_pre_reloc(struct multiboot_info *);
void multiboot_post_reloc(void);
void multiboot_print_info(void);
boolean_t multiboot_ksyms_init(void);
bool multiboot_ksyms_init(void);
#endif /* !defined(_LOCORE) */
/* --------------------------------------------------------------------- */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.88 2006/11/16 01:32:38 christos Exp $ */
/* $NetBSD: pmap.h,v 1.89 2007/02/21 22:59:45 thorpej Exp $ */
/*
*
@ -340,12 +340,12 @@ extern int pmap_pg_g; /* do we support PG_G? */
void pmap_activate(struct lwp *);
void pmap_bootstrap(vaddr_t);
boolean_t pmap_clear_attrs(struct vm_page *, int);
bool pmap_clear_attrs(struct vm_page *, int);
void pmap_deactivate(struct lwp *);
void pmap_deactivate2(struct lwp *);
void pmap_page_remove (struct vm_page *);
void pmap_remove(struct pmap *, vaddr_t, vaddr_t);
boolean_t pmap_test_attrs(struct vm_page *, int);
bool pmap_test_attrs(struct vm_page *, int);
void pmap_write_protect(struct pmap *, vaddr_t, vaddr_t, vm_prot_t);
int pmap_exec_fixup(struct vm_map *, struct trapframe *,
struct pcb *);
@ -362,7 +362,7 @@ void pmap_do_tlb_shootdown(struct cpu_info *);
/*
* Do idle page zero'ing uncached to avoid polluting the cache.
*/
boolean_t pmap_pageidlezero(paddr_t);
bool pmap_pageidlezero(paddr_t);
#define PMAP_PAGEIDLEZERO(pa) pmap_pageidlezero((pa))
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.1 2006/04/07 14:21:18 cherry Exp $ */
/* $NetBSD: db_interface.c,v 1.2 2007/02/21 22:59:45 thorpej Exp $ */
/*-
* Copyright (c) 2003-2005 Marcel Moolenaar
@ -80,7 +80,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.1 2006/04/07 14:21:18 cherry Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.2 2007/02/21 22:59:45 thorpej Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@ -431,7 +431,7 @@ db_pc_advance(db_regs_t *regs)
}
db_addr_t
db_disasm(db_addr_t loc, boolean_t altfmt)
db_disasm(db_addr_t loc, bool altfmt)
{
char buf[32];
struct asm_bundle bundle;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_trace.c,v 1.1 2006/04/07 14:21:18 cherry Exp $ */
/* $NetBSD: db_trace.c,v 1.2 2007/02/21 22:59:45 thorpej Exp $ */
/* Inspired by reading alpha/db_trace.c */
@ -71,13 +71,13 @@ void
rewindframe(struct unwind_frame *uwf, db_addr_t ip);
void
db_stack_trace_print(db_expr_t addr, boolean_t have_addr, db_expr_t count,
db_stack_trace_print(db_expr_t addr, bool have_addr, db_expr_t count,
const char *modif, void (*pr)(const char *, ...))
{
char c;
const char *cp = modif;
boolean_t trace_thread = FALSE;
boolean_t trace_user = FALSE;
bool trace_thread = FALSE;
bool trace_user = FALSE;
struct trapframe *tf;
struct unwind_frame current_frame;
db_addr_t ip;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.4 2006/09/15 15:51:12 yamt Exp $ */
/* $NetBSD: pmap.c,v 1.5 2007/02/21 22:59:45 thorpej Exp $ */
/*-
@ -92,7 +92,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.4 2006/09/15 15:51:12 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.5 2007/02/21 22:59:45 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -158,7 +158,7 @@ static uint64_t *pmap_ridmap;
struct lock pmap_rid_lock;
boolean_t pmap_initialized; /* Has pmap_init completed? */
bool pmap_initialized; /* Has pmap_init completed? */
u_long pmap_pages_stolen; /* instrumentation */
struct pmap kernel_pmap_store; /* the kernel's pmap (proc0) */
@ -187,7 +187,7 @@ struct pool_allocator pmap_pv_page_allocator = {
pmap_pv_page_alloc, pmap_pv_page_free, 0,
};
boolean_t pmap_poolpage_alloc(paddr_t *);
bool pmap_poolpage_alloc(paddr_t *);
void pmap_poolpage_free(paddr_t);
/*
@ -261,7 +261,7 @@ static pmap_t pmap_install(pmap_t);
static struct ia64_lpte *pmap_find_kpte(vaddr_t);
static void
pmap_set_pte(struct ia64_lpte *, vaddr_t, vaddr_t, boolean_t, boolean_t);
pmap_set_pte(struct ia64_lpte *, vaddr_t, vaddr_t, bool, bool);
static void
pmap_free_pte(struct ia64_lpte *pte, vaddr_t va);
@ -1246,7 +1246,7 @@ pmap_protect(pmap_t pmap, vaddr_t sva, vaddr_t eva, vm_prot_t prot)
* Extract the physical address associated with the given
* pmap/virtual address pair.
*/
boolean_t
bool
pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *pap)
{
struct ia64_lpte *pte;
@ -1272,10 +1272,10 @@ pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *pap)
*
* Clear the modify bits on the specified physical page.
*/
boolean_t
bool
pmap_clear_modify(struct vm_page *pg)
{
boolean_t rv = FALSE;
bool rv = FALSE;
struct ia64_lpte *pte;
pmap_t oldpmap;
pv_entry_t pv;
@ -1360,7 +1360,7 @@ pmap_reference(pmap_t pmap)
*
* Clear the reference bit on the specified physical page.
*/
boolean_t
bool
pmap_clear_reference(struct vm_page *pg)
{
return (FALSE);
@ -1404,7 +1404,7 @@ pmap_enter(pmap_t pmap, vaddr_t va, paddr_t pa, vm_prot_t prot, int flags)
vaddr_t opa;
struct ia64_lpte origpte;
struct ia64_lpte *pte;
boolean_t managed, wired;
bool managed, wired;
struct vm_page *pg;
int error = 0;
@ -1776,7 +1776,7 @@ pmap_pte_prot(pmap_t pm, struct ia64_lpte *pte, vm_prot_t prot)
*/
static void
pmap_set_pte(struct ia64_lpte *pte, vaddr_t va, vaddr_t pa,
boolean_t wired, boolean_t managed)
bool wired, bool managed)
{
pte->pte &= PTE_PROT_MASK | PTE_PL_MASK | PTE_AR_MASK;
@ -2125,7 +2125,7 @@ pmap_pv_page_free(struct pool *pp, void *v)
* Allocate a single page from the VM system and return the
* physical address for that page.
*/
boolean_t
bool
pmap_poolpage_alloc(paddr_t *pap)
{
struct vm_page *pg;

View File

@ -1,4 +1,4 @@
/* $NetBSD: decode.h,v 1.1 2006/04/07 14:21:37 cherry Exp $ */
/* $NetBSD: decode.h,v 1.2 2007/02/21 22:59:45 thorpej Exp $ */
/* Contributed to the NetBSD Foundation by Cherry G. Mathew <cherry@mahiti.org>
* This file contains prototypes to decode unwind descriptors.
@ -29,7 +29,7 @@
#define IS_X4(byte) ((byte) == (char) 0xfc)
struct unwind_desc_R1 {
boolean_t r;
bool r;
vsize_t rlen;
};
@ -44,7 +44,7 @@ struct unwind_desc_R2 {
};
struct unwind_desc_R3 {
boolean_t r;
bool r;
vsize_t rlen;
};
@ -72,7 +72,7 @@ struct unwind_desc_P5 {
};
struct unwind_desc_P6 {
boolean_t r;
bool r;
u_int rmask;
};
@ -98,7 +98,7 @@ struct unwind_desc_P10 {
};
struct unwind_desc_B1 {
boolean_t r;
bool r;
u_int label;
};
@ -113,25 +113,25 @@ struct unwind_desc_B3 {
};
struct unwind_desc_B4 {
boolean_t r;
bool r;
vsize_t label;
};
struct unwind_desc_X1 {
boolean_t r;
boolean_t a;
boolean_t b;
bool r;
bool a;
bool b;
u_int reg;
vsize_t t;
vsize_t offset;
};
struct unwind_desc_X2 {
boolean_t x;
boolean_t a;
boolean_t b;
bool x;
bool a;
bool b;
u_int reg;
boolean_t y;
bool y;
u_int treg;
vsize_t t;
};
@ -139,10 +139,10 @@ struct unwind_desc_X2 {
struct unwind_desc_X3 {
boolean_t r;
bool r;
u_int qp;
boolean_t a;
boolean_t b;
bool a;
bool b;
u_int reg;
vsize_t t;
vsize_t offset;
@ -150,11 +150,11 @@ struct unwind_desc_X3 {
struct unwind_desc_X4 {
u_int qp;
boolean_t x;
boolean_t a;
boolean_t b;
bool x;
bool a;
bool b;
u_int reg;
boolean_t y;
bool y;
u_int treg;
vsize_t t;
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: stackframe.c,v 1.1 2006/04/07 14:21:37 cherry Exp $ */
/* $NetBSD: stackframe.c,v 1.2 2007/02/21 22:59:45 thorpej Exp $ */
/* Contributed to the NetBSD foundation by Cherry G. Mathew <cherry@mahiti.org>
* 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;
boolean_t region_type = FALSE; /* Prologue */
bool region_type = FALSE; /* Prologue */
struct unwind_hdr_t {
uint64_t uwh;
@ -937,7 +937,7 @@ struct staterecord *buildrecordstack(struct recordchain *rchain, uint64_t procof
char *spill_mask = NULL; /* Specifies when preserved registers are spilled, as a bit mask */
spill_mask = NULL;
boolean_t rtype;
bool rtype;
unwind_rsp = recordstack; /* Start with bottom of staterecord stack. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: bus_dma.c,v 1.19 2006/07/22 06:58:17 tsutsui Exp $ */
/* $NetBSD: bus_dma.c,v 1.20 2007/02/21 22:59:45 thorpej Exp $ */
/*
* This file was taken from from alpha/common/bus_dma.c
@ -46,7 +46,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.19 2006/07/22 06:58:17 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.20 2007/02/21 22:59:45 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -142,7 +142,7 @@ _bus_dmamap_load_buffer_direct_common(bus_dma_tag_t t, bus_dmamap_t map,
bus_addr_t curaddr, lastaddr, baddr, bmask;
vaddr_t vaddr = (vaddr_t)buf;
int seg;
boolean_t rv;
bool rv;
lastaddr = *lastaddrp;
bmask = ~(map->_dm_boundary - 1);

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_disasm.c,v 1.37 2006/11/24 21:23:07 wiz Exp $ */
/* $NetBSD: db_disasm.c,v 1.38 2007/02/21 22:59:46 thorpej Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@ -63,7 +63,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.37 2006/11/24 21:23:07 wiz Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.38 2007/02/21 22:59:46 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -178,7 +178,7 @@ static char asm_buffer[256];
static char info_buffer[256];
db_addr_t
db_disasm(db_addr_t loc, boolean_t moto_syntax)
db_disasm(db_addr_t loc, bool moto_syntax)
{
u_short opc;
dis_func_t *func;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_disasm.h,v 1.7 2005/12/11 12:17:59 christos Exp $ */
/* $NetBSD: db_disasm.h,v 1.8 2007/02/21 22:59:46 thorpej Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@ -425,4 +425,4 @@ typedef struct dis_buffer dis_buffer_t;
#define PRINT_DREG(dbuf, reg) addstr(dbuf, dregs[reg])
#define PRINT_AREG(dbuf, reg) addstr(dbuf, aregs[reg])
db_addr_t db_disasm __P((db_addr_t loc, boolean_t moto_syntax));
db_addr_t db_disasm __P((db_addr_t loc, bool moto_syntax));

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap_motorola.c,v 1.22 2006/12/30 01:28:57 martin Exp $ */
/* $NetBSD: pmap_motorola.c,v 1.23 2007/02/21 22:59:46 thorpej Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -124,7 +124,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap_motorola.c,v 1.22 2006/12/30 01:28:57 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap_motorola.c,v 1.23 2007/02/21 22:59:46 thorpej Exp $");
#include "opt_compat_hpux.h"
@ -256,7 +256,7 @@ vaddr_t virtual_avail; /* VA of first avail page (after kernel bss)*/
vaddr_t virtual_end; /* VA of last avail page (end of kernel AS) */
int page_cnt; /* number of pages managed by VM system */
boolean_t pmap_initialized = FALSE; /* Has pmap_init completed? */
bool pmap_initialized = FALSE; /* Has pmap_init completed? */
struct pv_entry *pv_table;
char *pmap_attributes; /* reference and modify bits */
TAILQ_HEAD(pv_page_list, pv_page) pv_page_freelist;
@ -307,9 +307,9 @@ int pmap_mapmulti(pmap_t, vaddr_t);
*/
void pmap_remove_mapping(pmap_t, vaddr_t, pt_entry_t *, int);
void pmap_do_remove(pmap_t, vaddr_t, vaddr_t, int);
boolean_t pmap_testbit(paddr_t, int);
boolean_t pmap_changebit(paddr_t, int, int);
boolean_t pmap_enter_ptpage(pmap_t, vaddr_t, boolean_t);
bool pmap_testbit(paddr_t, int);
bool pmap_changebit(paddr_t, int, int);
bool pmap_enter_ptpage(pmap_t, vaddr_t, bool);
void pmap_ptpage_addref(vaddr_t);
int pmap_ptpage_delref(vaddr_t);
void pmap_collect1(pmap_t, paddr_t, paddr_t);
@ -877,7 +877,7 @@ pmap_do_remove(pmap_t pmap, vaddr_t sva, vaddr_t eva, int remove_wired)
pt_entry_t *pte;
int flags;
#ifdef M68K_MMU_HP
boolean_t firstpage = TRUE, needcflush = FALSE;
bool firstpage = TRUE, needcflush = FALSE;
#endif
PMAP_DPRINTF(PDB_FOLLOW|PDB_REMOVE|PDB_PROTECT,
@ -1036,7 +1036,7 @@ pmap_protect(pmap_t pmap, vaddr_t sva, vaddr_t eva, vm_prot_t prot)
{
vaddr_t nssva;
pt_entry_t *pte;
boolean_t firstpage, needtflush;
bool firstpage, needtflush;
int isro;
PMAP_DPRINTF(PDB_FOLLOW|PDB_PROTECT,
@ -1141,10 +1141,10 @@ pmap_enter(pmap_t pmap, vaddr_t va, paddr_t pa, vm_prot_t prot, int flags)
pt_entry_t *pte;
int npte;
paddr_t opa;
boolean_t cacheable = TRUE;
boolean_t checkpv = TRUE;
boolean_t wired = (flags & PMAP_WIRED) != 0;
boolean_t can_fail = (flags & PMAP_CANFAIL) != 0;
bool cacheable = TRUE;
bool checkpv = TRUE;
bool wired = (flags & PMAP_WIRED) != 0;
bool can_fail = (flags & PMAP_CANFAIL) != 0;
PMAP_DPRINTF(PDB_FOLLOW|PDB_ENTER,
("pmap_enter(%p, %lx, %lx, %x, %x)\n",
@ -1502,7 +1502,7 @@ pmap_kremove(vaddr_t va, vsize_t size)
vaddr_t nssva;
vaddr_t eva = va + size;
#ifdef M68K_MMU_HP
boolean_t firstpage, needcflush;
bool firstpage, needcflush;
#endif
PMAP_DPRINTF(PDB_FOLLOW|PDB_REMOVE|PDB_PROTECT,
@ -1627,7 +1627,7 @@ pmap_unwire(pmap_t pmap, vaddr_t va)
* Extract the physical address associated with the given
* pmap/virtual address pair.
*/
boolean_t
bool
pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *pap)
{
paddr_t pa;
@ -1957,7 +1957,7 @@ pmap_copy_page(paddr_t src, paddr_t dst)
*
* Clear the modify bits on the specified physical page.
*/
boolean_t
bool
pmap_clear_modify(struct vm_page *pg)
{
paddr_t pa = VM_PAGE_TO_PHYS(pg);
@ -1972,7 +1972,7 @@ pmap_clear_modify(struct vm_page *pg)
*
* Clear the reference bit on the specified physical page.
*/
boolean_t
bool
pmap_clear_reference(struct vm_page *pg)
{
paddr_t pa = VM_PAGE_TO_PHYS(pg);
@ -1988,7 +1988,7 @@ pmap_clear_reference(struct vm_page *pg)
* Return whether or not the specified physical page is referenced
* by any physical maps.
*/
boolean_t
bool
pmap_is_referenced(struct vm_page *pg)
{
paddr_t pa = VM_PAGE_TO_PHYS(pg);
@ -2002,7 +2002,7 @@ pmap_is_referenced(struct vm_page *pg)
* Return whether or not the specified physical page is modified
* by any physical maps.
*/
boolean_t
bool
pmap_is_modified(struct vm_page *pg)
{
paddr_t pa = VM_PAGE_TO_PHYS(pg);
@ -2396,7 +2396,7 @@ pmap_remove_mapping(pmap_t pmap, vaddr_t va, pt_entry_t *pte, int flags)
* Test the modified/referenced bits of a physical page.
*/
/* static */
boolean_t
bool
pmap_testbit(paddr_t pa, int bit)
{
struct pv_entry *pv;
@ -2451,7 +2451,7 @@ pmap_testbit(paddr_t pa, int bit)
* for a physical page.
*/
/* static */
boolean_t
bool
pmap_changebit(paddr_t pa, int set, int mask)
{
struct pv_entry *pv;
@ -2460,9 +2460,9 @@ pmap_changebit(paddr_t pa, int set, int mask)
char *attrp;
int s;
#if defined(M68K_MMU_HP) || defined(M68040) || defined(M68060)
boolean_t firstpage = TRUE;
bool firstpage = TRUE;
#endif
boolean_t r;
bool r;
PMAP_DPRINTF(PDB_BITS,
("pmap_changebit(%lx, %x, %x)\n", pa, set, mask));
@ -2543,7 +2543,7 @@ pmap_changebit(paddr_t pa, int set, int mask)
*/
/* static */
int
pmap_enter_ptpage(pmap_t pmap, vaddr_t va, boolean_t can_fail)
pmap_enter_ptpage(pmap_t pmap, vaddr_t va, bool can_fail)
{
paddr_t ptpa;
struct vm_page *pg;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys_machdep.c,v 1.8 2007/02/09 21:55:06 ad Exp $ */
/* $NetBSD: sys_machdep.c,v 1.9 2007/02/21 22:59:46 thorpej Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -73,7 +73,7 @@ cachectl1(u_long req, vaddr_t addr, size_t len, struct proc *p)
#if defined(M68040) || defined(M68060)
if (mmutype == MMU_68040) {
int inc = 0;
boolean_t doall = FALSE;
bool doall = FALSE;
paddr_t pa = 0;
vaddr_t end = 0;
#ifdef COMPAT_HPUX

View File

@ -1,4 +1,4 @@
/* $NetBSD: au1000.c,v 1.5 2006/07/13 22:56:01 gdamore Exp $ */
/* $NetBSD: au1000.c,v 1.6 2007/02/21 22:59:47 thorpej Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@ -201,7 +201,7 @@ static struct au_chipdep au1000_chipdep = {
au1000_irqnames,
};
boolean_t
bool
au1000_match(struct au_chipdep **cpp)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: au1100.c,v 1.5 2006/07/13 22:56:01 gdamore Exp $ */
/* $NetBSD: au1100.c,v 1.6 2007/02/21 22:59:47 thorpej Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@ -97,7 +97,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: au1100.c,v 1.5 2006/07/13 22:56:01 gdamore Exp $");
__KERNEL_RCSID(0, "$NetBSD: au1100.c,v 1.6 2007/02/21 22:59:47 thorpej Exp $");
#include <sys/param.h>
#include <machine/bus.h>
@ -202,7 +202,7 @@ static struct au_chipdep au1100_chipdep = {
au1100_irqnames,
};
boolean_t
bool
au1100_match(struct au_chipdep **cpp)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: au1500.c,v 1.6 2006/07/13 22:56:01 gdamore Exp $ */
/* $NetBSD: au1500.c,v 1.7 2007/02/21 22:59:47 thorpej Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@ -97,7 +97,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: au1500.c,v 1.6 2006/07/13 22:56:01 gdamore Exp $");
__KERNEL_RCSID(0, "$NetBSD: au1500.c,v 1.7 2007/02/21 22:59:47 thorpej Exp $");
#include <sys/param.h>
#include <machine/bus.h>
@ -198,7 +198,7 @@ static struct au_chipdep au1500_chipdep = {
au1500_irqnames,
};
boolean_t
bool
au1500_match(struct au_chipdep **cpp)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: au1550.c,v 1.9 2006/07/13 22:56:01 gdamore Exp $ */
/* $NetBSD: au1550.c,v 1.10 2007/02/21 22:59:47 thorpej Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@ -97,7 +97,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: au1550.c,v 1.9 2006/07/13 22:56:01 gdamore Exp $");
__KERNEL_RCSID(0, "$NetBSD: au1550.c,v 1.10 2007/02/21 22:59:47 thorpej Exp $");
#include <sys/param.h>
#include <machine/bus.h>
@ -203,7 +203,7 @@ static struct au_chipdep au1550_chipdep = {
au1550_irqnames,
};
boolean_t
bool
au1550_match(struct au_chipdep **cpp)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: au_himem_space.c,v 1.5 2006/03/28 03:43:58 gdamore Exp $ */
/* $NetBSD: au_himem_space.c,v 1.6 2007/02/21 22:59:47 thorpej Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: au_himem_space.c,v 1.5 2006/03/28 03:43:58 gdamore Exp $");
__KERNEL_RCSID(0, "$NetBSD: au_himem_space.c,v 1.6 2007/02/21 22:59:47 thorpej Exp $");
/*
* This provides mappings for the upper I/O regions used on some
@ -98,7 +98,7 @@ typedef struct au_himem_cookie {
paddr_t c_physoff;
int c_flags;
int c_swswap;
boolean_t c_hwswap;
bool c_hwswap;
struct extent *c_extent;
} au_himem_cookie_t;

View File

@ -1,4 +1,4 @@
/* $NetBSD: au_wired_space.c,v 1.3 2006/03/16 14:23:19 simonb Exp $ */
/* $NetBSD: au_wired_space.c,v 1.4 2007/02/21 22:59:47 thorpej Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: au_wired_space.c,v 1.3 2006/03/16 14:23:19 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: au_wired_space.c,v 1.4 2007/02/21 22:59:47 thorpej Exp $");
/*
* This provides mappings for the upper I/O regions used on some
@ -98,7 +98,7 @@ typedef struct au_wired_cookie {
paddr_t c_pbase;
int c_flags;
int c_swswap;
boolean_t c_hwswap;
bool c_hwswap;
struct extent *c_extent;
long c_exstore[AU_WIRED_EXTENT_SZ/sizeof (long)];
} au_wired_cookie_t;

View File

@ -1,4 +1,4 @@
/* $NetBSD: aupci.c,v 1.6 2006/09/09 04:01:37 simonb Exp $ */
/* $NetBSD: aupci.c,v 1.7 2007/02/21 22:59:47 thorpej Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@ -35,7 +35,7 @@
#include "pci.h"
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: aupci.c,v 1.6 2006/09/09 04:01:37 simonb Exp $");
__KERNEL_RCSID(0, "$NetBSD: aupci.c,v 1.7 2007/02/21 22:59:47 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -329,7 +329,7 @@ aupci_decompose_tag(void *v, pcitag_t tag, int *b, int *d, int *f)
*f = (tag >> 8) & 0x07;
}
static inline boolean_t
static inline bool
aupci_conf_access(void *v, int dir, pcitag_t tag, int reg, pcireg_t *datap)
{
struct aupci_softc *sc = (struct aupci_softc *)v;

View File

@ -1,4 +1,4 @@
/* $NetBSD: auspi.c,v 1.1 2006/10/02 08:00:07 gdamore Exp $ */
/* $NetBSD: auspi.c,v 1.2 2007/02/21 22:59:47 thorpej Exp $ */
/*-
* Copyright (c) 2006 Urbana-Champaign Independent Media Center.
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: auspi.c,v 1.1 2006/10/02 08:00:07 gdamore Exp $");
__KERNEL_RCSID(0, "$NetBSD: auspi.c,v 1.2 2007/02/21 22:59:47 thorpej Exp $");
#include "locators.h"
@ -77,7 +77,7 @@ struct auspi_softc {
void *sc_ih; /* interrupt handler */
struct spi_transfer *sc_transfer;
boolean_t sc_running; /* is it processing stuff? */
bool sc_running; /* is it processing stuff? */
SIMPLEQ_HEAD(,spi_transfer) sc_q;
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: auvar.h,v 1.8 2006/02/16 01:55:17 gdamore Exp $ */
/* $NetBSD: auvar.h,v 1.9 2007/02/21 22:59:47 thorpej Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@ -87,16 +87,16 @@ struct au_chipdep {
struct au_chipdep *au_chipdep(void);
#ifdef ALCHEMY_AU1000
boolean_t au1000_match(struct au_chipdep **);
bool au1000_match(struct au_chipdep **);
#endif
#ifdef ALCHEMY_AU1100
boolean_t au1100_match(struct au_chipdep **);
bool au1100_match(struct au_chipdep **);
#endif
#ifdef ALCHEMY_AU1500
boolean_t au1500_match(struct au_chipdep **);
bool au1500_match(struct au_chipdep **);
#endif
#ifdef ALCHEMY_AU1550
boolean_t au1550_match(struct au_chipdep **);
bool au1550_match(struct au_chipdep **);
#endif
void au_intr_init(void);

View File

@ -1,4 +1,4 @@
/* $NetBSD: arspi.c,v 1.3 2006/12/25 18:39:48 wiz Exp $ */
/* $NetBSD: arspi.c,v 1.4 2007/02/21 22:59:47 thorpej Exp $ */
/*-
* Copyright (c) 2006 Urbana-Champaign Independent Media Center.
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: arspi.c,v 1.3 2006/12/25 18:39:48 wiz Exp $");
__KERNEL_RCSID(0, "$NetBSD: arspi.c,v 1.4 2007/02/21 22:59:47 thorpej Exp $");
#include "locators.h"
@ -100,7 +100,7 @@ struct arspi_softc {
struct device sc_dev;
struct spi_controller sc_spi;
void *sc_ih;
boolean_t sc_interrupts;
bool sc_interrupts;
struct spi_transfer *sc_transfer;
struct spi_chunk *sc_wchunk; /* for partial writes */

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_machdep.h,v 1.19 2006/09/01 13:58:46 matt Exp $ */
/* $NetBSD: db_machdep.h,v 1.20 2007/02/21 22:59:47 thorpej Exp $ */
/*
* Copyright (c) 1997 Jonathan Stone (hereinafter referred to as the author)
@ -74,7 +74,7 @@ extern db_regs_t ddb_regs; /* register state */
/*
* Interface to disassembly (shared with mdb)
*/
db_addr_t db_disasm_insn(int insn, db_addr_t loc, boolean_t altfmt);
bool db_disasm_insn(int insn, db_addr_t loc, bool altfmt);
/*
@ -99,14 +99,14 @@ typedef mips_reg_t kgdb_reg_t;
#define inst_trap_return(ins) ((ins)&0)
boolean_t inst_branch(int inst);
boolean_t inst_call(int inst);
boolean_t inst_return(int inst);
boolean_t inst_load(int inst);
boolean_t inst_store(int inst);
boolean_t inst_unconditional_flow_transfer(int inst);
bool inst_branch(int inst);
bool inst_call(int inst);
bool inst_return(int inst);
bool inst_load(int inst);
bool inst_store(int inst);
bool inst_unconditional_flow_transfer(int inst);
db_addr_t branch_taken(int inst, db_addr_t pc, db_regs_t *regs);
db_addr_t next_instr_address(db_addr_t pc, boolean_t bd);
db_addr_t next_instr_address(db_addr_t pc, bool bd);
/*
* We have machine-dependent commands.

View File

@ -1,4 +1,4 @@
/* $NetBSD: wired_map.h,v 1.2 2005/12/11 12:18:09 christos Exp $ */
/* $NetBSD: wired_map.h,v 1.3 2007/02/21 22:59:47 thorpej Exp $ */
/*-
* Copyright (c) 2005 Tadpole Computer Inc.
@ -93,11 +93,11 @@ extern int mips3_nwired_page;
/*
* Wire down a region of the specified size.
*/
boolean_t mips3_wired_enter_region(vaddr_t, paddr_t, vsize_t);
bool mips3_wired_enter_region(vaddr_t, paddr_t, vsize_t);
/*
* Wire down a single page using specified page size.
*/
boolean_t mips3_wired_enter_page(vaddr_t, paddr_t, vsize_t);
bool mips3_wired_enter_page(vaddr_t, paddr_t, vsize_t);
#endif /* _MIPS_WIRED_MAP_H */

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_disasm.c,v 1.16 2005/12/11 12:18:09 christos Exp $ */
/* $NetBSD: db_disasm.c,v 1.17 2007/02/21 22:59:48 thorpej Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.16 2005/12/11 12:18:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.17 2007/02/21 22:59:48 thorpej Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@ -155,7 +155,7 @@ static void print_addr(db_addr_t);
* be executed but the 'linear' next instruction.
*/
db_addr_t
db_disasm(db_addr_t loc, boolean_t altfmt)
db_disasm(db_addr_t loc, bool altfmt)
{
u_int32_t instr;
@ -184,9 +184,9 @@ db_disasm(db_addr_t loc, boolean_t altfmt)
* 'loc' may in fact contain a breakpoint instruction.
*/
db_addr_t
db_disasm_insn(int insn, db_addr_t loc, boolean_t altfmt)
db_disasm_insn(int insn, db_addr_t loc, bool altfmt)
{
boolean_t bdslot = FALSE;
bool bdslot = FALSE;
InstFmt i;
i.word = insn;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.58 2006/08/26 20:14:51 matt Exp $ */
/* $NetBSD: db_interface.c,v 1.59 2007/02/21 22:59:48 thorpej Exp $ */
/*
* Mach Operating System
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.58 2006/08/26 20:14:51 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.59 2007/02/21 22:59:48 thorpej Exp $");
#include "opt_cputype.h" /* which mips CPUs do we support? */
#include "opt_ddb.h"
@ -552,7 +552,7 @@ const struct db_command db_machine_command_table[] = {
/*
* Determine whether the instruction involves a delay slot.
*/
boolean_t
bool
inst_branch(int inst)
{
InstFmt i;
@ -595,10 +595,10 @@ inst_branch(int inst)
/*
* Determine whether the instruction calls a function.
*/
boolean_t
bool
inst_call(int inst)
{
boolean_t call;
bool call;
InstFmt i;
i.word = inst;
@ -618,7 +618,7 @@ inst_call(int inst)
* compiler can use this construct for other jumps, but usually will not.
* This lets the ddb "next" command to work (also need inst_trap_return()).
*/
boolean_t
bool
inst_return(int inst)
{
InstFmt i;
@ -632,11 +632,11 @@ inst_return(int inst)
/*
* Determine whether the instruction makes a jump.
*/
boolean_t
bool
inst_unconditional_flow_transfer(int inst)
{
InstFmt i;
boolean_t jump;
bool jump;
i.word = inst;
jump = (i.JType.op == OP_J) ||
@ -647,7 +647,7 @@ inst_unconditional_flow_transfer(int inst)
/*
* Determine whether the instruction is a load/store as appropriate.
*/
boolean_t
bool
inst_load(int inst)
{
InstFmt i;
@ -674,7 +674,7 @@ inst_load(int inst)
}
}
boolean_t
bool
inst_store(int inst)
{
InstFmt i;
@ -717,7 +717,7 @@ branch_taken(int inst, db_addr_t pc, db_regs_t *regs)
* Return the next pc of an arbitrary instruction.
*/
db_addr_t
next_instr_address(db_addr_t pc, boolean_t bd)
next_instr_address(db_addr_t pc, bool bd)
{
unsigned ins;

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_trace.c,v 1.31 2007/02/17 22:31:38 pavel Exp $ */
/* $NetBSD: db_trace.c,v 1.32 2007/02/21 22:59:48 thorpej Exp $ */
/*
* Mach Operating System
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.31 2007/02/17 22:31:38 pavel Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.32 2007/02/21 22:59:48 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -59,7 +59,7 @@ vaddr_t getreg_val(db_expr_t regno);
((int *)(&((struct mips_kernel_state *)0)->sp) - (int *)0): \
-1)
db_sym_t localsym(db_sym_t sym, boolean_t isreg, int *lex_level);
db_sym_t localsym(db_sym_t sym, bool isreg, int *lex_level);
/*
* Machine register set.

Some files were not shown because too many files have changed in this diff Show More