kgdb: have ebin2mem call probe_kernel_write once
authorJason Wessel <jason.wessel@windriver.com>
Fri, 2 Apr 2010 16:33:29 +0000 (11:33 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 2 Apr 2010 19:58:17 +0000 (14:58 -0500)
commita0279bd58060ccedbd414edf97d50cfa3778c370
treeaf70474c8f284ce4a0429b22417699fa7b40e9a5
parent42be79e37e264557f12860fa4cc84b4de3685954
kgdb: have ebin2mem call probe_kernel_write once

Rather than call probe_kernel_write() one byte at a time, process the
whole buffer locally and pass the entire result in one go.  This way,
architectures that need to do special handling based on the length can
do so, or we only end up calling memcpy() once.

[sonic.zhang@analog.com: Reported original problem and preliminary patch]

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
kernel/kgdb.c