summaryrefslogtreecommitdiff
path: root/core/fs/fs.c
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-03-28 13:57:54 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-03-28 14:38:34 +0100
commit0376c8d3b618c53914c44dd0c90b03e1f66c4bdc (patch)
treec68df1fa761d7beed1d35669be20b2005a3e60a1 /core/fs/fs.c
parent5b138643e73cd2ffc7edab1aea197c200c46f9d4 (diff)
downloadsyslinux-0376c8d3b618c53914c44dd0c90b03e1f66c4bdc.tar.gz
firmware, diskio: Create struct disk_private
We need a way of passing firmware-specific information to the disk I/O subsystem. Split the BIOS code into diskio_bios.c so that we don't include any disk BIOS symbols in the EFI executable. This way, the code in core/fs/diskio.c is firmware independent. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'core/fs/fs.c')
-rw-r--r--core/fs/fs.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/core/fs/fs.c b/core/fs/fs.c
index c2d17dc2..e6f35370 100644
--- a/core/fs/fs.c
+++ b/core/fs/fs.c
@@ -433,7 +433,7 @@ void pm_close_file(com32sys_t *regs)
*/
__bss16 uint16_t SectorSize, SectorShift;
-void fs_init(const struct fs_ops **ops, void *args)
+void fs_init(const struct fs_ops **ops, struct disk_private *priv)
{
static struct fs_info fs; /* The actual filesystem buffer */
int blk_shift = -1;
@@ -457,7 +457,7 @@ void fs_init(const struct fs_ops **ops, void *args)
fs.fs_dev = NULL;
} else {
if (!dev)
- dev = device_init(args);
+ dev = device_init(priv);
fs.fs_dev = dev;
}
/* invoke the fs-specific init code */
@@ -489,8 +489,3 @@ void fs_init(const struct fs_ops **ops, void *args)
SectorShift = fs.sector_shift;
SectorSize = fs.sector_size;
}
-
-void pm_fs_init(com32sys_t *regs)
-{
- fs_init(regs->eax.l, regs);
-}