ia64/xen-unstable

changeset 1960:72e41275fd36

bitkeeper revision 1.1098.1.4 (4107d68d24en-s2mTTxoCRqdg3l1fA)

Avoid a bogus tail call optimisation.
author sos22@donkeykong.cl.cam.ac.uk
date Wed Jul 28 16:38:37 2004 +0000 (2004-07-28)
parents 18624243ddc8
children f1c05a13dd6c
files xen/common/keyhandler.c
line diff
     1.1 --- a/xen/common/keyhandler.c	Wed Jul 28 16:22:10 2004 +0000
     1.2 +++ b/xen/common/keyhandler.c	Wed Jul 28 16:38:37 2004 +0000
     1.3 @@ -119,6 +119,9 @@ void do_debug_key(unsigned char key, voi
     1.4  {
     1.5      extern void trap_to_xendbg(void);
     1.6      trap_to_xendbg();
     1.7 +    asm volatile ("nop"); /* Prevent the compiler doing tail call
     1.8 +			     optimisation, as that confuses xendbg a
     1.9 +			     bit. */
    1.10  }
    1.11  
    1.12  void initialize_keytable(void)