Commit Graph

48761 Commits

Author SHA1 Message Date
bjh21 ddf906b00d Use ld -N (OMAGIC), since this saves the 32k of RAM (by not putting a gap
between text and data) and means that loadfile only needs one backward seek
to load the file rather than two (which is important for gzipped kernels).
2001-07-28 13:48:32 +00:00
chris 27f96e8440 Move the generic arm32 files into arm/arm32 from arm32/arm32, tested kernel builds on cats and riscpc. 2001-07-28 13:28:03 +00:00
chris 9c823196e0 Change -x into -X for linking, it makes traces more meaningful. 2001-07-28 13:24:24 +00:00
tsutsui 6be7c15373 bcopy -> memcpy 2001-07-28 13:21:26 +00:00
tsutsui 88fbdda31f bcopy -> memcpy 2001-07-28 13:08:34 +00:00
bjh21 f3b9fa04ed Only declare kernel objects ifdef _KERNEL. 2001-07-28 12:53:06 +00:00
bjh21 ec79dd3942 Add installation glue. 2001-07-28 12:44:54 +00:00
tsutsui 99297e58cb We no longer have MI ncr(4) driver. 2001-07-28 12:42:34 +00:00
chris 37dc65af43 bzero->memset 2001-07-28 12:29:58 +00:00
chris 338f184d45 Fixup stray interrupt handler's return address. 2001-07-28 12:28:56 +00:00
tsutsui 690c5b1ae3 Enable the Acard UIDE controllers by default.
My WDC MDMA-only (non-UDMA) drives did not work on the Acard controllers,
but it turns out that the problem was not Acard specific.
These WDC drives do not work on the ESS ISAPnP wdc port nor on
macppc obio wdc port neither, and another Quantum MDMA-only drive
works fine on the Acard.

These WDC drives work fine on my i386 pciide (which is initialized
by the BIOS), so maybe we have to do something in MI wdc to initialize
such drives properly...
2001-07-28 12:07:11 +00:00
chris 0481f078a0 bzero -> memset 2001-07-28 11:17:15 +00:00
scw d750508a87 Hook the error interrupt only once, otherwise we'd fail when hooking
the interrupt for the 2nd DRAM board where two boards are present.
2001-07-28 08:30:23 +00:00
matt 218b61dcd1 Change clock_t and time_t to more LP64 friendly types. 2001-07-28 07:43:07 +00:00
matt 36dc943f75 Change ARM-ELF to LP64 friendly types. 2001-07-28 07:42:28 +00:00
matt f47c5bbd3d Under ELF, change clock_t and time_t to int's (more LP64 friendly). 2001-07-28 05:04:45 +00:00
itojun 888b31fb38 indent fix 2001-07-28 01:13:56 +00:00
pooka 4ec277f9ee regen 2001-07-28 00:33:43 +00:00
pooka 70cd305a5d 3c556 V.90 MiniPCI modem 2001-07-28 00:33:01 +00:00
bjh21 9139a37393 New arm26 bootloader. Mostly a translation of BBBB into C, using libsa so
we get goodies like gzipped kernels for free.
2001-07-27 23:13:49 +00:00
bjh21 0ad24007df Add assorted stuff that we need in order to shut RISC OS down cleanly. 2001-07-27 23:09:15 +00:00
thorpej fab087b3a2 Tell the MII layer to advertise PAUSE capability, and configure
the chip's PAUSE threshold.
2001-07-27 22:46:20 +00:00
thorpej 7459c35d44 Clean up 1000BASE-SX autonegotiation, and add a way to advertise
PAUSE capability.
2001-07-27 22:44:59 +00:00
scw 27ae3aab7c Blah, yet another nit: s/irq/ipl/ 2001-07-27 21:56:10 +00:00
scw ea00e7cda2 Don't bother trying to initiate a DRAM scrub on startup as it requires
frobbing with registers which are marked as "For Test Purposes [only]".
2001-07-27 21:54:07 +00:00
thorpej 9e74a14e1f Add a sysctl to frob sb_max. 2001-07-27 21:19:09 +00:00
bjh21 d8372315a2 Rudimentary OS_Byte support, and an extra VDU variable. 2001-07-27 21:10:04 +00:00
bjh21 d939fd1e55 Add support for OS_ReadVduVariables, with #defines for the variables that BBBB
uses.
2001-07-27 20:49:09 +00:00
scw c184f03348 Remove Mistakenly Left In comments around some `#ifdef DIAGNOSTIC' tests. 2001-07-27 20:48:58 +00:00
bjh21 a24c2adedf Limit the heap so as to allow 4 KB of stack, which should be enough for most
purposes.
2001-07-27 20:48:20 +00:00
scw 8343a1492f Forgot to shift the DRAM Bank identifiers by four. 2001-07-27 20:33:35 +00:00
thorpej 59612894e1 Now that M_TRAILINGSPACE() checks buffer writeability properly,
we can greatly simplify sbcompress().  Slightly modified from
a similar change in FreeBSD.
2001-07-27 19:27:49 +00:00
scw f169034d7f Fix a braino in the check for a jumper across pins 1-2 of J1 (mvme1[67]7).
Spotted by Chuck Silvers.
2001-07-27 18:58:23 +00:00
scw 9ac6178585 memc attaches at mainbus now. 2001-07-27 18:40:27 +00:00
scw 7e2f2acb8e Flesh out the memory controller driver (at least for the MCECC chip)
and attach it at mainbus since it depends both PCCChip2 and VMEChip2
(or the VMEChip2 interrupter) starting first.

We can finally enable, detect and log DRAM ECC errors.
(The PROM disabled ECC checks by default)
2001-07-27 18:38:54 +00:00
thorpej 4333749c7a Use the bit-swapped OUI for the 5221. (Have I mentioned that I really
don't like how the current MII_OUI() works?)
2001-07-27 17:58:20 +00:00
thorpej 773c261d65 Add a 3Com 3c905B internal PHY. 2001-07-27 17:55:34 +00:00
thorpej 3d3c5fa78c Regen; added a 3Com 3c905B internal PHY made by Broadcom. 2001-07-27 17:55:07 +00:00
thorpej 4063cb411b Fixup some Broadcom entries, add an entry for Broadcom PHY that
is built-in to some 3Com 3c905B cards.
2001-07-27 17:54:40 +00:00
tsutsui 1f1c7b96d8 Fix some comments and remove an unused define. Partially from OpenBSD. 2001-07-27 16:16:34 +00:00
tsutsui aa9c31f0c3 Pull up some changes from OpenBSD's iha.c rev 1.6:
- rename tul_* functions/variables iha_* for consistency
 - disable updating EEPROM routine, which does not work anyway
 - make iha_rate_tbl[] const
2001-07-27 15:51:14 +00:00
tsutsui 5a7161cf2a Pull up some changes from OpenBSD's iha.c rev 1.5:
- minor code cleanups
 - rename some functions for better consistensy/clarity
 - consolidate extended message generation into new function
 - a couple of minor code clarifications to eliminate extra return
   statements and make absolutely sure actscb is NULL during a reselect
2001-07-27 15:10:56 +00:00
ragge f5abeb5b4b Set MAXPHYS to 64k instead of 63k. 2001-07-27 12:58:21 +00:00
ragge 39a7595b28 Calculation of unibus map register size was wrong. 2001-07-27 12:57:20 +00:00
itojun 182b1e5191 do not #ifdef KEY_DEBUG in header. sync with kame 2001-07-27 04:48:13 +00:00
oster 99020323e6 Nuke the 5 NULL parameters from rf_DoAccess(). Observe that 4 of
the variables are passed directly to rf_AllocRaidAccDesc(), and the 5th
isn't even used.  Hunt them down and nuke them too.
2001-07-27 03:30:07 +00:00
thorpej fe97433fcd All CORKSCREWs have MII. 2001-07-27 02:33:34 +00:00
thorpej f532a911f0 Chipset is CORKSCREW for the 3c515. 2001-07-27 02:13:26 +00:00
thorpej f9616582f4 Regen -- added 3c515 for the ep driver. 2001-07-27 02:12:57 +00:00
thorpej d3ee9bd16e Add the 3c515 for the "ep" driver. 2001-07-27 02:12:19 +00:00
itojun 66c75f4967 do not check in_dstaddr on in_{add,scrub}prefix, otherwise linklocal
address manipulation could choke.  sync with kame
2001-07-27 02:04:08 +00:00
lukem 3cd4afc9e3 - multiple include protection
- pull in <ufs/ufs/dinode.h> for ufs_daddr_t
- mark a few fields as being "UNUSED" (because they are)
2001-07-27 01:28:06 +00:00
lukem c358141302 multiple include protection 2001-07-27 01:24:54 +00:00
bjh21 ea2ae3689c Twiddle. 2001-07-27 01:03:34 +00:00
bjh21 f68048b4eb Fix bug in xosgbpb_read: Check the correct register when deciding whether to
store result.
2001-07-27 01:02:44 +00:00
bjh21 5080e94490 OS_Args only really has two cases (reading and setting values). Use a generic
assembler veneer for each of these, and implement the calls to read and set
specific values as macros.
2001-07-27 00:37:38 +00:00
thorpej 0fb6b9a8f8 Rework the interrupt code, shaving some cycles off in the process.
Rather than an "iointr" routine that decomposes a vector into an
IRQ, we maintain a vector table directly, hooking up each "iointr"
routine at the correct vector.  This also allows us to hook device
interrupts up to specific vectors (c.f. Jensen).

We can shave even more cycles off, here, and I will, but it requires
some changes to the alpha_shared_intr stuff.
2001-07-27 00:25:18 +00:00
bjh21 2256fe3c2a Clear the BSS at startup, since objdump --outputformat=binary seems not to
output the BSS.
2001-07-27 00:21:18 +00:00
bjh21 218ce892b1 Fix up a left-over SWINE in os_writec. 2001-07-27 00:00:25 +00:00
wiz 79b57114c9 auxilary -> auxiliary 2001-07-26 23:07:57 +00:00
wiz e11d04474c issueing -> issuing 2001-07-26 22:55:12 +00:00
wiz 7b3241693f aquired -> acquired, issueing -> issuing 2001-07-26 22:54:34 +00:00
wiz 035b63a542 auxilliary -> auxiliary 2001-07-26 22:53:13 +00:00
wiz 41df6b74a9 partiton -> partition 2001-07-26 22:47:34 +00:00
bjh21 7a181053ec Makefile for building standalone programs to run under RISC OS.
Not used yet, but it will be.
2001-07-26 22:16:26 +00:00
bjh21 9315195522 Simple library to interface stand-alone programs to RISC OS.
This comes in two parts:  riscoscalls.[Sh] provide definitions, and thin
wrappers around RISC OS SWIs (in the style of OsLib) for the use of both the
rest of the library and client code.  The rest of the library provides a
compatibility layer for libsa.
2001-07-26 22:11:08 +00:00
thorpej fb384a3827 Strictly cosmetic changes. 2001-07-26 22:08:34 +00:00
thorpej 52654926a4 Slight cosmetic change. 2001-07-26 21:47:04 +00:00
mjl ab94842af6 Add rnd entropy gathering. 2001-07-26 21:31:45 +00:00
jdolecek bd21ec5d2e lfs_writeseg(): make el_size a size_t (cosmetic only, no functional change) 2001-07-26 20:20:15 +00:00
bouyer 8e2205572d Better support for newer ALI M5229 chipsets: support Ultra/66 for rev >= 0xC2,
Ultra/100 for revs >= 0xC4.
The the generic PCIIDE interupt routine for chipsets rev >= 0xC2 in native
mode, it seems that newer chipsets don't have the ACER_CHIDS register :(
From Linux and FreeBSD.
2001-07-26 20:02:21 +00:00
jdolecek 528ab39cef make local variable 'len' in wi_set_nwkey() size_t (hence unsigned)
this one is merely cosmetic, no functional change
2001-07-26 19:46:01 +00:00
jdolecek b834e97632 make local variable 'len' in awi_wep_setnkey() size_t (hence unsigned)
this one is merely cosmetic, no functional change
2001-07-26 19:40:59 +00:00
thorpej fcc2e4e5f6 Use pool_cache_*() for mbufs and clusters. While we don't use the
ctor/dtor feature, it's still faster to allocate from the cache groups
than it is from the pool (cache groups are analogous to "magazines"
in the Solaris SLAB allocator).
2001-07-26 19:05:04 +00:00
thorpej 2a6aa3926d Add an M_READONLY() macro, which evaluates to true if the mbuf's
data area is not to be written to.  This is the case for mbufs with
external storage which is either a non-cluster or a cluster referenced
by multiple mbufs.

Change M_LEADINGSPACE() and M_TRAILINGSPACE() to use M_READONLY(),
rather than their own testing for M_EXT.  Previously, M_LEADINGSPACE()
treated all M_EXT mbufs as read-only (which causes an extra mbuf to
be needlessly allocated when sending large TCP packets), and
M_TRAILINGSPACE() previously did not treat any external storage as
read-only (could lead to data corruption of external storage buffers!).
2001-07-26 17:24:59 +00:00
tsutsui 5309850228 Fix timeout overflow caused by "scsictl format" on machines HZ==100. 2001-07-26 15:51:04 +00:00
drochner d2ef97080c make sure clockframe is __packed 2001-07-26 15:46:58 +00:00
drochner b841a8e7cc pmap_changebit() requires pv tracking, so replace it by manual PTE construction 2001-07-26 15:45:51 +00:00
drochner 688026c828 use pmap_kenter/remove in pagemove() to make it work with memory mapped
by pmap_kenter_pa() (ie buffer pages)
2001-07-26 15:43:39 +00:00
drochner 2286fed799 incorporate patch from Chuck Silvers which basically reduces
pmap_kenter_pa() / pmap_kremove() to the basics - ie, removes pv tracking
2001-07-26 15:41:14 +00:00
ad 4950b7867f Map both memory and IO space, but prefer using memory space. 2001-07-26 15:35:20 +00:00
wiz 30b2bf87ed Various typos in comments (neccessary, sceme, choise, ...). 2001-07-26 15:05:07 +00:00
jdolecek 875b784599 pipe_create(): explicitly zero whole memory returned from pool_get(), instead
of some selective pieces. This fixes problem with NEW_PIPE in kernels
with DEBUG option, reported via e-mail by Chuck Silvers.

sys_pipe(): g/c fdp, provide it at the chunk of FreeBSD code where it's used
2001-07-26 14:14:28 +00:00
ad 3b6c996d19 - Stop the system drive status check when re-configuring in order to
avoid a issuing a possibly spurious warning.
- Squash some nits.
2001-07-26 12:38:03 +00:00
ad 7a92f3b65a Don't map I/O space if we have already have a good memory mapping. 2001-07-26 12:36:16 +00:00
tsubai 8ab2c794fd Make this compile w/o -DMIPS3. 2001-07-26 11:46:44 +00:00
tsubai 071e4602d9 Avoid panic when polling is used. 2001-07-26 11:44:06 +00:00
tsubai 1b3871ef0f Change description of handler-ID == 195. 2001-07-26 11:36:40 +00:00
tsubai bacce8fb4c Fix a warning when compiled w/o DDB. 2001-07-26 11:23:37 +00:00
lukem 714cac851d if printing the value of fs_clean, say 'fs_clean' instead of 'fs_flags' ... 2001-07-26 07:58:55 +00:00
lukem fcf7f6cd06 fix spelo 2001-07-26 07:55:54 +00:00
itojun dc1d7df811 do not initialize rmx_mtu on RTM_ADD.
on gateway change, copy rmx_mtu from gateway only under the following condition:
- current MTU is not locked
- current MTU was discovered via PMTUD

XXX if gateway has MTU == 0, current MTU is set to 0 and we are going to
rediscover PMTU again.  is it good or bad?
2001-07-26 05:47:37 +00:00
minoura 6ec544c64d implement pmap_k{enter_pa,remove}() correctly.
other misc cleanup.
patch written by chs; equivalent to hp300 pmap.c:1.95.
2001-07-26 02:21:58 +00:00
itojun fd5e7077a3 allocate ipsec policy buffer attached to pcb in in*_pcballoc, before
giving anyone accesses to pcb (do not reveal an inconsistent ones).
sync with kame
2001-07-25 23:28:02 +00:00
thorpej ae69446f0f Back out previous -- christos needs to update his lint(1). 2001-07-25 23:05:04 +00:00
christos 8228035453 fix non-portable bitmap warning. 2001-07-25 22:41:10 +00:00
thorpej 4a416b823f Fix 1000BASE-X duplex negotiation. That'll teach me to read the
manual more carefully next time.
2001-07-25 22:00:43 +00:00
bouyer 21bcee4ec1 Return() if piomode == -1 (i.e. we have no drives), avoid reading an array with
a negative offset.
Thanks to Andrew Cagney for pointing this out.
2001-07-25 20:26:33 +00:00
tsutsui 9d5b24f779 Apply pmap_k{enter_pa,remove} patches provided by Chuck Silvers. 2001-07-25 15:59:48 +00:00
tsutsui 6fa8cc9467 Sync with hp300/vm_machdep.c rev 1.60:
> use pmap_k* for pagemove().
> call pmap_remove() explicitly in vunmapbuf() in preparation for
> upcoming UVM changes.
2001-07-25 15:56:30 +00:00