aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-07-11 11:55:49 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-09-27 19:01:37 -0400
commit5e9a6d5b03b8a7458b1f1d68d6e98f5de16f4e0b (patch)
tree3d065255b767cee2425b366b1f595bee6b5014dd
parentd6728f301d7e6e31ba0ee2fa51ed4a24feab8860 (diff)
downloadseabios-5e9a6d5b03b8a7458b1f1d68d6e98f5de16f4e0b.tar.gz
boot: Rename drive_g to drive
The 'struct drive_s' pointer is a 32bit pointer (and boot.c code is only compiled in 32bit mode), so avoid using the "_g" suffix on the pointer. Tested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/boot.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/boot.c b/src/boot.c
index 834ac3f3..ff705fd4 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -379,24 +379,24 @@ boot_add_bcv(u16 seg, u16 ip, u16 desc, int prio)
}
void
-boot_add_floppy(struct drive_s *drive_g, const char *desc, int prio)
+boot_add_floppy(struct drive_s *drive, const char *desc, int prio)
{
bootentry_add(IPL_TYPE_FLOPPY, defPrio(prio, DefaultFloppyPrio)
- , (u32)drive_g, desc);
+ , (u32)drive, desc);
}
void
-boot_add_hd(struct drive_s *drive_g, const char *desc, int prio)
+boot_add_hd(struct drive_s *drive, const char *desc, int prio)
{
bootentry_add(IPL_TYPE_HARDDISK, defPrio(prio, DefaultHDPrio)
- , (u32)drive_g, desc);
+ , (u32)drive, desc);
}
void
-boot_add_cd(struct drive_s *drive_g, const char *desc, int prio)
+boot_add_cd(struct drive_s *drive, const char *desc, int prio)
{
bootentry_add(IPL_TYPE_CDROM, defPrio(prio, DefaultCDPrio)
- , (u32)drive_g, desc);
+ , (u32)drive, desc);
}
// Add a CBFS payload entry
@@ -655,13 +655,13 @@ boot_disk(u8 bootdrv, int checksig)
// Boot from a CD-ROM
static void
-boot_cdrom(struct drive_s *drive_g)
+boot_cdrom(struct drive_s *drive)
{
if (! CONFIG_CDROM_BOOT)
return;
printf("Booting from DVD/CD...\n");
- int status = cdrom_boot(drive_g);
+ int status = cdrom_boot(drive);
if (status) {
printf("Boot failed: Could not read from CDROM (code %04x)\n", status);
return;