Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm cast printf so it can be used from userland...
details: https://anonhg.NetBSD.org/src/rev/cc33f56bf947
branches: trunk
changeset: 777353:cc33f56bf947
user: christos <christos%NetBSD.org@localhost>
date: Thu Feb 16 02:34:56 2012 +0000
description:
cast printf so it can be used from userland, and include the proper include
files for userland if not kernel.
diffstat:
sys/arch/arm/arm/disassem.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 9e7a6fde6589 -r cc33f56bf947 sys/arch/arm/arm/disassem.c
--- a/sys/arch/arm/arm/disassem.c Thu Feb 16 02:33:37 2012 +0000
+++ b/sys/arch/arm/arm/disassem.c Thu Feb 16 02:34:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disassem.c,v 1.18 2008/04/27 18:58:43 matt Exp $ */
+/* $NetBSD: disassem.c,v 1.19 2012/02/16 02:34:56 christos Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe.
@@ -49,10 +49,14 @@
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: disassem.c,v 1.18 2008/04/27 18:58:43 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disassem.c,v 1.19 2012/02/16 02:34:56 christos Exp $");
#include <sys/systm.h>
#include <arch/arm/arm/disassem.h>
+#ifndef _KERNEL
+#include <stdio.h>
+#include <arm/armreg.h>
+#endif
/*
* General instruction format
@@ -680,7 +684,8 @@
}
static const disasm_interface_t disassemble_di = {
- disassemble_readword, disassemble_printaddr, printf
+ disassemble_readword, disassemble_printaddr,
+ (void (*)(const char *, ...))printf
};
void
Home |
Main Index |
Thread Index |
Old Index