debuggers.hg

changeset 21223:93ac55cf3e40

Make cpu param to continue_hypercall_on_cpu() an unsigned integer.

Negative input makes no sense, and this makes the input range check
correct.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Apr 15 09:04:45 2010 +0100 (2010-04-15)
parents 25a2a8686b1b
children 6eda8033bb6d
files xen/common/domain.c xen/include/xen/domain.h
line diff
     1.1 --- a/xen/common/domain.c	Thu Apr 15 09:03:43 2010 +0100
     1.2 +++ b/xen/common/domain.c	Thu Apr 15 09:04:45 2010 +0100
     1.3 @@ -943,7 +943,8 @@ static void continue_hypercall_tasklet_h
     1.4      }
     1.5  }
     1.6  
     1.7 -int continue_hypercall_on_cpu(int cpu, long (*func)(void *data), void *data)
     1.8 +int continue_hypercall_on_cpu(
     1.9 +    unsigned int cpu, long (*func)(void *data), void *data)
    1.10  {
    1.11      struct migrate_info *info;
    1.12  
     2.1 --- a/xen/include/xen/domain.h	Thu Apr 15 09:03:43 2010 +0100
     2.2 +++ b/xen/include/xen/domain.h	Thu Apr 15 09:04:45 2010 +0100
     2.3 @@ -64,7 +64,8 @@ bool_t domctl_lock_acquire(void);
     2.4  void domctl_lock_release(void);
     2.5  
     2.6  /* Continue the current hypercall via func(data) on specified cpu. */
     2.7 -int continue_hypercall_on_cpu(int cpu, long (*func)(void *data), void *data);
     2.8 +int continue_hypercall_on_cpu(
     2.9 +    unsigned int cpu, long (*func)(void *data), void *data);
    2.10  
    2.11  extern unsigned int xen_processor_pmbits;
    2.12