X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fvmm_util.c;fp=palacios%2Fsrc%2Fgeekos%2Fvmm_util.c;h=0000000000000000000000000000000000000000;hb=ed42f510da670d47e780813b35a78bea90a8ccde;hp=3164e69f2724d42c4beef9db1cbd8b8cb923ef4a;hpb=c7e3f043b6458083162e23e1a8adb7703fd06559;p=palacios.git diff --git a/palacios/src/geekos/vmm_util.c b/palacios/src/geekos/vmm_util.c deleted file mode 100644 index 3164e69..0000000 --- a/palacios/src/geekos/vmm_util.c +++ /dev/null @@ -1,40 +0,0 @@ -#include - -#include - -extern struct vmm_os_hooks * os_hooks; - - -void PrintTraceHex(unsigned char x) { - unsigned char z; - - z = (x >> 4) & 0xf ; - PrintTrace("%x", z); - z = x & 0xf; - PrintTrace("%x", z); -} - - -void PrintTraceMemDump(unsigned char *start, int n) -{ - int i, j; - - for (i = 0; i < n; i += 16) { - PrintTrace("%8x", (unsigned)(start + i)); - for (j = i; (j < (i + 16)) && (j < n); j += 2) { - PrintTrace(" "); - PrintTraceHex(*((unsigned char *)(start + j))); - if ((j + 1) < n) { - PrintTraceHex(*((unsigned char *)(start + j + 1))); - } - } - PrintTrace(" "); - for (j = i; (j < (i + 16)) && (j < n); j++) { - PrintTrace("%c", ((start[j] >= 32) && (start[j] <= 126)) ? start[j] : '.'); - } - PrintTrace("\n"); - } -} - - -