diff options
author | Dave Airlie <[email protected]> | 2019-08-09 13:25:56 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2019-08-16 09:00:35 +1000 |
commit | f3af7886fe46706df9d21deb1ccb5de3d04a5507 (patch) | |
tree | a42a5e2bb6972438ba1187b7638bec5d8e51ac37 /src/mesa/x86/sse_xform4.S | |
parent | 78eda70892ebaa03e2c1d87cceb386828a1ce64b (diff) |
mesa: add support for CET to x86/x86-64 asm files.
Control-flow enforcement technology is a new instructions on x86
processors to denote where indirect jumps can land. Gcc auto adds
the instruction (which encodes as a NOP on older CPUs) to entrypoints
but assembler files need manual adding. This adds it to all the
entry points in the mesa x86/x86-64 assembler files.
This will only happen if mesa is built with the -fcf-protection flag
to gcc as some distros are wanting to do.
Acked-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/x86/sse_xform4.S')
-rw-r--r-- | src/mesa/x86/sse_xform4.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/x86/sse_xform4.S b/src/mesa/x86/sse_xform4.S index d81e9a5b9a1..bd322e822d5 100644 --- a/src/mesa/x86/sse_xform4.S +++ b/src/mesa/x86/sse_xform4.S @@ -44,7 +44,7 @@ ALIGNTEXT16 GLOBL GLNAME( _mesa_sse_transform_points4_general ) HIDDEN(_mesa_sse_transform_points4_general) GLNAME( _mesa_sse_transform_points4_general ): - + _CET_ENDBR PUSH_L( ESI ) PUSH_L( EDI ) @@ -116,7 +116,7 @@ ALIGNTEXT4 GLOBL GLNAME( _mesa_sse_transform_points4_3d ) HIDDEN(_mesa_sse_transform_points4_3d) GLNAME( _mesa_sse_transform_points4_3d ): - + _CET_ENDBR PUSH_L( ESI ) PUSH_L( EDI ) @@ -188,7 +188,7 @@ ALIGNTEXT16 GLOBL GLNAME( _mesa_sse_transform_points4_identity ) HIDDEN(_mesa_sse_transform_points4_identity) GLNAME( _mesa_sse_transform_points4_identity ): - + _CET_ENDBR PUSH_L( ESI ) PUSH_L( EDI ) |