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
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/head/stdalign.h
+++ new/usr/src/head/stdalign.h
1 1 /*
2 2 * This file and its contents are supplied under the terms of the
|
↓ open down ↓ |
2 lines elided |
↑ open up ↑ |
3 3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 4 * You may only use this file in accordance with the terms of version
5 5 * 1.0 of the CDDL.
6 6 *
7 7 * A full copy of the text of the CDDL should have accompanied this
8 8 * source. A copy of the CDDL is also available via the Internet at
9 9 * http://www.illumos.org/license/CDDL.
10 10 */
11 11
12 12 /*
13 - * Copyright 2016 Joyent, Inc.
14 - * Copyright 2022 Oxide Computer Company
13 + * Copyright 2023 Oxide Computer Company
15 14 */
16 15
17 16 #ifndef _STDALIGN_H
18 17 #define _STDALIGN_H
19 18
20 -/*
21 - * ISO/IEC C11 stdalign.h. This header is meant to provide definitions for the
22 - * alignas and alignof 'keywords' into the underlying compiler-understood value.
23 - * In addition, there are two macros that are meant to define that this process
24 - * has happened. C++11 added alignas/alignof as keywords and including this
25 - * header is meant to cause us to still have the _is_defined macros, but not
26 - * define this overall.
27 - *
28 - * Unlike other cases we don't use any symbol guards here (other than C++) and
29 - * just allow the implementation to either have _Alignas and _Alignof or not
30 - * have it and lead to a compiler error for the user. The main justification of
31 - * this is that this header is only defined in C11 (and newer). It's not defined
32 - * in other standards and just as if you include a non-standard header, in this
33 - * case we don't try to stop that (same as if you included something like
34 - * libdevinfo.h).
35 - */
19 +#include <sys/stdalign.h>
36 20
37 -#ifdef __cplusplus
38 -extern "C" {
39 -#endif
40 -
41 -#ifndef __cplusplus
42 -
43 -#define alignas _Alignas
44 -#define alignof _Alignof
45 -
46 -#endif /* !__cplusplus */
47 -
48 -#define __alignas_is_defined 1
49 -#define __alignof_is_defined 1
50 -
51 -#ifdef __cplusplus
52 -}
53 -#endif
54 -
55 21 #endif /* _STDALIGN_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX