direct-io.hg

changeset 12913:2a10ce87327c

[XEN][POWERPC] Be a little smarter with unimplemented()
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Fri Sep 22 11:51:56 2006 -0400 (2006-09-22)
parents 4da585fb62f9
children 61179af7868d
files xen/arch/powerpc/smp.c xen/arch/powerpc/time.c xen/include/asm-powerpc/debugger.h
line diff
     1.1 --- a/xen/arch/powerpc/smp.c	Thu Nov 30 15:26:55 2006 -0600
     1.2 +++ b/xen/arch/powerpc/smp.c	Fri Sep 22 11:51:56 2006 -0400
     1.3 @@ -32,16 +32,21 @@ void __flush_tlb_mask(cpumask_t mask, un
     1.4      unimplemented();
     1.5  }
     1.6  
     1.7 -void smp_send_event_check_mask(cpumask_t cpu_mask)
     1.8 +void smp_send_event_check_mask(cpumask_t mask)
     1.9  {
    1.10 -    unimplemented();
    1.11 +    cpu_clear(smp_processor_id(), mask);
    1.12 +    if (!cpus_empty(mask))
    1.13 +        unimplemented();
    1.14  }
    1.15  
    1.16 -int smp_call_function(void (*func) (void *info), void *info, int unused,
    1.17 +
    1.18 +int smp_call_function(void (*func) (void *info), void *info, int retry,
    1.19          int wait)
    1.20  {
    1.21 -    unimplemented();
    1.22 -    return 0;
    1.23 +    cpumask_t allbutself = cpu_online_map;
    1.24 +    cpu_clear(smp_processor_id(), allbutself);
    1.25 +
    1.26 +    return on_selected_cpus(allbutself, func, info, retry, wait);
    1.27  }
    1.28  
    1.29  void smp_send_stop(void)
    1.30 @@ -56,5 +61,6 @@ int on_selected_cpus(
    1.31      int retry,
    1.32      int wait)
    1.33  {
    1.34 +    unimplemented();
    1.35      return 0;
    1.36  }
     2.1 --- a/xen/arch/powerpc/time.c	Thu Nov 30 15:26:55 2006 -0600
     2.2 +++ b/xen/arch/powerpc/time.c	Fri Sep 22 11:51:56 2006 -0400
     2.3 @@ -93,5 +93,4 @@ void do_settime(unsigned long secs, unsi
     2.4  
     2.5  void update_vcpu_system_time(struct vcpu *v)
     2.6  {
     2.7 -    unimplemented();
     2.8  }
     3.1 --- a/xen/include/asm-powerpc/debugger.h	Thu Nov 30 15:26:55 2006 -0600
     3.2 +++ b/xen/include/asm-powerpc/debugger.h	Fri Sep 22 11:51:56 2006 -0400
     3.3 @@ -41,6 +41,13 @@ static inline void debugger_trap_immedia
     3.4      __builtin_trap();
     3.5  }
     3.6  
     3.7 +static inline void unimplemented(void)
     3.8 +{
     3.9 +#ifdef VERBOSE
    3.10 +    dump_execution_state();
    3.11 +#endif
    3.12 +}
    3.13 +
    3.14  static inline void show_execution_state(struct cpu_user_regs *regs)
    3.15  {
    3.16      show_registers(regs);
    3.17 @@ -49,7 +56,6 @@ static inline void show_execution_state(
    3.18  extern void __warn(char *file, int line);
    3.19  #define WARN() __warn(__FILE__, __LINE__)
    3.20  #define WARN_ON(_p) do { if (_p) WARN(); } while ( 0 )
    3.21 -#define unimplemented() WARN()
    3.22  
    3.23  #define FORCE_CRASH() debugger_trap_immediate()
    3.24