x86, ds: fix buffer alignment in debug store selftest
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 24 Apr 2009 07:43:09 +0000 (09:43 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 24 Apr 2009 08:18:51 +0000 (10:18 +0200)
commit782cc5ae6331d63b4febaa312c9d14493aafa9b8
tree765e8f0a294876d198b88051a29b74140b0c3b45
parent416dfdcdb894432547ead4fcb9fa6a36b396059e
x86, ds: fix buffer alignment in debug store selftest

The debug store selftest code uses a stack-allocated buffer, which is
not necessarily correctly aligned.

For tests using a buffer to hold a single entry, the buffer that is
passed to ds_request must already be suitably aligned.

Pass a suitably aligned portion of the bigger buffer.

[ Impact: fix hw-branch-tracer self-test failure ]

Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
Cc: markus.t.metzger@gmail.com
LKML-Reference: <20090424094309.A30145@sedona.ch.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/ds_selftest.c