debuggers.hg

diff xen/arch/x86/shadow.c @ 3664:8472fafee3cf

bitkeeper revision 1.1159.212.74 (42015ef3sPQp8pjeJAck1wBtTAYL9g)

Interface to typed allocator is now just xmalloc/xmalloc_array/xfree.
_xmalloc/_xmalloc_array are dead (or, at least, non-API).
Signed-off-by: keir.fraser@cl.cam.ac.uk
author kaf24@scramble.cl.cam.ac.uk
date Wed Feb 02 23:14:59 2005 +0000 (2005-02-02)
parents 0ef6e8e6e85d
children 677cb76cff18
line diff
     1.1 --- a/xen/arch/x86/shadow.c	Wed Feb 02 22:31:42 2005 +0000
     1.2 +++ b/xen/arch/x86/shadow.c	Wed Feb 02 23:14:59 2005 +0000
     1.3 @@ -185,7 +185,8 @@ int shadow_mode_enable(struct domain *p,
     1.4      {
     1.5          m->shadow_dirty_bitmap_size = (p->max_pages + 63) & ~63;
     1.6          m->shadow_dirty_bitmap = 
     1.7 -            _xmalloc(m->shadow_dirty_bitmap_size/8);
     1.8 +            xmalloc_array(unsigned long, m->shadow_dirty_bitmap_size /
     1.9 +                                         (8 * sizeof(unsigned long)));
    1.10          if ( m->shadow_dirty_bitmap == NULL )
    1.11          {
    1.12              m->shadow_dirty_bitmap_size = 0;