diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-08-18 22:21:10 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-08-18 22:21:10 -0400 |
commit | 0088259ac0db04921dcc8e1ead5a51525eff116d (patch) | |
tree | 88b81710e97c735f428cab895b2781306d9ada46 /src/ramdisk.c | |
parent | f5624d27ec17e1aab28a8ff08aba93d2d9cd8c04 (diff) | |
download | seabios-0088259ac0db04921dcc8e1ead5a51525eff116d.tar.gz |
Further simplify cbfs functions - don't pass iscomp to callers.
The cbfs data copy function can determine if the file is compressed on
its own - it doesn't need the iscomp parameter passed in.
Diffstat (limited to 'src/ramdisk.c')
-rw-r--r-- | src/ramdisk.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ramdisk.c b/src/ramdisk.c index cb78f454..07f25230 100644 --- a/src/ramdisk.c +++ b/src/ramdisk.c @@ -19,11 +19,10 @@ ramdisk_setup() return; // Find image. - int iscomp; - struct cbfs_file *file = cbfs_finddataprefix("floppyimg/", NULL, &iscomp); + struct cbfs_file *file = cbfs_findprefix("floppyimg/", NULL); if (!file) return; - u32 size = cbfs_datasize(file, iscomp); + u32 size = cbfs_datasize(file); dprintf(3, "Found floppy file %s of size %d\n", cbfs_filename(file), size); int ftype = find_floppy_type(size); if (ftype < 0) { @@ -41,7 +40,7 @@ ramdisk_setup() add_e820(loc, size, E820_RESERVED); // Copy image into ram. - cbfs_copyfile(file, (void*)loc, size, iscomp); + cbfs_copyfile(file, (void*)loc, size); // Setup driver. dprintf(1, "Mapping CBFS floppy %s to addr %x\n", cbfs_filename(file), loc); |