Print this page
8626 make pcplusmp and apix warning-free
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/sys/apix.h
          +++ new/usr/src/uts/i86pc/sys/apix.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2017 Joyent, Inc.
  23   24   */
  24   25  
  25   26  #ifndef __SYS_APIX_APIX_H
  26   27  #define __SYS_APIX_APIX_H
  27   28  
  28   29  #include <sys/note.h>
  29   30  #include <sys/avintr.h>
  30   31  #include <sys/traptrace.h>
  31   32  #include <sys/apic.h>
  32   33  #include <sys/apic_common.h>
↓ open down ↓ 247 lines elided ↑ open up ↑
 280  281          }
 281  282  
 282  283  #define APIX_CLR_REBIND_INFO() \
 283  284          apix_rebindinfo.i_go = 0
 284  285  
 285  286  #define APIX_IS_FAKE_INTR(_vector)\
 286  287          (apix_rebindinfo.i_go && (_vector) == APIX_RESV_VECTOR)
 287  288  
 288  289  #define APIX_DO_FAKE_INTR(_cpu, _vector)\
 289  290          if (APIX_IS_FAKE_INTR(_vector)) {\
 290      -                struct autovec *tp;\
      291 +                struct autovec *tp = NULL;\
 291  292                  if ((_cpu) == apix_rebindinfo.i_old_cpuid)\
 292  293                          tp = apix_rebindinfo.i_old_av;\
 293  294                  else if ((_cpu) == apix_rebindinfo.i_new_cpuid)\
 294  295                          tp = apix_rebindinfo.i_new_av;\
      296 +                ASSERT(tp != NULL);\
 295  297                  if (tp->av_vector != NULL &&\
 296  298                      (tp->av_flags & AV_PENTRY_PEND) == 0) {\
 297  299                          tp->av_flags |= AV_PENTRY_PEND;\
 298  300                          apix_insert_pending_av(apixs[(_cpu)], tp,\
 299  301                              tp->av_prilevel);\
 300  302                          apixs[(_cpu)]->x_intr_pending |=\
 301  303                              (1 << tp->av_prilevel);\
 302  304                  }\
 303  305          }
 304  306  
↓ open down ↓ 49 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX