CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2017/05/18 03:20:06
Modified files:
sys/arch/amd64/amd64: machdep.c
sys/arch/i386/i386: machdep.c
Log message:
Since copyin(9) already doeas access 32-bit quantities atomically, we can
add copyin32(9) as a simple C wrapper around it. These wrappers do check
alignment and return EFAULT if the userland pointer is misaligned. This is
enough to guarantee that the access doesn't cross a cache line boundary which
could make the access non-atomic.
ok mpi@, visa@, tedu@