]> git.baikalelectronics.ru Git - kernel.git/commit
x86, setup: When probing memory with e801, use ax/bx as a pair
authorH. Peter Anvin <hpa@linux.intel.com>
Mon, 25 Apr 2011 21:52:37 +0000 (14:52 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 25 Apr 2011 21:52:37 +0000 (14:52 -0700)
commit1b2f25a8790071b81d66b1c9fabe33f851034531
treecaf1d25a448fdf56878de7fb700b26655676ca0d
parent173c810f2ec690350e1f3563a3645aff95fddda2
x86, setup: When probing memory with e801, use ax/bx as a pair

When we use BIOS function e801 to probe memory, we should use ax/bx
(or cx/dx) as a pair, not mix and match.  This was a typo during the
translation from assembly code, and breaks at least one set of
machines in the field (which return cx = dx = 0).

Reported-and-tested-by: Chris Samuel <chris@csamuel.org>
Fix-proposed-by: Thomas Meyer <thomas@m3y3r.de>
Link: http://lkml.kernel.org/r/1303566747.12067.10.camel@localhost.localdomain
arch/x86/boot/memory.c