projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cdcdb9
)
Revert "x86: fix ghost EDD devices in /sys again"
author
H. Peter Anvin
<hpa@zytor.com>
Fri, 3 Oct 2008 17:22:33 +0000
(10:22 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Fri, 3 Oct 2008 17:22:33 +0000
(10:22 -0700)
This reverts commit
464f04c9e9b3b1c4f5ffb89c51d8ba2a2034c846
.
Obsoleted by commit
6cdcdb99cf7c2e1835fc5b471864d21161c3e679
.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/boot/edd.c
patch
|
blob
|
history
diff --git
a/arch/x86/boot/edd.c
b/arch/x86/boot/edd.c
index
067e28c
..
1aae8f3
100644
(file)
--- a/
arch/x86/boot/edd.c
+++ b/
arch/x86/boot/edd.c
@@
-32,9
+32,7
@@
static int read_mbr(u8 devno, void *buf)
: "+a" (ax), "+c" (cx), "+d" (dx), "+b" (bx)
: : "esi", "edi", "memory");
- /* Some BIOSes do not set carry flag on error but still return
- * error in AH. The condition below is expected to catch both */
- return -!!ax; /* 0 or -1 */
+ return -(u8)ax; /* 0 or -1 */
}
static u32 read_mbr_sig(u8 devno, struct edd_info *ei, u32 *mbrsig)