debuggers.hg
changeset 955:3913078b6947
bitkeeper revision 1.582 (3faf962fX5syo8fIhzw2drHCKGZJ0w)
os.h:
Fix mini-os for pre 2.96 gcc.
os.h:
Fix mini-os for pre 2.96 gcc.
author | kaf24@scramble.cl.cam.ac.uk |
---|---|
date | Mon Nov 10 13:44:15 2003 +0000 (2003-11-10) |
parents | d8950052b29f |
children | bf67cb428fa7 264c48ba4da3 |
files | extras/mini-os/h/os.h |
line diff
1.1 --- a/extras/mini-os/h/os.h Mon Nov 10 12:20:43 2003 +0000 1.2 +++ b/extras/mini-os/h/os.h Mon Nov 10 13:44:15 2003 +0000 1.3 @@ -9,6 +9,15 @@ 1.4 1.5 #define NULL 0 1.6 1.7 +/* Somewhere in the middle of the GCC 2.96 development cycle, we implemented 1.8 + a mechanism by which the user can annotate likely branch directions and 1.9 + expect the blocks to be reordered appropriately. Define __builtin_expect 1.10 + to nothing for earlier compilers. */ 1.11 + 1.12 +#if __GNUC__ == 2 && __GNUC_MINOR__ < 96 1.13 +#define __builtin_expect(x, expected_value) (x) 1.14 +#endif 1.15 + 1.16 /* 1.17 * These are the segment descriptors provided for us by the hypervisor. 1.18 * For now, these are hardwired -- guest OSes cannot update the GDT