amd64: macroify copyin/copyout and provide erms variants, follow up

Fix a fat-fingered typo with a "funny" side-effect: when doing copyin on a
cpu without ERMS and with size being a multiply of 8 a page fault would be
triggered resulting in EFAULT.

Pointy hat: mjg
Approved by:	re (implicit)
This commit is contained in:
mjg 2018-09-20 20:32:08 +00:00
parent 8ff5f08050
commit 253328ab5c

View File

@ -410,7 +410,7 @@ copyout_fault:
movsq
movb %al,%cl
andb $7,%cl /* copy remaining bytes */
je 1
je 1f
.endif
rep
movsb