Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80246
b: refs/heads/master
c: e479c83
h: refs/heads/master
v: v3
  • Loading branch information
devzero@web.de authored and Ingo Molnar committed Jan 30, 2008
1 parent 9172a50 commit 9ce7fa8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32d0b9898029b7b3c7f161d31f57c4831d9049eb
refs/heads/master: e479c8306f898fcdb9b36179071eae6338a17364
13 changes: 13 additions & 0 deletions trunk/arch/x86/boot/edd.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ void query_edd(void)
char eddarg[8];
int do_mbr = 1;
int do_edd = 1;
int be_quiet;
int devno;
struct edd_info ei, *edp;
u32 *mbrptr;
Expand All @@ -140,12 +141,21 @@ void query_edd(void)
do_edd = 0;
}

be_quiet = cmdline_find_option_bool("quiet");

edp = boot_params.eddbuf;
mbrptr = boot_params.edd_mbr_sig_buffer;

if (!do_edd)
return;

/* Bugs in OnBoard or AddOnCards Bios may hang the EDD probe,
* so give a hint if this happens.
*/

if (!be_quiet)
printf("Probing EDD...");

for (devno = 0x80; devno < 0x80+EDD_MBR_SIG_MAX; devno++) {
/*
* Scan the BIOS-supported hard disks and query EDD
Expand All @@ -162,6 +172,9 @@ void query_edd(void)
if (do_mbr && !read_mbr_sig(devno, &ei, mbrptr++))
boot_params.edd_mbr_sig_buf_entries = devno-0x80+1;
}

if (!be_quiet)
printf("OK\n");
}

#endif

0 comments on commit 9ce7fa8

Please sign in to comment.