diff options
author | Tim Deegan <Tim.Deegan@citrix.com> | 2011-05-26 12:37:47 +0100 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@citrix.com> | 2011-05-26 12:37:47 +0100 |
commit | 093e1d2484fc46ec73e527c03af79664218045df (patch) | |
tree | 4ac0109f7f6d91c8c24a62bfdd20dc44e5370e9d /xen/arch/x86/debug.c | |
parent | de4bf084c8dc232a629e436ccd0ce989da8c470e (diff) | |
download | xen-093e1d2484fc46ec73e527c03af79664218045df.tar.gz xen-093e1d2484fc46ec73e527c03af79664218045df.tar.bz2 xen-093e1d2484fc46ec73e527c03af79664218045df.zip |
xen: remove extern function declarations from C files.
Move all extern declarations into appropriate header files.
This also fixes up a few places where the caller and the definition
had different signatures.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/arch/x86/debug.c')
-rw-r--r-- | xen/arch/x86/debug.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xen/arch/x86/debug.c b/xen/arch/x86/debug.c index 62b5a1544d..449f5bd5b0 100644 --- a/xen/arch/x86/debug.c +++ b/xen/arch/x86/debug.c @@ -22,6 +22,7 @@ #include <xen/mm.h> #include <xen/domain_page.h> #include <xen/guest_access.h> +#include <asm/debugger.h> #include <asm/p2m.h> /* @@ -30,8 +31,8 @@ */ #ifdef XEN_KDB_CONFIG -extern volatile int kdbdbg; -extern void kdbp(const char *fmt, ...); +#include "../kdb/include/kdbdefs.h" +#include "../kdb/include/kdbproto.h" #define DBGP(...) {(kdbdbg) ? kdbp(__VA_ARGS__):0;} #define DBGP1(...) {(kdbdbg>1) ? kdbp(__VA_ARGS__):0;} #define DBGP2(...) {(kdbdbg>2) ? kdbp(__VA_ARGS__):0;} @@ -40,10 +41,6 @@ extern void kdbp(const char *fmt, ...); #define DBGP2(...) {0;} #endif -typedef unsigned long dbgva_t; -typedef unsigned char dbgbyte_t; - - /* Returns: mfn for the given (hvm guest) vaddr */ static unsigned long dbg_hvm_va2mfn(dbgva_t vaddr, struct domain *dp, int toaddr) |