Print this page
15254 %ymm registers not restored after signal handler
15367 x86 getfpregs() summons corrupting %xmm ghosts
15333 want x86 /proc xregs support (libc_db, libproc, mdb, etc.)
15336 want libc functions for extended ucontext_t
15334 want ps_lwphandle-specific reg routines
15328 FPU_CW_INIT mistreats reserved bit
15335 i86pc fpu_subr.c isn't really platform-specific
15332 setcontext(2) isn't actually noreturn
15331 need <sys/stdalign.h>
Change-Id: I7060aa86042dfb989f77fc3323c065ea2eafa9ad
Conflicts:
    usr/src/uts/common/fs/proc/prcontrol.c
    usr/src/uts/intel/os/archdep.c
    usr/src/uts/intel/sys/ucontext.h
    usr/src/uts/intel/syscall/getcontext.c
        
*** 19,29 ****
  #
  # CDDL HEADER END
  #
  # Copyright 2015 Toomas Soome <tsoome@me.com>
  # Copyright 2016 Nexenta Systems, Inc.
! # Copyright 2020 Oxide Computer Company
  #
  # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  # Use is subject to license terms.
  #
  # Copyright (c) 2015 by Delphix. All rights reserved.
--- 19,29 ----
  #
  # CDDL HEADER END
  #
  # Copyright 2015 Toomas Soome <tsoome@me.com>
  # Copyright 2016 Nexenta Systems, Inc.
! # Copyright 2023 Oxide Computer Company
  #
  # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  # Use is subject to license terms.
  #
  # Copyright (c) 2015 by Delphix. All rights reserved.
*** 611,637 ****
                  err("improper boolean continuation");
          }
          if (/\S   *(&&|\|\|)/ || /(&&|\|\|)   *\S/) {
                  err("more than one space around boolean operator");
          }
!         if (/\b(for|if|while|switch|sizeof|return|case)\(/) {
                  err("missing space between keyword and paren");
          }
          if (/(\b(for|if|while|switch|return)\b.*){2,}/ && !/^#define/) {
                  # multiple "case" and "sizeof" allowed
                  err("more than one keyword on line");
          }
!         if (/\b(for|if|while|switch|sizeof|return|case)\s\s+\(/ &&
              !/^#if\s+\(/) {
                  err("extra space between keyword and paren");
          }
          # try to detect "func (x)" but not "if (x)" or
          # "#define foo (x)" or "int (*func)();"
          if (/\w\s\(/) {
                  my $s = $_;
                  # strip off all keywords on the line
!                 s/\b(for|if|while|switch|return|case|sizeof)\s\(/XXX(/g;
                  s/#elif\s\(/XXX(/g;
                  s/^#define\s+\w+\s+\(/XXX(/;
                  # do not match things like "void (*f)();"
                  # or "typedef void (func_t)();"
                  s/\w\s\(+\*/XXX(*/g;
--- 611,637 ----
                  err("improper boolean continuation");
          }
          if (/\S   *(&&|\|\|)/ || /(&&|\|\|)   *\S/) {
                  err("more than one space around boolean operator");
          }
!         if (/\b(for|if|while|switch|sizeof|alignof|return|case)\(/) {
                  err("missing space between keyword and paren");
          }
          if (/(\b(for|if|while|switch|return)\b.*){2,}/ && !/^#define/) {
                  # multiple "case" and "sizeof" allowed
                  err("more than one keyword on line");
          }
!         if (/\b(for|if|while|switch|sizeof|alignof|return|case)\s\s+\(/ &&
              !/^#if\s+\(/) {
                  err("extra space between keyword and paren");
          }
          # try to detect "func (x)" but not "if (x)" or
          # "#define foo (x)" or "int (*func)();"
          if (/\w\s\(/) {
                  my $s = $_;
                  # strip off all keywords on the line
!                 s/\b(for|if|while|switch|return|case|alignof|sizeof)\s\(/XXX(/g;
                  s/#elif\s\(/XXX(/g;
                  s/^#define\s+\w+\s+\(/XXX(/;
                  # do not match things like "void (*f)();"
                  # or "typedef void (func_t)();"
                  s/\w\s\(+\*/XXX(*/g;
*** 660,669 ****
--- 660,672 ----
                  err("unparenthesized return expression");
          }
          if (/\bsizeof\b/ && !/\bsizeof\s*\(.*\)/) {
                  err("unparenthesized sizeof expression");
          }
+         if (/\balignof\b/ && !/\balignof\s*\(.*\)/) {
+                 err("unparenthesized alignof expression");
+         }
          if (/\(\s/) {
                  err("whitespace after left paren");
          }
          # allow "for" statements to have empty "continue" clauses
          if (/\s\)/ && !/^\s*for \([^;]*;[^;]*; \)/) {