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:
parent
8ff5f08050
commit
253328ab5c
@ -410,7 +410,7 @@ copyout_fault:
|
||||
movsq
|
||||
movb %al,%cl
|
||||
andb $7,%cl /* copy remaining bytes */
|
||||
je 1
|
||||
je 1f
|
||||
.endif
|
||||
rep
|
||||
movsb
|
||||
|
Loading…
x
Reference in New Issue
Block a user