libmach: implement register fetch for 32-bit x86 kernel Also use memmove to silence some gcc warnings.
libmach: implement register fetch for 32-bit x86 kernel
Also use memmove to silence some gcc warnings.

Fixes issue 1036.

R=r, EtherealMachine
CC=golang-dev
http://codereview.appspot.com/1943049

Triskite/willstone-goclone,webfd/go-zh,rflanagan/reginaldflanagan-project1,sanjosh/sanjos100-tipc,sanjosh/sanjos100-tipc,rflanagan/reginaldflanagan-project1,glycerine/jeaten-go-arrayof-structof,Triskite/willstone-goclone,d0f/go-zh,webfd/go-zh,mhennings/marcohennings-go,sanjosh/sanjos100-tipc,sanjosh/sanjos100-tipc,rflanagan/reginaldflanagan-project1,scirelli/scirelli-go,webfd/go-zh,glycerine/jeaten-go-arrayof-structof,scirelli/scirelli-go,bryanxu/go-zh,mhennings/marcohennings-go,npe9/noahevans-go9,npe9/noahevans-go9,bryanxu/go-zh,scirelli/scirelli-go,rdp/rogerpack2005-golang,npe9/noahevans-go9,rflanagan/reginaldflanagan-project1,rflanagan/reginaldflanagan-project1,d0f/go-zh,glycerine/jeaten-go-arrayof-structof,glycerine/jeaten-go-arrayof-structof,rflanagan/reginaldflanagan-project1,sanjosh/sanjos100-tipc,glycerine/jeaten-go-arrayof-structof,Triskite/willstone-goclone,npe9/noahevans-go9,webfd/go-zh,rdp/rogerpack2005-golang,bryanxu/go-zh,rdp/rogerpack2005-golang,rdp/rogerpack2005-golang,scirelli/scirelli-go,bryanxu/go-zh,d0f/go-zh,Triskite/willstone-goclone,bryanxu/go-zh,scirelli/scirelli-go,glycerine/jeaten-go-arrayof-structof,scirelli/scirelli-go,mhennings/marcohennings-go,sanjosh/sanjos100-tipc,Triskite/willstone-goclone,bryanxu/go-zh,scirelli/scirelli-go,bryanxu/go-zh,rdp/rogerpack2005-golang,npe9/noahevans-go9,glycerine/jeaten-go-arrayof-structof,mhennings/marcohennings-go,rdp/rogerpack2005-golang,d0f/go-zh,webfd/go-zh,Triskite/willstone-goclone,npe9/noahevans-go9,npe9/noahevans-go9,rdp/rogerpack2005-golang,Triskite/willstone-goclone,Triskite/willstone-goclone,glycerine/jeaten-go-arrayof-structof,scirelli/scirelli-go,rflanagan/reginaldflanagan-project1,npe9/noahevans-go9,rflanagan/reginaldflanagan-project1,d0f/go-zh,webfd/go-zh,rdp/rogerpack2005-golang,mhennings/marcohennings-go,d0f/go-zh,mhennings/marcohennings-go,mhennings/marcohennings-go,webfd/go-zh,sanjosh/sanjos100-tipc,d0f/go-zh,sanjosh/sanjos100-tipc,webfd/go-zh,bryanxu/go-zh,mhennings/marcohennings-go,d0f/go-zh