ia64/xen-unstable

changeset 174:e98e082295e9

bitkeeper revision 1.40 (3e4d3d1cT1UtXot3hq1e1w8H9jqLFw)

traps.c:
Fix embarrassing do_set_trap_table() behaviour.
author kaf24@labyrinth.cl.cam.ac.uk
date Fri Feb 14 19:01:48 2003 +0000 (2003-02-14)
parents 5669423b1d2a
children f38c3d392cac
files xen-2.4.16/arch/i386/traps.c
line diff
     1.1 --- a/xen-2.4.16/arch/i386/traps.c	Fri Feb 14 17:31:12 2003 +0000
     1.2 +++ b/xen-2.4.16/arch/i386/traps.c	Fri Feb 14 19:01:48 2003 +0000
     1.3 @@ -563,7 +563,12 @@ long do_set_trap_table(trap_info_t *trap
     1.4      trap_info_t cur;
     1.5      trap_info_t *dst = current->thread.traps;
     1.6  
     1.7 -    memset(dst, 0, sizeof(*dst) * 256);
     1.8 +    /*
     1.9 +     * I'm removing the next line, since it seems more intuitive to use this 
    1.10 +     * as an interface to incrementally update a domain's trap table. Clearing 
    1.11 +     * out old entries automatically is rather antisocial!
    1.12 +     */
    1.13 +    /*memset(dst, 0, sizeof(*dst) * 256);*/
    1.14  
    1.15      for ( ; ; )
    1.16      {