mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-18 05:53:36 +01:00
amd64: hide non-erms jump label under non-erms copyin/copyout
This change is a no-op in terms of semantics, but has a side effect of removing a perfectly useless nop sled for CPUs with ERMS. Approved by: re (gjb) Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
627e5af85a
commit
9657b80ce7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339183
@ -457,9 +457,9 @@ END(fillw)
|
|||||||
movq %rax,PCB_ONFAULT(%r9)
|
movq %rax,PCB_ONFAULT(%r9)
|
||||||
POP_FRAME_POINTER
|
POP_FRAME_POINTER
|
||||||
ret
|
ret
|
||||||
.endif
|
|
||||||
ALIGN_TEXT
|
ALIGN_TEXT
|
||||||
1:
|
1:
|
||||||
|
.endif
|
||||||
rep
|
rep
|
||||||
movsb
|
movsb
|
||||||
|
|
||||||
@ -525,9 +525,9 @@ END(copyout_smap_erms)
|
|||||||
movq %rax,PCB_ONFAULT(%r9)
|
movq %rax,PCB_ONFAULT(%r9)
|
||||||
POP_FRAME_POINTER
|
POP_FRAME_POINTER
|
||||||
ret
|
ret
|
||||||
.endif
|
|
||||||
ALIGN_TEXT
|
ALIGN_TEXT
|
||||||
1:
|
1:
|
||||||
|
.endif
|
||||||
rep
|
rep
|
||||||
movsb
|
movsb
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user