khypervisor  v1
include/hvmm_trace.h
Go to the documentation of this file.
00001 #ifndef __HVMM_TRACE_H__
00002 #define __HVMM_TRACE_H__
00003 
00004 #include <log/uart_print.h>
00005 
00006 #ifdef DEBUG
00007 #define HVMM_TRACE_ENTER()  {uart_print( __FUNCTION__ );  uart_print("() - enter\n\r");}
00008 #define HVMM_TRACE_EXIT()   {uart_print( __FUNCTION__ );  uart_print("() - exit\n\r");}
00009 #define HVMM_TRACE_HEX32(label, value)      {uart_print(label); uart_print_hex32(value); uart_print("\n\r");}
00010 #else
00011 #define HVMM_TRACE_ENTER()
00012 #define HVMM_TRACE_EXIT()
00013 #define HVMM_TRACE_HEX32(label, value)
00014 #endif
00015 
00016 #define hyp_abort_infinite() {while(1);}
00017 
00018 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines