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/3dnow_xform2.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/3dnow_xform2.S')
-rw-r--r-- | src/mesa/x86/3dnow_xform2.S | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/x86/3dnow_xform2.S b/src/mesa/x86/3dnow_xform2.S index fd71648e2c0..bed217bd8ca 100644 --- a/src/mesa/x86/3dnow_xform2.S +++ b/src/mesa/x86/3dnow_xform2.S @@ -38,7 +38,7 @@ ALIGNTEXT16 GLOBL GLNAME( _mesa_3dnow_transform_points2_general ) HIDDEN(_mesa_3dnow_transform_points2_general) GLNAME( _mesa_3dnow_transform_points2_general ): - + _CET_ENDBR PUSH_L ( ESI ) MOV_L ( ARG_DEST, ECX ) @@ -119,7 +119,7 @@ ALIGNTEXT16 GLOBL GLNAME( _mesa_3dnow_transform_points2_perspective ) HIDDEN(_mesa_3dnow_transform_points2_perspective) GLNAME( _mesa_3dnow_transform_points2_perspective ): - + _CET_ENDBR PUSH_L ( ESI ) MOV_L ( ARG_DEST, ECX ) @@ -175,7 +175,7 @@ ALIGNTEXT16 GLOBL GLNAME( _mesa_3dnow_transform_points2_3d ) HIDDEN(_mesa_3dnow_transform_points2_3d) GLNAME( _mesa_3dnow_transform_points2_3d ): - + _CET_ENDBR PUSH_L ( ESI ) MOV_L ( ARG_DEST, ECX ) @@ -252,7 +252,7 @@ ALIGNTEXT16 GLOBL GLNAME( _mesa_3dnow_transform_points2_3d_no_rot ) HIDDEN(_mesa_3dnow_transform_points2_3d_no_rot) GLNAME( _mesa_3dnow_transform_points2_3d_no_rot ): - + _CET_ENDBR PUSH_L ( ESI ) MOV_L ( ARG_DEST, ECX ) @@ -311,7 +311,7 @@ ALIGNTEXT16 GLOBL GLNAME( _mesa_3dnow_transform_points2_2d ) HIDDEN(_mesa_3dnow_transform_points2_2d) GLNAME( _mesa_3dnow_transform_points2_2d ): - + _CET_ENDBR PUSH_L ( ESI ) MOV_L ( ARG_DEST, ECX ) @@ -375,7 +375,7 @@ ALIGNTEXT16 GLOBL GLNAME( _mesa_3dnow_transform_points2_2d_no_rot ) HIDDEN(_mesa_3dnow_transform_points2_2d_no_rot) GLNAME( _mesa_3dnow_transform_points2_2d_no_rot ): - + _CET_ENDBR PUSH_L ( ESI ) MOV_L ( ARG_DEST, ECX ) @@ -431,7 +431,7 @@ ALIGNTEXT16 GLOBL GLNAME( _mesa_3dnow_transform_points2_identity ) HIDDEN(_mesa_3dnow_transform_points2_identity) GLNAME( _mesa_3dnow_transform_points2_identity ): - + _CET_ENDBR PUSH_L ( ESI ) MOV_L ( ARG_DEST, ECX ) |