Commit Graph

28660 Commits

Author SHA1 Message Date
thorpej 21056065db Move the code that enumerates the pnpbios device nodes into a
separate function.
2001-09-27 17:13:39 +00:00
uch 69ed217599 ANSIfy, KNF. 2001-09-27 16:31:23 +00:00
leo 984d919c49 Add ELF stuff to loader. This is a combined effort from Thomas Gerner and
myself.
2001-09-27 14:29:22 +00:00
minoura 7d1fc276fa Make these compile with the old (a.out) toolchain. 2001-09-27 14:08:27 +00:00
sato 9a679b0eb1 - add VR4181 ICU register map.
- add VR4181 intr levels.
- add VR4131 ICU register map.
- add VR4131 intr levels.
XXX: not yet tested these platform.
2001-09-27 13:59:37 +00:00
minoura f5f7a94fa6 Add some missing definitions. 2001-09-27 13:27:54 +00:00
minoura 99247aadcc Initial commit of the new bootloader to support ELF kernel.
It consists of two programs named boot_ufs and boot; the former reads
the latter (an OMAGIC a.out).
Boot now utilizes the libsa library to read the actual kernel.

 - LFS code exists, but probobly does not work.
 - Currently the ELF toolchain is required.
 - Many features are missing.
2001-09-27 10:14:49 +00:00
minoura 7e950cc6e8 libsa for the new bootloader of x68k port. 2001-09-27 10:03:26 +00:00
minoura 8d3d810cc4 Embed the version number of the interface between the bootloader and
kernel.  See amiga.
2001-09-27 09:55:10 +00:00
mrg a68e13f815 implement generic soft interrupts as described in softintr(9). convert
the network, clock & serial softint's to use them.
2001-09-27 02:05:42 +00:00
shin 541214b72d clock_machdep.h was removed. 2001-09-27 01:08:22 +00:00
eeh 98ecb5b215 getprop* -> PROM_getprop* 2001-09-26 20:53:05 +00:00
eeh 64d9292e8c *NEVER* cast a reference parameter to a different type. 2001-09-26 15:05:49 +00:00
fvdl 0596817942 Apparently the old gas doesn't like *(%reg), so revert this one for now,
until everyone's switched to the new toolchain.
2001-09-26 14:07:51 +00:00
fvdl 7b78937c2b More '*' usage in indirect calls/jumps. 2001-09-26 09:58:39 +00:00
is 9a02c51726 Security check - don't paste new command line into bootblock that
don't look like the new style bootblock (with enough space in it).
2001-09-25 19:07:00 +00:00
is e9023155ad Replace skript by a C program, that knows how to manipulate the default
command line in the bootblock and to recompute the bootblock checksum.
2001-09-25 18:47:55 +00:00
eeh e3f674b10c Change a printf to DEBUG only. 2001-09-25 00:06:55 +00:00
eeh 766a9b8c9c Change bus_space_mmap() signature to the official one. 2001-09-24 23:49:31 +00:00
is 36fb85f059 Put default command line into a fixed location with a known size.
This is intended to allow patching of the command line without a
compiler.
2001-09-24 20:27:08 +00:00
rearnsha a5480e24b4 Hmm, on a.out platforms we have
size_t == unsigned int
on elf platforms we have
	size_t == unsigned long int

So use %ld when printing and cast md->md_size to long.
2001-09-24 17:00:52 +00:00
takemura ca59965026 Renamed platid_search() to platid_search_data() and added new platid_search().
Platid_name() was re-implemented using platid_search().
2001-09-24 14:29:30 +00:00
wiz 4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
jdc b6426dff1e Fix typo in !COMPAT_13 case. 2001-09-24 13:19:54 +00:00
takemura ce2f39b63a Hacking code piece, dumping PCI configration register. 2001-09-24 10:42:02 +00:00
leo 1c35b74032 Enable ELF symbols in ddb. 2001-09-24 09:21:24 +00:00
leo c0233c6e50 Add missing argument to pmap_update(). 2001-09-24 09:17:19 +00:00
chs 7173d0a3e8 use pmap_kenter_pa() instead of pmap_enter() in a few places. 2001-09-24 05:37:50 +00:00
mhitch a52fa14deb Run vfs_shutdown() if NOSYNC is *not* set, rather than set. 2001-09-24 03:56:03 +00:00
chs 3628675acf implement pmap_wired_count(). 2001-09-24 01:48:15 +00:00
sommerfeld 98b0d5654c replace %ecx with %cl to silence new assembler warnings. 2001-09-24 01:09:33 +00:00
tls 9b9300274d GCC 2.95 generates significantly larger code with -O2 than our old compiler did; this can cause the second-stage bootblock to exceed the number of blocks that fit in the list in the first-stage bootblock. I thought we used to explicitly set -Os in here; anyway, with this change, we do now! 2001-09-23 23:43:29 +00:00
jdolecek f5599abc0a fix typo 2001-09-23 19:59:19 +00:00
manu 2d16421460 Moved COMPAT_LINUX config stuff from arch/sgimips to arch/mips, so that it's
available on all Mips ports.
2001-09-23 19:45:41 +00:00
eeh c9a848a23c 32-bit kernels have 32-bit pointers. 2001-09-23 17:31:17 +00:00
fredb 43ff3eb524 Nit -- this kernel is called "INSTALLSBC", not "INSTALL". 2001-09-23 17:30:52 +00:00
fredb 780a06ff07 Sync with "GENERIC". 2001-09-23 17:18:00 +00:00
uch 6c1c0aff9c improve interrupt response. 2001-09-23 14:32:52 +00:00
chs 59c12af6f5 implement pmap_wired_count(). 2001-09-23 09:01:13 +00:00
chs 62b6d75cc8 implement pmap_wired_count(). 2001-09-23 08:12:59 +00:00
manu 142bd48453 config stuff for COMPAT_LINUX 2001-09-22 21:30:15 +00:00
manu 151b90c898 Added Linux emulation support to Mips port 2001-09-22 21:29:20 +00:00
eeh 4061423088 BADREG was no longer defined. 2001-09-22 19:58:28 +00:00
eeh 53ebc1b431 Correct the `fast' int types. 2001-09-22 19:51:48 +00:00
simonb 5847ff0480 *int_fast64_t should be "long", not "long long".
From Klaus Klein.
2001-09-22 18:03:10 +00:00
bjh21 0368c93d47 Move the functionality of eca_init_rx_hard() into the tail end of
eca_fiqhandler_tx and eca_tx_downgrade.  This seems to reduce the
number of Rx overruns to zero on my current test case.
2001-09-22 17:19:27 +00:00
bjh21 35de4e1a4c Add fiq_downgrade_dont_disable, which does what fiq_downgrade does, but
doesn't disable FIQs in the process.
2001-09-22 17:16:18 +00:00
rafal 0143775c35 If OSLoadOptions is set to auto, boot straight to multi-user. Requested
one too many times and it seems to do no harm, so enable it.
2001-09-22 16:26:34 +00:00
bjh21 ea073a0cd4 eca_init_rx_hard() shouldn't call eca_init_rx_soft(). That's the
whole point.
2001-09-22 15:33:53 +00:00
bjh21 cddb5108f8 More re-arrangements: Split eca_init_rx() into two parts, one of which
(eca_init_rx_soft()) just sets up software state, and the other of
which (eca_init_rx_hard()) actually puts the interface into receive
mode and sets up the FIQ handler etc.  Arrange that when we transmit a
frame, eca_init_rx_soft() has already been called, so we only need to
call eca_init_rx_hard() from the Tx downgrade handler.

The point of this is that I should be able to incorporate the
functionality of eca_init_rx_hard() into the Tx FIQ handler so that we
can switch from Tx to Rx with little enough delay that we don't drop
the first few bytes of the incoming frame.
2001-09-22 15:29:20 +00:00