* Handle access and R/W emulation faults.
*/
int
-pmap_fault(pmap_t pmap, vm_offset_t far, uint32_t fsr, int idx, int usermode)
+pmap_fault(pmap_t pmap, vm_offset_t far, uint32_t fsr, int idx, bool usermode)
{
pt1_entry_t *pte1p, pte1;
pt2_entry_t *pte2p, pte2;
* FAULT_IS_NOT_MINE value, then the abort is fatal.
*/
static __inline void
-abort_imprecise(struct trapframe *tf, u_int fsr, u_int prefetch, u_int usermode)
+abort_imprecise(struct trapframe *tf, u_int fsr, u_int prefetch, bool usermode)
{
/*
*
*/
static __inline void
-abort_debug(struct trapframe *tf, u_int fsr, u_int prefetch, u_int usermode,
+abort_debug(struct trapframe *tf, u_int fsr, u_int prefetch, bool usermode,
u_int far)
{
{
struct thread *td;
vm_offset_t far, va;
- int idx, usermode;
+ int idx, rv;
uint32_t fsr;
struct ksig ksig;
struct proc *p;
struct vm_map *map;
struct vmspace *vm;
vm_prot_t ftype;
- int rv;
+ bool usermode;
#ifdef INVARIANTS
void *onfault;
#endif
abort_fatal(struct trapframe *tf, u_int idx, u_int fsr, u_int far,
u_int prefetch, struct thread *td, struct ksig *ksig)
{
- u_int usermode;
+ bool usermode;
const char *mode;
const char *rw_mode;
abort_align(struct trapframe *tf, u_int idx, u_int fsr, u_int far,
u_int prefetch, struct thread *td, struct ksig *ksig)
{
- u_int usermode;
+ bool usermode;
usermode = TRAPF_USERMODE(tf);
if (!usermode) {
void pmap_dcache_wb_range(vm_paddr_t , vm_size_t , vm_memattr_t );
vm_paddr_t pmap_kextract(vm_offset_t );
-int pmap_fault(pmap_t , vm_offset_t , uint32_t , int , int );
+int pmap_fault(pmap_t , vm_offset_t , uint32_t , int , bool);
#define vtophys(va) pmap_kextract((vm_offset_t)(va))
void pmap_set_tex(void);