Make db_validate_address compile under 4.8

This commit is contained in:
skrll 2014-03-08 16:55:38 +00:00
parent 4765e08d28
commit ad5fe86d03

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.19 2013/01/05 15:04:00 christos Exp $ */
/* $NetBSD: db_interface.c,v 1.20 2014/03/08 16:55:38 skrll Exp $ */
/*
* Copyright (c) 1996 Scott K. Stevens
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.19 2013/01/05 15:04:00 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.20 2014/03/08 16:55:38 skrll Exp $");
#include "opt_ddb.h"
@ -169,11 +169,10 @@ volatile bool db_validating, db_faulted;
int
db_validate_address(vm_offset_t addr)
{
volatile uint8_t tmp;
db_faulted = false;
db_validating = true;
tmp = *(uint8_t *)addr;
(void) *(volatile uint8_t *)addr;
db_validating = false;
return db_faulted;
}