[tcp] Allow out-of-order receive queue to be discarded
[gpxe.git] / src / arch / i386 / include / bochs.h
blob9d090fc120df110c7d610c23a5c1ec7cbe734bdb
1 #ifndef BOCHS_H
2 #define BOCHS_H
4 /** @file
6 * bochs breakpoints
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.
17 #ifdef ASSEMBLY
19 /* Breakpoint for when debugging under bochs */
20 #define bochsbp xchgw %bx, %bx
21 #define BOCHSBP bochsbp
23 #else /* ASSEMBLY */
25 /** Breakpoint for when debugging under bochs */
26 static inline void bochsbp ( void ) {
27 __asm__ __volatile__ ( "xchgw %bx, %bx" );
30 #endif /* ASSEMBLY */
32 #warning "bochs.h should not be included into production code"
34 #endif /* BOCHS_H */