summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/libefi/efifs.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove file system support based on the simple file system protocolmarcel2010-01-091-441/+0
| | | | | | | | | | | | | | | | | | | | | | | as this only allows us to access file systems that EFI knows about. With a loader that can only use EFI-supported file systems, we're forced to put /boot on the EFI system partition. This is suboptimal in the following ways: 1. With /boot a symlink to /efi/boot, mergemaster complains about the mismatch and there's no quick solution. 2. The EFI loader can only boot a single version of FreeBSD. There's no way to install multiple versions of FreeBSD and select one at the loader prompt. 3. ZFS maintains /boot/zfs/zpool.cache and with /boot a symlink we end up with the file on a MSDOS file system. ZFS does not have proper handling of file systems that are under Giant. Implement a disk device based on the block I/O protocol instead and pull in file system code from libstand. The disk devices are really the partitions that EFI knows about. This change is backward compatible. MFC after: 1 week
* Major rework of the ia64 loaders. The two primary objectives are:marcel2006-11-051-178/+218
| | | | | | | | | | | | | | 1. Make libefi portable by removing ia64 specific code and build it on i386 and amd64 by default to prevent regressions. These changes include fixes and improvements over previous code to establish or improve APIs where none existed or when the amount of kluging was unacceptably high. 2. Increase the amount of sharing between the efi and ski loaders to improve maintainability of the loaders and simplify making changes to the loader-kernel handshaking in the future. The version of the efi and ski loaders are now both changed to 1.2 as user visible improvements and changes have been made.
* Extend struct devdesc with a unit field, called d_unit. Promote themarcel2006-11-021-1/+1
| | | | | | | | | device (kind) specific unit field to the common field. This change allows a future version of libefi to work without requiring anything more than what is defined in struct devdesc and as such makes it possible to compile said version of libefi for different platforms without requiring that those platforms have identical derivatives of struct devdesc.
* Don't hardcode unit 0 for the current device if we're loaded from anmarcel2003-08-021-1/+12
| | | | | | | | | | | | EFI file system. When booting from a CD and there's already an EFI system partition on the disk, setting the current device to unit 0 will select the harddisk. This invariably breaks installing FreeBSD when other operating systems have been installed before. We obviously want to do the same when we're booting over the network. Maybe later. Based on a patch (from memory) from: arun
* Increase the block size for reading and writing from 8KB to 1MB andmarcel2003-02-261-4/+7
| | | | | | | introduce a preprocessor define for it. The larger block size significantly speeds up the loading of the kernel. Submitted by: Arun Sharma <arun.sharma@intel.com>
* Finally fix loader completely for IA64. efifs_stat() wasn't settingpeter2002-04-111-0/+2
| | | | | | the S_IFREG bit for regular files. This caused the path search code to skip it when it finally did find the kernel (after the common/module.c buffer overrun bug was fixed)
* Don't blindly dereference f->f_devdata as if it's always a pointer tomarcel2002-03-301-1/+6
| | | | | | | | | | | an efi_devdesc structure. When we're netbooting, f->f_devdata holds the address of the network socket variable. Dereferencing this caused some very unpredictable behaviour, including proper functioning. So, as a sanity check, we first make sure f->f_dev points to our own devsw. If not, the open will fail before we use f->f_devdata. This solves the netboot hangs I invariably got whenever I used the latest toolchain to compile the EFI loader.
* Add EFI write support to loaderpeter2002-03-191-2/+30
|
* Fix typo in comment.dfr2001-10-111-1/+1
|
* Add a twiddle meter when reading from files. Gives me something to lookdfr2001-09-221-6/+17
| | | | at when a kernel is loading from a floppy.
* Add a libstand filesystem for accessing EFI native filesystems.dfr2001-09-071-0/+341
OpenPOWER on IntegriCloud