Commit Graph

1790 Commits

Author SHA1 Message Date
maxim
bbcd6fc1d4 o Wrap long lines. 2007-01-14 13:55:43 +00:00
maxim
26a88b797d o Typo: note -> node.
PR:		misc/107906
Submitted by:	Alex Keda
MFC after:	3 days
2007-01-14 13:51:35 +00:00
maxim
155b694180 o Move the comment to the correct place.
PR:		misc/107904
MFC after:	3 days
2007-01-14 12:20:31 +00:00
marius
1d842041db Garbage collect the code for auto-loading modules based on ISAPNP IDs,
which is #if'ed out since nearly eight years, along with its outdated
database.

Agreed by:	ru (some months ago)
2007-01-07 22:25:45 +00:00
imp
f52bff60b3 MFp4: differences for bwct ethernet attachment 2006-12-20 18:26:37 +00:00
imp
4a8daf1b95 MFp4: Differences in flash part for bwct. need a more generic way to cope. 2006-12-20 18:25:16 +00:00
imp
863d7fa984 MFp4: Add timeout to eeprom access for lame eeprom that go awol 2006-12-20 18:19:52 +00:00
imp
d08a8bf72b MFp4: bwct memory size and PLL parameters 2006-12-20 18:18:24 +00:00
imp
a75cd7f9db MFp4: bwct boot rom is different. need a more generic way to cope long term. 2006-12-20 18:16:49 +00:00
imp
6fc9407906 MFp4: Delay a second or two after the upload before printing Done.
Add an automatic reset for remote operational luvin' goodness.
2006-12-20 17:50:02 +00:00
imp
a4b3e03516 MFp4: bwct is a new board choice. 2006-12-20 17:47:54 +00:00
kmacy
f94653c6cc add an interface for passing the entire kernel size up front to the
loader so that it can memory can be allocated aligned at the beginning of
the desired large page
2006-12-18 07:35:14 +00:00
yongari
668e46b918 Add an entry for the msk(4) module. 2006-12-13 02:48:22 +00:00
jhb
7e6ec61a87 Ignore any breakpoint instructions (int 3) we encounter in vm86 mode
rather than treating them as a fatal exception and halting.  At least one
storage BIOS (some newer mpt(4) parts) have a breakpoint instruction in
their disk read routine.

MFC after:	3 days
2006-12-06 17:45:35 +00:00
yar
7a8aafd20a Note that not all architectures use sendfile(2) buffers;
refer to the respective manpage for details.

MFC after: 3 days
2006-11-29 05:53:25 +00:00
kmacy
e0689a2121 remove CDDL derive hcall.S 2006-11-23 21:29:50 +00:00
marcel
a8077682d0 Remove LDR_LOG2_PGSZ, ia64_pgtbl and ia64_pgtblsz. They are part of
a WIP and not used yet.
2006-11-19 20:04:11 +00:00
ru
3e4907a052 Remove an unused variable. 2006-11-16 13:32:30 +00:00
imp
b33232cde3 Mfp4: Remove mci_device.c. It should have been removed when it was
merged ito sd-card.c, but this is an imperfect world.
2006-11-16 00:55:24 +00:00
imp
96a7724b94 Move to using a common arm_init.S. These things are more similar than
different at this point.
2006-11-16 00:53:28 +00:00
imp
1d68e9938f MFp4: Don't fix the size at 8k, and some minor cleanups. andre@ contributed
to fixing this problem.
2006-11-16 00:49:50 +00:00
imp
48373925cf MFp4: Improvements, including the ability to download to an arbitrary
part of the spi flash.
2006-11-16 00:48:53 +00:00
imp
fc399b46b5 Tweaks for better boot flavor support. 2006-11-16 00:48:04 +00:00
imp
823e575ded Mfp4: We no longer need ee.h included here. 2006-11-16 00:47:31 +00:00
imp
1b8790bd34 MFp4: boot2 should now build 2006-11-09 20:45:22 +00:00
imp
2bf4833b31 MFp4: boot on KB9202 correctly. Also, reduce the size of the SD/MMC driver
somewhat.
2006-11-09 20:32:36 +00:00
imp
406cdf57d6 MFp4: Support KB9202 booting better 2006-11-09 20:23:51 +00:00
imp
4f58f2117a Fix typo 2006-11-09 20:08:46 +00:00
imp
237cf39d9d MFp4: Make boot2 work on Kwikbyte KB9202 boards. 2006-11-09 20:07:26 +00:00
imp
5719b01094 MFp4: Merge a slightly more generic build infrastructure. 2006-11-09 19:58:14 +00:00
imp
b760fac93b MFp4: Remove bogus \r 2006-11-09 19:55:25 +00:00
nyan
0b828fe851 Add a stub of bios_addsmapdata(). PC98 does not have BIOS SMAP. 2006-11-09 08:28:02 +00:00
nyan
44544562fa MFi386: revisions from 1.39 to 1.43. 2006-11-09 08:05:51 +00:00
marcel
9ef7e5e3af Major rework of the ia64 loaders. The two primary objectives are:
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.
2006-11-05 22:03:04 +00:00
marcel
5478f7099d Make this compile on EFI32. The EFI_PHYSICAL_ADDRESS type is always
64-bit, even when sizeof(void *) is 32-bit.
2006-11-03 04:19:31 +00:00
marcel
6ca4cb8fea Properly calculate the checksum of the APIC table. 2006-11-03 04:04:19 +00:00
ru
369ac0052b Unbreak compile with ELF_VERBOSE defined, and fix format warnings. 2006-11-02 17:52:43 +00:00
ru
72eb46ae51 Revert the last change. Masking only 2 MSBs of the virtual address
to get the physical address doesn't work for all values of KVA_PAGES,
while masking 8 MSBs works for all values of KVA_PAGES that are
multiple of 4 for non-PAE and 8 for PAE.  (This leaves us limited
with 12MB for non-PAE kernels and 14MB for PAE kernels.)

To get things right, we'd need to subtract the KERNBASE from the
virtual address (but KERNBASE is not easy to figure out from here),
or have physical addresses set properly in the ELF headers.

Discussed with:	jhb
2006-11-02 17:28:38 +00:00
marcel
2904312753 Sync the EFI headers with version 1.10.14.62 of the Intel sample EFI
implementation. This re-introduces C99 style comments that previously
were replaced by original C comments.
2006-11-02 02:42:48 +00:00
marcel
dc91b1990a Extend struct devdesc with a unit field, called d_unit. Promote the
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.
2006-11-02 01:23:18 +00:00
marcel
342a196627 Don't unconditionally compile-in the bcache code. It's only used on
i386/amd64 and pc98. Remove useless calls to bcache_init() from the
ia64 and sparc64 loaders, as well as from the OFW common code.
2006-11-02 00:26:45 +00:00
marcel
a1fe87f061 o Make sure to clear f->f_devdata if d_dev->dv_open() fails. It
would otherwise cause devclose() to free() the memory again.
o  Refactor devopen() so that it's more readable.
2006-11-02 00:02:22 +00:00
ru
f0e19d90c0 Because the BTX mini-kernel now uses flat memory mode and clients
are no longer limited to a virtual address space of 16 megabytes,
only mask high two bits of a virtual address.  This allows to load
larger kernels (up to 1 gigabyte).  Not masking addresses at all
was a bad idea on machines with less than >3G of memory -- kernels
are linked at 0xc0xxxxxx, and that would attempt to load a kernel
at above 3G.  By masking only two highest bits we stay within the
safe limits while still allowing to boot larger kernels.

(This is a safer reimplmentation of sys/boot/i386/boot2/boot.2.c
rev. 1.71.)

Prodded by:	jhb
Tested by:	nyan (pc98)
2006-10-29 14:50:58 +00:00
ru
b3e38fbc69 Adopt comments borrowed from aout_freebsd.c. 2006-10-26 20:04:22 +00:00
ru
00c76003d2 Restore support for -c and -d that were treacherously murdered in
rev. 1.58.  (This only costs us four bytes.)

Prodded by:	bde
MFC after:	3 days
2006-10-26 19:41:02 +00:00
ru
72a6cefb67 Back out rev. 1.71 as it breaks directly loading (i386) kernels.
OK'ed by:	jhb
PR:		i386/96430, i386/104709
MFC after:	3 days
2006-10-26 19:15:54 +00:00
imp
d928160750 Don't descend into at91 until we sort out the boot loader issues more generally 2006-10-23 00:05:28 +00:00
imp
83009d5ef8 MFp4: default to not loading the fpga 2006-10-21 22:51:21 +00:00
imp
42aaacd596 MFp4: Update to smaller code footprint. 2006-10-21 22:44:26 +00:00
imp
824e6015c6 MFp4: Move to smaller code footprint. 2006-10-21 22:43:39 +00:00