Print this page
5042 stop using deprecated atomic functions

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/fm.c
          +++ new/usr/src/uts/common/os/fm.c
↓ open down ↓ 366 lines elided ↑ open up ↑
 367  367   * is the one exception to that rule and the only error that gets messaged.
 368  368   * This function is intended for use by subsystems that have detected a fatal
 369  369   * error and enqueued appropriate ereports and wish to then force a panic.
 370  370   */
 371  371  /*PRINTFLIKE1*/
 372  372  void
 373  373  fm_panic(const char *format, ...)
 374  374  {
 375  375          va_list ap;
 376  376  
 377      -        (void) casptr((void *)&fm_panicstr, NULL, (void *)format);
      377 +        (void) atomic_cas_ptr((void *)&fm_panicstr, NULL, (void *)format);
 378  378  #if defined(__i386) || defined(__amd64)
 379  379          fastreboot_disable_highpil();
 380  380  #endif /* __i386 || __amd64 */
 381  381          va_start(ap, format);
 382  382          vpanic(format, ap);
 383  383          va_end(ap);
 384  384  }
 385  385  
 386  386  /*
 387  387   * Simply tell the caller if fm_panicstr is set, ie. an fma event has
↓ open down ↓ 999 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX