freebsd-src/sys
John Baldwin e1b4a23921 The recent change to increase the zfsboot size to 64k made a few BIOSes
unhappy (probably they don't handle crossing the 64k boundary, etc.).
Fix this by changing zfsldr to use a loop reading from the disk one
sector at a time.  To avoid trashing the saved copy of the MBR which is
used for disk I/O, read zfsboot2 at address 0x9000.  This has the
advantage that BTX no longer needs to be relocated as it is read into
the correct location.  However, the loop to relocate zfsboot2.bin can
now cross a 64k boundary, so change it to use relative segments instead.
(This will need further work if zfsboot2.bin ever exceeds 64k.)

While here, stop storing a relocated copy of zfsldr at 0x700.  This was
only used by the xread hack which has recently been removed (and even
that use was dubious).  Also, include the BIOS error code as hex when
reporting read errors to aid in debugging.

Much thanks to Henri Hennebert for patiently testing various iterations
of the patch as well as fixing the zfsboot2.bin relocation to use
relative segments.

MFC after:	1 week
2011-06-23 15:53:17 +00:00
..
amd64 Move {amd64,i386}/pci/pci_bus.c and {amd64,i386}/include/pci_cfgreg.h to 2011-06-22 21:04:13 +00:00
arm MFC 2011-05-13 20:58:48 +00:00
boot The recent change to increase the zfsboot size to 64k made a few BIOSes 2011-06-23 15:53:17 +00:00
bsm Add ECAPMODE, "Not permitted in capability mode", a new kernel errno 2011-03-01 13:14:28 +00:00
cam Fix ATAPI breakage introduced by r223443. It made SCSI commands to ATAPI 2011-06-23 15:10:44 +00:00
cddl Fix clang warnings. 2011-06-18 13:56:33 +00:00
compat Return empty cmdline/environ string for processes with kernel address 2011-06-17 07:30:56 +00:00
conf - Add more USB templates for various USB device classes 2011-06-23 07:54:03 +00:00
contrib Add _mbuf() variants of various inpcb-related interfaces, including lookup, 2011-06-04 16:33:06 +00:00
crypto Fix a bug in the result of manual assembly. 2011-03-02 14:56:58 +00:00
ddb Fix making kernel dumps from the debugger by creating a command 2011-06-07 01:28:12 +00:00
dev add missing #define for the non-debug case. 2011-06-23 12:11:43 +00:00
fs Plug an mbuf leak in the new NFS client that occurred when a 2011-06-22 21:10:12 +00:00
gdb Modify kdb_trap() so that it re-calls the dbbe_trap function as long as 2011-02-18 22:25:11 +00:00
geom Change the way how we update bootcode for BSD scheme. 2011-06-20 12:22:30 +00:00
gnu Fix typo in unused function name 2011-05-22 09:58:48 +00:00
i386 Move {amd64,i386}/pci/pci_bus.c and {amd64,i386}/include/pci_cfgreg.h to 2011-06-22 21:04:13 +00:00
ia64 Use a non-standard page size that is supported. 2011-06-21 12:38:40 +00:00
isa Move VT switching hack for suspend/resume from bus drivers to syscons.c 2011-05-09 18:46:49 +00:00
kern Set negative quality to TSC timecounter when C3 state is enabled for Intel 2011-06-22 16:40:45 +00:00
kgssapi Fix the kgssapi so that it can be loaded as a module. Currently 2011-06-19 22:08:55 +00:00
libkern Fix typos - remove duplicate "is". 2011-02-23 09:22:33 +00:00
mips MFC 2011-06-04 22:05:20 +00:00
modules - Add more USB templates for various USB device classes 2011-06-23 07:54:03 +00:00
net Garbage collect never used global, sysctl, externs. 2011-06-21 07:19:03 +00:00
net80211 Add a callback for ADDBA response timeouts. 2011-06-20 11:46:03 +00:00
netatalk
netgraph Be consistent with r160968: keep autoSrcAddr flag untouched when 2011-06-23 09:42:41 +00:00
netinet Export AddLink() function from libalias. It can be used when custom 2011-06-22 20:00:27 +00:00
netinet6 Add the missing call to ip6_ipsec_filtertunnel() to be able to control 2011-06-08 10:59:36 +00:00
netipsec Release SP's refcount in key_get_spdbyid(). 2011-05-09 13:16:21 +00:00
netipx
netnatm
netncp
netsmb
nfs Change the sysctl naming for the old and new NFS clients 2011-05-15 20:52:43 +00:00
nfsclient Fix the kgssapi so that it can be loaded as a module. Currently 2011-06-19 22:08:55 +00:00
nfsserver Fix the kgssapi so that it can be loaded as a module. Currently 2011-06-19 22:08:55 +00:00
nlm Add a lock flags argument to the VFS_FHTOVP() file system 2011-05-22 01:07:54 +00:00
ofed MFC 2011-05-27 16:09:10 +00:00
opencrypto After the r219999 is merged to stable/8, rename fallocf(9) to falloc(9) 2011-04-01 13:28:34 +00:00
pc98 - Reduce diffs against i386. 2011-06-13 13:24:33 +00:00
pci Do a sweep of the tree replacing calls to pci_find_extcap() with calls to 2011-03-23 13:10:15 +00:00
powerpc Fix merge typo. 2011-06-23 09:46:12 +00:00
rpc Fix the kgssapi so that it can be loaded as a module. Currently 2011-06-19 22:08:55 +00:00
security - Add a FEATURE for capsicum (security_capabilities). 2011-03-04 09:03:54 +00:00
sparc64 Fix whitespace 2011-06-21 20:50:55 +00:00
sys Set negative quality to TSC timecounter when C3 state is enabled for Intel 2011-06-22 16:40:45 +00:00
teken mdoc: reorder sections consistently 2011-06-02 09:56:53 +00:00
tools GNU awk does not output escaped newlines in multi-line printc statements. This 2011-03-31 21:33:33 +00:00
ufs - Fix directory count rollbacks by passing the mode to the journal dep 2011-06-20 03:25:09 +00:00
vm Revert to using the page queues lock in vm_page_clear_dirty_mask() on 2011-06-23 05:23:59 +00:00
x86 Move {amd64,i386}/pci/pci_bus.c and {amd64,i386}/include/pci_cfgreg.h to 2011-06-22 21:04:13 +00:00
xdr
xen Monitor and emit events for XenStore changes to XenBus trees 2011-06-11 04:59:01 +00:00
Makefile Include sys/xen in cscope tag file generation. 2011-06-10 20:51:41 +00:00