Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113382
b: refs/heads/master
c: 98920dc
h: refs/heads/master
v: v3
  • Loading branch information
H. Peter Anvin committed Oct 3, 2008
1 parent f91ddd7 commit e211877
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6cdcdb99cf7c2e1835fc5b471864d21161c3e679
refs/heads/master: 98920dc3d1113b883cbc73e3293446d3525c6042
4 changes: 1 addition & 3 deletions trunk/arch/x86/boot/edd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e211877

Please sign in to comment.