Andrey Borzenkov 6cdcdb99cf x86 setup: fix ghost entries under /sys/firmware/edd take 3
Some BIOSes do not indicate error when trying to read from non-
existing device. Zero buffer before reading and check that we
possibly have valid MBR by looking for MBR magic.

This was fixed in different way for edd.S in
http://marc.info/?l=linux-kernel&m=114087765422490&w=2, but lost
again when edd.S was rewritten in C.

Signed-off-by: Andrey Borzenkov < arvidjaar@mail.ru>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2008-10-03 10:15:29 -07:00
..
2008-04-25 12:27:32 -07:00
2008-07-08 09:43:01 +02:00
2008-04-19 19:19:54 +02:00
2008-04-19 19:19:54 +02:00
2008-04-19 19:19:54 +02:00
2008-04-19 19:19:54 +02:00
2007-10-11 11:16:45 +02:00
2008-04-19 19:19:54 +02:00
2008-05-28 10:34:12 -07:00
2008-04-19 19:19:54 +02:00
2008-04-19 19:19:54 +02:00
2008-04-19 19:19:54 +02:00
2007-10-11 11:16:45 +02:00
2008-05-25 08:58:25 +02:00
2007-10-11 11:16:45 +02:00
2008-04-19 19:19:54 +02:00
2008-04-19 19:19:54 +02:00
2008-04-19 19:19:54 +02:00
2008-04-19 19:19:54 +02:00
2008-04-19 19:19:54 +02:00
2008-05-25 08:58:35 +02:00
2008-04-19 19:19:54 +02:00
2008-04-19 19:19:54 +02:00
2008-04-19 19:19:54 +02:00