8 * This file defines @c bochsbp, the magic breakpoint instruction that
9 * is incredibly useful when debugging under bochs. This file should
10 * never be included in production code.
12 * Use the pseudo-instruction @c bochsbp in assembly code, or the
13 * bochsbp() function in C code.
19 /* Breakpoint for when debugging under bochs */
20 #define bochsbp xchgw %bx, %bx
21 #define BOCHSBP bochsbp
25 /** Breakpoint for when debugging under bochs */
26 static inline void bochsbp ( void ) {
27 __asm__
__volatile__ ( "xchgw %bx, %bx" );
32 #warning "bochs.h should not be included into production code"