aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/domctl.c
diff options
context:
space:
mode:
authorTim Deegan <Tim.Deegan@citrix.com>2011-05-26 12:37:47 +0100
committerTim Deegan <Tim.Deegan@citrix.com>2011-05-26 12:37:47 +0100
commit093e1d2484fc46ec73e527c03af79664218045df (patch)
tree4ac0109f7f6d91c8c24a62bfdd20dc44e5370e9d /xen/arch/x86/domctl.c
parentde4bf084c8dc232a629e436ccd0ce989da8c470e (diff)
downloadxen-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/domctl.c')
-rw-r--r--xen/arch/x86/domctl.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/xen/arch/x86/domctl.c b/xen/arch/x86/domctl.c
index d13599aed3..4c0c0122f8 100644
--- a/xen/arch/x86/domctl.c
+++ b/xen/arch/x86/domctl.c
@@ -34,22 +34,14 @@
#include <public/mem_event.h>
#include <asm/mem_sharing.h>
#include <asm/xstate.h>
-
-#ifdef XEN_KDB_CONFIG
-#include "../kdb/include/kdbdefs.h"
-#include "../kdb/include/kdbproto.h"
-#else
-typedef unsigned long kdbva_t;
-typedef unsigned char kdbbyt_t;
-extern int dbg_rw_mem(kdbva_t, kdbbyt_t *, int, domid_t, int, uint64_t);
-#endif
+#include <asm/debugger.h>
static int gdbsx_guest_mem_io(
domid_t domid, struct xen_domctl_gdbsx_memio *iop)
{
ulong l_uva = (ulong)iop->uva;
iop->remain = dbg_rw_mem(
- (kdbva_t)iop->gva, (kdbbyt_t *)l_uva, iop->len, domid,
+ (dbgva_t)iop->gva, (dbgbyte_t *)l_uva, iop->len, domid,
iop->gwr, iop->pgd3val);
return (iop->remain ? -EFAULT : 0);
}
@@ -732,8 +724,6 @@ long arch_do_domctl(
case XEN_DOMCTL_SENDTRIGGER_SLEEP:
{
- extern void hvm_acpi_sleep_button(struct domain *d);
-
ret = -EINVAL;
if ( is_hvm_domain(d) )
{