x86: use wrappers for memory access helpers