diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2006-11-29 14:16:36 -0600 |
---|---|---|
committer | Hollis Blanchard <hollisb@us.ibm.com> | 2006-11-29 14:16:36 -0600 |
commit | ab26a6a563a0acb589af87a8e063c0e171d75665 (patch) | |
tree | 71a432bde5d016e928ab3ad7860fca01312ec787 /tools/debugger/pdb/pdb_xen.c | |
parent | d3be8a6ca1aa9312cc01e780a2fea56ab8ec12b4 (diff) | |
parent | 1c804664cf63f0c2e80d0420e52d5f82c3956685 (diff) | |
download | xen-ab26a6a563a0acb589af87a8e063c0e171d75665.tar.gz xen-ab26a6a563a0acb589af87a8e063c0e171d75665.tar.bz2 xen-ab26a6a563a0acb589af87a8e063c0e171d75665.zip |
Merge with xen-unstable.hg.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Diffstat (limited to 'tools/debugger/pdb/pdb_xen.c')
-rw-r--r-- | tools/debugger/pdb/pdb_xen.c | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/tools/debugger/pdb/pdb_xen.c b/tools/debugger/pdb/pdb_xen.c deleted file mode 100644 index b2c994c188..0000000000 --- a/tools/debugger/pdb/pdb_xen.c +++ /dev/null @@ -1,75 +0,0 @@ -/* - * pdb_xen.c - * - * alex ho - * http://www.cl.cam.ac.uk/netos/pdb - * - * PDB interface library for accessing Xen - */ - -#include <xenctrl.h> -#include <stdio.h> -#include <stdlib.h> -#include <errno.h> -#include <string.h> -#include <sys/mman.h> - -int -pdb_open () -{ - int xc_handle = xc_interface_open(); - - if ( xc_handle < 0 ) - { - fprintf(stderr, "(pdb) error opening xc interface: %d (%s)\n", - errno, strerror(errno)); - } - return xc_handle; -} - -int -pdb_close (int xc_handle) -{ - int rc; - - - if ( (rc = xc_interface_close(xc_handle)) < 0 ) - { - fprintf(stderr, "(pdb) error closing xc interface: %d (%s)\n", - errno, strerror(errno)); - } - return rc; -} - - -#include <sys/ioctl.h> -#include <xen/linux/evtchn.h> - -int -xen_evtchn_bind (int evtchn_fd, int idx) -{ - if ( ioctl(evtchn_fd, EVTCHN_BIND, idx) != 0 ) - return -errno; - - return 0; -} - -int -xen_evtchn_unbind (int evtchn_fd, int idx) -{ - if ( ioctl(evtchn_fd, EVTCHN_UNBIND, idx) != 0 ) - return -errno; - - return 0; -} - - -/* - * Local variables: - * mode: C - * c-set-style: "BSD" - * c-basic-offset: 4 - * tab-width: 4 - * indent-tabs-mode: nil - * End: - */ |