Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/acorn26/acorn26 Make db_validate_address compile un...
details: https://anonhg.NetBSD.org/src/rev/55c9e555a5ab
branches: trunk
changeset: 327460:55c9e555a5ab
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Mar 08 16:55:38 2014 +0000
description:
Make db_validate_address compile under 4.8
diffstat:
sys/arch/acorn26/acorn26/db_interface.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 31567ca33d45 -r 55c9e555a5ab sys/arch/acorn26/acorn26/db_interface.c
--- a/sys/arch/acorn26/acorn26/db_interface.c Sat Mar 08 16:36:24 2014 +0000
+++ b/sys/arch/acorn26/acorn26/db_interface.c Sat Mar 08 16:55:38 2014 +0000
@@ -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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index