X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fgeekos%2Fvmm_util.h;h=402d2c627a7f7878e52f3290ad176394030a5a97;hb=701de97007c8b6776998eeab78469a4304f6b871;hp=5fb0aea3b0200f7c612e0492051d476d1628c3c3;hpb=ff58148c2cfbbc82405dc9ec25056cc93c773083;p=palacios-OLD.git diff --git a/palacios/include/geekos/vmm_util.h b/palacios/include/geekos/vmm_util.h index 5fb0aea..402d2c6 100644 --- a/palacios/include/geekos/vmm_util.h +++ b/palacios/include/geekos/vmm_util.h @@ -5,7 +5,8 @@ -//#define PAGE_SIZE 4096 + +#define PAGE_SIZE 4096 typedef union reg_ex { ullong_t r_reg; @@ -18,6 +19,20 @@ typedef union reg_ex { +// These are the GPRs layed out according to 'pusha' +struct VMM_GPRs { + uint_t edi; + uint_t esi; + uint_t ebp; + uint_t esp; + uint_t ebx; + uint_t edx; + uint_t ecx; + uint_t eax; +}; + + + void PrintTraceHex(unsigned char x); void PrintTraceMemDump(unsigned char * start, int n);