TRUE -> true, FALSE -> false
This commit is contained in:
parent
4f3d5a9cc0
commit
ae01c745cb
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.h,v 1.70 2007/02/21 22:59:54 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.71 2007/02/22 06:51:30 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991 Regents of the University of California.
|
||||
|
@ -173,8 +173,8 @@ pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *pap)
|
|||
if (pap)
|
||||
*pap = pa;
|
||||
if (pa)
|
||||
return (TRUE);
|
||||
return (FALSE);
|
||||
return (true);
|
||||
return (false);
|
||||
}
|
||||
|
||||
sva = PG_PFNUM(va);
|
||||
|
@ -190,12 +190,12 @@ pmap_extract(pmap_t pmap, vaddr_t va, paddr_t *pap)
|
|||
if (kvtopte(&pte[sva])->pg_pfn && pte[sva]) {
|
||||
if (pap)
|
||||
*pap = (pte[sva] & PG_FRAME) << VAX_PGSHIFT;
|
||||
return (TRUE);
|
||||
return (true);
|
||||
}
|
||||
fail:
|
||||
if (pap)
|
||||
*pap = 0;
|
||||
return (FALSE);
|
||||
return (false);
|
||||
}
|
||||
|
||||
bool pmap_clear_modify_long(struct pv_entry *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_machdep.c,v 1.43 2007/02/21 22:59:55 thorpej Exp $ */
|
||||
/* $NetBSD: db_machdep.c,v 1.44 2007/02/22 06:51:30 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* :set tabs=4
|
||||
|
@ -39,7 +39,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.43 2007/02/21 22:59:55 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.44 2007/02/22 06:51:30 thorpej Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
|
@ -208,9 +208,9 @@ kdb_trap(struct trapframe *frame)
|
|||
|
||||
s = splhigh();
|
||||
db_active++;
|
||||
cnpollc(TRUE);
|
||||
cnpollc(true);
|
||||
db_trap(frame->trap, frame->code);
|
||||
cnpollc(FALSE);
|
||||
cnpollc(false);
|
||||
db_active--;
|
||||
splx(s);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.156 2007/02/17 22:31:40 pavel Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.157 2007/02/22 06:51:30 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
|
||||
|
@ -83,7 +83,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.156 2007/02/17 22:31:40 pavel Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.157 2007/02/22 06:51:30 thorpej Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
@ -208,7 +208,7 @@ cpu_startup()
|
|||
* At most one process with the full length is allowed.
|
||||
*/
|
||||
exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
|
||||
NCARGS, VM_MAP_PAGEABLE, FALSE, NULL);
|
||||
NCARGS, VM_MAP_PAGEABLE, false, NULL);
|
||||
|
||||
#if VAX46 || VAX48 || VAX49 || VAX53 || VAXANY
|
||||
/*
|
||||
|
@ -216,7 +216,7 @@ cpu_startup()
|
|||
* number of processes doing physio at any one time.
|
||||
*/
|
||||
phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
|
||||
VM_PHYS_SIZE, 0, FALSE, NULL);
|
||||
VM_PHYS_SIZE, 0, false, NULL);
|
||||
#endif
|
||||
|
||||
format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.143 2007/02/21 22:59:55 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.144 2007/02/22 06:51:30 thorpej Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1994, 1998, 1999, 2003 Ludd, University of Lule}, Sweden.
|
||||
* All rights reserved.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.143 2007/02/21 22:59:55 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.144 2007/02/22 06:51:30 thorpej Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_cputype.h"
|
||||
|
@ -454,7 +454,7 @@ pmap_steal_memory(size, vstartp, vendp)
|
|||
npgs = btoc(size);
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
if (uvm.page_init_done == TRUE)
|
||||
if (uvm.page_init_done == true)
|
||||
panic("pmap_steal_memory: called _after_ bootstrap");
|
||||
#endif
|
||||
|
||||
|
@ -1236,26 +1236,26 @@ pmap_extract(pmap, va, pap)
|
|||
if (pap)
|
||||
*pap = pa;
|
||||
if (pa)
|
||||
return (TRUE);
|
||||
return (FALSE);
|
||||
return (true);
|
||||
return (false);
|
||||
}
|
||||
|
||||
sva = PG_PFNUM(va);
|
||||
if (va < 0x40000000) {
|
||||
if (sva > pmap->pm_p0lr)
|
||||
return FALSE;
|
||||
return false;
|
||||
pte = (int *)pmap->pm_p0br;
|
||||
} else {
|
||||
if (sva < pmap->pm_p1lr)
|
||||
return FALSE;
|
||||
return false;
|
||||
pte = (int *)pmap->pm_p1br;
|
||||
}
|
||||
if (kvtopte(&pte[sva])->pg_pfn) {
|
||||
if (pap)
|
||||
*pap = (pte[sva] & PG_FRAME) << VAX_PGSHIFT;
|
||||
return (TRUE);
|
||||
return (true);
|
||||
}
|
||||
return (FALSE);
|
||||
return (false);
|
||||
}
|
||||
#endif
|
||||
/*
|
||||
|
@ -1502,7 +1502,7 @@ bool
|
|||
pmap_clear_modify_long(struct pv_entry *pv)
|
||||
{
|
||||
struct pte *pte;
|
||||
bool rv = FALSE;
|
||||
bool rv = false;
|
||||
|
||||
PMDEBUG(("pmap_clear_modify: pv_entry %p\n", pv));
|
||||
|
||||
|
@ -1511,7 +1511,7 @@ pmap_clear_modify_long(struct pv_entry *pv)
|
|||
pte = vaddrtopte(pv);
|
||||
if (pte[0].pg_m | pte[1].pg_m | pte[2].pg_m | pte[3].pg_m |
|
||||
pte[4].pg_m | pte[5].pg_m | pte[6].pg_m | pte[7].pg_m) {
|
||||
rv = TRUE;
|
||||
rv = true;
|
||||
}
|
||||
pte[0].pg_m = pte[1].pg_m = pte[2].pg_m = pte[3].pg_m =
|
||||
pte[4].pg_m = pte[5].pg_m = pte[6].pg_m = pte[7].pg_m = 0;
|
||||
|
@ -1521,7 +1521,7 @@ pmap_clear_modify_long(struct pv_entry *pv)
|
|||
pte = vaddrtopte(pv);
|
||||
if (pte[0].pg_m | pte[1].pg_m | pte[2].pg_m | pte[3].pg_m |
|
||||
pte[4].pg_m | pte[5].pg_m | pte[6].pg_m | pte[7].pg_m) {
|
||||
rv = TRUE;
|
||||
rv = true;
|
||||
}
|
||||
pte[0].pg_m = pte[1].pg_m = pte[2].pg_m = pte[3].pg_m =
|
||||
pte[4].pg_m = pte[5].pg_m = pte[6].pg_m = pte[7].pg_m = 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vm_machdep.c,v 1.93 2007/02/09 21:55:13 ad Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.94 2007/02/22 06:51:30 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
|
||||
|
@ -31,7 +31,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.93 2007/02/09 21:55:13 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.94 2007/02/22 06:51:30 thorpej Exp $");
|
||||
|
||||
#include "opt_compat_ultrix.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
|
@ -328,7 +328,7 @@ vmapbuf(bp, len)
|
|||
len = atop(len);
|
||||
while (len--) {
|
||||
if (pmap_extract(vm_map_pmap(&p->p_vmspace->vm_map), faddr,
|
||||
&pa) == FALSE)
|
||||
&pa) == false)
|
||||
panic("vmapbuf: null page frame");
|
||||
pmap_enter(vm_map_pmap(phys_map), taddr, trunc_page(pa),
|
||||
VM_PROT_READ|VM_PROT_WRITE, PMAP_WIRED);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.134 2007/02/09 21:55:13 ad Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.135 2007/02/22 06:49:34 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
|
@ -77,7 +77,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.134 2007/02/09 21:55:13 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.135 2007/02/22 06:49:34 thorpej Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
|
@ -303,20 +303,20 @@ cpu_startup(void)
|
|||
* limits the number of processes exec'ing at any time.
|
||||
*/
|
||||
exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
|
||||
16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL);
|
||||
16*NCARGS, VM_MAP_PAGEABLE, false, NULL);
|
||||
|
||||
/*
|
||||
* Allocate a submap for physio
|
||||
*/
|
||||
phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
|
||||
VM_PHYS_SIZE, 0, FALSE, NULL);
|
||||
VM_PHYS_SIZE, 0, false, NULL);
|
||||
|
||||
/*
|
||||
* Finally, allocate mbuf cluster submap.
|
||||
*/
|
||||
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
|
||||
nmbclusters * mclbytes, VM_MAP_INTRSAFE,
|
||||
FALSE, NULL);
|
||||
false, NULL);
|
||||
|
||||
#ifdef DEBUG
|
||||
pmapdebug = opmapdebug;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: trap.c,v 1.83 2007/02/09 21:55:13 ad Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.84 2007/02/22 06:49:34 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
|
@ -77,7 +77,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.83 2007/02/09 21:55:13 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.84 2007/02/22 06:49:34 thorpej Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
|
@ -1063,7 +1063,7 @@ dumpwb(int num, u_short s, u_int a, u_int d)
|
|||
num, a, d, f7sz[(s & SSW4_SZMASK) >> 5],
|
||||
f7tt[(s & SSW4_TTMASK) >> 3], f7tm[s & SSW4_TMMASK]);
|
||||
printf(" PA ");
|
||||
if (pmap_extract(p->p_vmspace->vm_map.pmap, (vaddr_t)a, &pa) == FALSE)
|
||||
if (pmap_extract(p->p_vmspace->vm_map.pmap, (vaddr_t)a, &pa) == false)
|
||||
printf("<invalid address>");
|
||||
else
|
||||
printf("%lx, current value %lx", pa, fuword((caddr_t)a));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: identcpu.c,v 1.12 2006/05/27 20:48:40 bouyer Exp $ */
|
||||
/* $NetBSD: identcpu.c,v 1.13 2007/02/22 06:48:54 thorpej Exp $ */
|
||||
/* NetBSD: identcpu.c,v 1.16 2004/04/05 02:09:41 mrg Exp */
|
||||
|
||||
/*-
|
||||
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.12 2006/05/27 20:48:40 bouyer Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.13 2007/02/22 06:48:54 thorpej Exp $");
|
||||
|
||||
#include "opt_cputype.h"
|
||||
|
||||
|
@ -580,7 +580,7 @@ cyrix6x86_cpu_setup(ci)
|
|||
* XXX disable page zero in the idle loop, it seems to
|
||||
* cause panics on these CPUs.
|
||||
*/
|
||||
vm_page_zero_enable = FALSE;
|
||||
vm_page_zero_enable = false;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.34 2007/02/18 18:15:44 dsl Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.35 2007/02/22 06:48:54 thorpej Exp $ */
|
||||
/* NetBSD: machdep.c,v 1.559 2004/07/22 15:12:46 mycroft Exp */
|
||||
|
||||
/*-
|
||||
|
@ -73,7 +73,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.34 2007/02/18 18:15:44 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.35 2007/02/22 06:48:54 thorpej Exp $");
|
||||
|
||||
#include "opt_beep.h"
|
||||
#include "opt_compat_ibcs2.h"
|
||||
|
@ -339,19 +339,19 @@ cpu_startup()
|
|||
* limits the number of processes exec'ing at any time.
|
||||
*/
|
||||
exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
|
||||
16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL);
|
||||
16*NCARGS, VM_MAP_PAGEABLE, false, NULL);
|
||||
|
||||
/*
|
||||
* Allocate a submap for physio
|
||||
*/
|
||||
phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
|
||||
VM_PHYS_SIZE, 0, FALSE, NULL);
|
||||
VM_PHYS_SIZE, 0, false, NULL);
|
||||
|
||||
/*
|
||||
* Finally, allocate mbuf cluster submap.
|
||||
*/
|
||||
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
|
||||
nmbclusters * mclbytes, VM_MAP_INTRSAFE, FALSE, NULL);
|
||||
nmbclusters * mclbytes, VM_MAP_INTRSAFE, false, NULL);
|
||||
|
||||
format_bytes(pbuf, sizeof(pbuf), ptoa(uvmexp.free));
|
||||
printf("avail memory = %s\n", pbuf);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.23 2007/02/21 22:59:55 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.24 2007/02/22 06:48:54 thorpej Exp $ */
|
||||
/* NetBSD: pmap.c,v 1.179 2004/10/10 09:55:24 yamt Exp */
|
||||
|
||||
/*
|
||||
|
@ -61,7 +61,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.23 2007/02/21 22:59:55 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.24 2007/02/22 06:48:54 thorpej Exp $");
|
||||
|
||||
#include "opt_cputype.h"
|
||||
#include "opt_user_ldt.h"
|
||||
|
@ -359,7 +359,7 @@ int pmap_pg_g = 0;
|
|||
#ifdef LARGEPAGES
|
||||
/*
|
||||
* pmap_largepages: if our processor supports PG_PS and we are
|
||||
* using it, this is set to TRUE.
|
||||
* using it, this is set to true.
|
||||
*/
|
||||
|
||||
int pmap_largepages;
|
||||
|
@ -385,7 +385,7 @@ paddr_t pmap_mem_end = HYPERVISOR_VIRT_START; /* updated for domain-0 */
|
|||
*/
|
||||
|
||||
static pt_entry_t protection_codes[8]; /* maps MI prot to i386 prot code */
|
||||
static bool pmap_initialized = FALSE; /* pmap_init done yet? */
|
||||
static bool pmap_initialized = false; /* pmap_init done yet? */
|
||||
|
||||
/*
|
||||
* the following two vaddr_t's are used during system startup
|
||||
|
@ -1308,7 +1308,7 @@ pmap_init()
|
|||
* done: pmap module is up (and ready for business)
|
||||
*/
|
||||
|
||||
pmap_initialized = TRUE;
|
||||
pmap_initialized = true;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -2124,10 +2124,10 @@ pmap_reactivate(struct pmap *pmap)
|
|||
if (oldcpus & cpumask) {
|
||||
KASSERT(ci->ci_tlbstate == TLBSTATE_LAZY);
|
||||
/* got it */
|
||||
result = TRUE;
|
||||
result = true;
|
||||
} else {
|
||||
KASSERT(ci->ci_tlbstate == TLBSTATE_STALE);
|
||||
result = FALSE;
|
||||
result = false;
|
||||
}
|
||||
ci->ci_tlbstate = TLBSTATE_VALID;
|
||||
splx(s);
|
||||
|
@ -2313,7 +2313,7 @@ pmap_extract(pmap, va, pap)
|
|||
if (pde & PG_PS) {
|
||||
if (pap != NULL)
|
||||
*pap = (pde & PG_LGFRAME) | (va & ~PG_LGFRAME);
|
||||
return (TRUE);
|
||||
return (true);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -2324,10 +2324,10 @@ pmap_extract(pmap, va, pap)
|
|||
if (__predict_true((pte & PG_V) != 0)) {
|
||||
if (pap != NULL)
|
||||
*pap = (pte & PG_FRAME) | (va & ~PG_FRAME);
|
||||
return (TRUE);
|
||||
return (true);
|
||||
}
|
||||
}
|
||||
return (FALSE);
|
||||
return (false);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -2348,7 +2348,7 @@ pmap_extract_ma(pmap, va, pap)
|
|||
if (pde & PG_PS) {
|
||||
if (pap != NULL)
|
||||
*pap = (pde & PG_LGFRAME) | (va & ~PG_LGFRAME);
|
||||
return (TRUE);
|
||||
return (true);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -2359,10 +2359,10 @@ pmap_extract_ma(pmap, va, pap)
|
|||
if (__predict_true((pte & PG_V) != 0)) {
|
||||
if (pap != NULL)
|
||||
*pap = (pte & PG_FRAME) | (va & ~PG_FRAME);
|
||||
return (TRUE);
|
||||
return (true);
|
||||
}
|
||||
}
|
||||
return (FALSE);
|
||||
return (false);
|
||||
}
|
||||
|
||||
|
||||
|
@ -2377,7 +2377,7 @@ vtophys(va)
|
|||
{
|
||||
paddr_t pa;
|
||||
|
||||
if (pmap_extract(pmap_kernel(), va, &pa) == TRUE)
|
||||
if (pmap_extract(pmap_kernel(), va, &pa) == true)
|
||||
return (pa);
|
||||
return (0);
|
||||
}
|
||||
|
@ -2450,7 +2450,7 @@ pmap_zero_page(pa)
|
|||
|
||||
/*
|
||||
* pmap_pagezeroidle: the same, for the idle loop page zero'er.
|
||||
* Returns TRUE if the page was zero'd, FALSE if we aborted for
|
||||
* Returns true if the page was zero'd, false if we aborted for
|
||||
* some reason.
|
||||
*/
|
||||
|
||||
|
@ -2464,7 +2464,7 @@ pmap_pageidlezero(pa)
|
|||
pt_entry_t *zpte = PTESLEW(zero_pte, id);
|
||||
pt_entry_t *maptp;
|
||||
caddr_t zerova = VASLEW(zerop, id);
|
||||
bool rv = TRUE;
|
||||
bool rv = true;
|
||||
int *ptr;
|
||||
int *ep;
|
||||
#if defined(I686_CPU)
|
||||
|
@ -2490,7 +2490,7 @@ pmap_pageidlezero(pa)
|
|||
* page.
|
||||
*/
|
||||
|
||||
rv = FALSE;
|
||||
rv = false;
|
||||
break;
|
||||
}
|
||||
#if defined(I686_CPU)
|
||||
|
@ -2678,9 +2678,9 @@ pmap_remove_pte(pmap, ptp, pte, va, cpumaskp, flags)
|
|||
struct vm_page_md *mdpg;
|
||||
|
||||
if (!pmap_valid_entry(*pte))
|
||||
return(FALSE); /* VA not mapped */
|
||||
return(false); /* VA not mapped */
|
||||
if ((flags & PMAP_REMOVE_SKIPWIRED) && (*pte & PG_W)) {
|
||||
return(FALSE);
|
||||
return(false);
|
||||
}
|
||||
|
||||
/* atomically save the old PTE and zap! it */
|
||||
|
@ -2714,7 +2714,7 @@ pmap_remove_pte(pmap, ptp, pte, va, cpumaskp, flags)
|
|||
panic("pmap_remove_pte: managed page without "
|
||||
"PG_PVLIST for 0x%lx", va);
|
||||
#endif
|
||||
return(TRUE);
|
||||
return(true);
|
||||
}
|
||||
|
||||
pg = PHYS_TO_VM_PAGE(opte & PG_FRAME);
|
||||
|
@ -2734,7 +2734,7 @@ pmap_remove_pte(pmap, ptp, pte, va, cpumaskp, flags)
|
|||
|
||||
if (pve)
|
||||
pmap_free_pv(pmap, pve);
|
||||
return(TRUE);
|
||||
return(true);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -3148,12 +3148,12 @@ pmap_test_attrs(pg, testbits)
|
|||
|
||||
myattrs = &mdpg->mp_attrs;
|
||||
if (*myattrs & testbits)
|
||||
return(TRUE);
|
||||
return(true);
|
||||
|
||||
/* test to see if there is a list before bothering to lock */
|
||||
pvh = &mdpg->mp_pvhead;
|
||||
if (SPLAY_ROOT(&pvh->pvh_root) == NULL) {
|
||||
return(FALSE);
|
||||
return(false);
|
||||
}
|
||||
|
||||
/* nope, gonna have to do it the hard way */
|
||||
|
@ -3184,7 +3184,7 @@ pmap_test_attrs(pg, testbits)
|
|||
* pmap_clear_attrs: clear the specified attribute for a page.
|
||||
*
|
||||
* => we set pv_head => pmap locking
|
||||
* => we return TRUE if we cleared one of the bits we were asked to
|
||||
* => we return true if we cleared one of the bits we were asked to
|
||||
*/
|
||||
|
||||
bool
|
||||
|
@ -3775,7 +3775,7 @@ pmap_growkernel(maxkvaddr)
|
|||
for (/*null*/ ; nkpde < needed_kpde ; nkpde++) {
|
||||
|
||||
mapdp = (pt_entry_t *)vtomach((vaddr_t)&kpm->pm_pdir[PDSLOT_KERN + nkpde]);
|
||||
if (uvm.page_init_done == FALSE) {
|
||||
if (uvm.page_init_done == false) {
|
||||
|
||||
/*
|
||||
* we're growing the kernel pmap early (from
|
||||
|
@ -3783,7 +3783,7 @@ pmap_growkernel(maxkvaddr)
|
|||
* handled a little differently.
|
||||
*/
|
||||
|
||||
if (uvm_page_physget(&ptaddr) == FALSE)
|
||||
if (uvm_page_physget(&ptaddr) == false)
|
||||
panic("pmap_growkernel: out of memory");
|
||||
pmap_zero_page(ptaddr);
|
||||
|
||||
|
@ -3797,7 +3797,7 @@ pmap_growkernel(maxkvaddr)
|
|||
|
||||
/*
|
||||
* THIS *MUST* BE CODED SO AS TO WORK IN THE
|
||||
* pmap_initialized == FALSE CASE! WE MAY BE
|
||||
* pmap_initialized == false CASE! WE MAY BE
|
||||
* INVOKED WHILE pmap_init() IS RUNNING!
|
||||
*/
|
||||
|
||||
|
@ -3971,7 +3971,7 @@ pmap_tlb_shootdown(pmap, va, pte, cpumaskp)
|
|||
va &= PG_LGFRAME;
|
||||
#endif
|
||||
|
||||
if (pmap_initialized == FALSE || cpus_attached == 0) {
|
||||
if (pmap_initialized == false || cpus_attached == 0) {
|
||||
pmap_update_pg(va);
|
||||
return;
|
||||
}
|
||||
|
@ -4068,7 +4068,7 @@ pmap_tlb_shootdown(pmap, va, pte, cpumaskp)
|
|||
*
|
||||
* => called at splipi if MULTIPROCESSOR.
|
||||
* => called at splvm if !MULTIPROCESSOR.
|
||||
* => return TRUE if we need to maintain user tlbs.
|
||||
* => return true if we need to maintain user tlbs.
|
||||
*/
|
||||
static inline bool
|
||||
pmap_do_tlb_shootdown_checktlbstate(struct cpu_info *ci)
|
||||
|
@ -4093,9 +4093,9 @@ pmap_do_tlb_shootdown_checktlbstate(struct cpu_info *ci)
|
|||
}
|
||||
|
||||
if (ci->ci_tlbstate == TLBSTATE_STALE)
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bus_space.c,v 1.6 2006/01/15 22:09:52 bouyer Exp $ */
|
||||
/* $NetBSD: bus_space.c,v 1.7 2007/02/22 06:48:54 thorpej Exp $ */
|
||||
/* NetBSD: bus_space.c,v 1.2 2003/03/14 18:47:53 christos Exp */
|
||||
|
||||
/*-
|
||||
|
@ -39,7 +39,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.6 2006/01/15 22:09:52 bouyer Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.7 2007/02/22 06:48:54 thorpej Exp $");
|
||||
|
||||
#include "opt_xen.h"
|
||||
|
||||
|
@ -390,7 +390,7 @@ _x86_memio_unmap(t, bsh, size, adrp)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (pmap_extract_ma(pmap_kernel(), va, &bpa) == FALSE) {
|
||||
if (pmap_extract_ma(pmap_kernel(), va, &bpa) == false) {
|
||||
panic("_x86_memio_unmap:"
|
||||
" wrong virtual address");
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: xenevt.c,v 1.12 2007/02/21 22:59:55 thorpej Exp $ */
|
||||
/* $NetBSD: xenevt.c,v 1.13 2007/02/22 06:48:54 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005 Manuel Bouyer.
|
||||
|
@ -163,7 +163,7 @@ xenevt_event(int port)
|
|||
simple_lock(&devevent_pending_lock);
|
||||
STAILQ_INSERT_TAIL(&devevent_pending, d, pendingq);
|
||||
simple_unlock(&devevent_pending_lock);
|
||||
d->pending = TRUE;
|
||||
d->pending = true;
|
||||
softintr(SIR_XENEVT);
|
||||
}
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ xenevt_notify()
|
|||
simple_unlock(&devevent_pending_lock);
|
||||
sti();
|
||||
|
||||
d->pending = FALSE;
|
||||
d->pending = false;
|
||||
xenevt_donotify(d);
|
||||
|
||||
cli();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: zaudio.c,v 1.2 2006/12/17 16:07:11 peter Exp $ */
|
||||
/* $NetBSD: zaudio.c,v 1.3 2007/02/22 06:47:16 thorpej Exp $ */
|
||||
/* $OpenBSD: zaurus_audio.c,v 1.8 2005/08/18 13:23:02 robert Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -617,7 +617,7 @@ zaudio_set_params(void *hdl, int setmode, int usemode,
|
|||
|
||||
fil = (mode == AUMODE_PLAY) ? pfil : rfil;
|
||||
i = auconv_set_converter(zaudio_formats, ZAUDIO_NFORMATS,
|
||||
mode, p, FALSE, fil);
|
||||
mode, p, false, fil);
|
||||
if (i < 0)
|
||||
return EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue