Print this page
10703 smatch unreachable code checking needs reworking
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/os/mp_startup.c
          +++ new/usr/src/uts/i86pc/os/mp_startup.c
↓ open down ↓ 1915 lines elided ↑ open up ↑
1916 1916  
1917 1917          cmn_err(CE_CONT, "?cpu%d: %s\n", cp->cpu_id, cp->cpu_idstr);
1918 1918          cmn_err(CE_CONT, "?cpu%d: %s\n", cp->cpu_id, cp->cpu_brandstr);
1919 1919          cmn_err(CE_CONT, "?cpu%d initialization complete - online\n",
1920 1920              cp->cpu_id);
1921 1921  
1922 1922          /*
1923 1923           * Now we are done with the startup thread, so free it up.
1924 1924           */
1925 1925          thread_exit();
1926      -        panic("mp_startup: cannot return");
1927 1926          /*NOTREACHED*/
1928 1927  }
1929 1928  
1930 1929  /*
1931 1930   * Startup function for 'other' CPUs at boot time (besides boot cpu).
1932 1931   */
1933 1932  static void
1934 1933  mp_startup_boot(void)
1935 1934  {
1936 1935          mp_startup_common(B_TRUE);
↓ open down ↓ 199 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX