Commit Graph

55423 Commits

Author SHA1 Message Date
wiz f7a47b635a Remove #ifdef RC7500 defines. 2002-05-02 17:25:31 +00:00
manu 494d226a5d Added GETSHMASK command to prctl(). This is incomplete, we do not really
keep track of the shmask yet. (It could go in p->p_emuldata)
2002-05-02 17:17:29 +00:00
martti 6f5d858e4b Fix compilation problems 2002-05-02 17:13:27 +00:00
martti e74092de02 Upgraded IPFilter to 3.4.27 2002-05-02 17:11:37 +00:00
thorpej efb8222642 Fix error reporting in the bus_dmamap_load_mbuf() routines. 2002-05-02 16:50:39 +00:00
kleink ba482b3950 * On the 601, obliterate all BAT entries when returning from kernel to
userlevel; this is necessary due to the 601, unlike other 6xx, having
  no concept of separated Valid_user vs. Valid_supervisor for BATs.
* When crossing the kernel/userlevel boundary, have platform-provided
  hooks set up the two fixed BAT entries, and possibly additional
  segment registers to redeem the 601's BAT limitations.

Both of the above are only built if the $MACHINE provides these hooks,
sparing others the pain.
2002-05-02 16:47:49 +00:00
uch eb330e618b add Jornada680/690 US-keymap. patch by uwe. 2002-05-02 16:38:02 +00:00
uch 4499275017 remove obsolete header file (shbvar.h) 2002-05-02 16:34:57 +00:00
thorpej 84fbb01984 Fix a comment. 2002-05-02 16:34:47 +00:00
thorpej c115365b50 * Deal with errata on the i82542 and i82543 chips: The size of the
transmit and receive descriptor rings is limited to 256 descriptors.
  So, set the if_snd queue length to 256 to let the upper layers queue
  lots of packets, and let the driver handle up to 32 of them at a time.
  (We should probably make this change to most Ethernet drivers, since
  it actually saves some resources.)
* Increase the number of Tx DMA segments from 8 to 16.
* Clean up the way we count "how many times did I get a packet with N
  DMA segments".
* Add a missing htole32() in wm_tx_cksum().
* Don't set both RS and RPS in the last Tx descriptor of a packet; just
  use RS.
* Add some more information to the watchdog message.
2002-05-02 16:33:27 +00:00
briggs cf294f8f84 Ensure that b_bufsize is set to a range covering the buffer in vndstrategy().
This addresses kern/16570 where using the raw vnd device with a file backed by
NFS was failing due to bp->b_bufsize being 0.
2002-05-02 16:25:23 +00:00
thorpej b094ff415f Change the semantics of mbuf external storage "ext_free" routines
so that they're more useful for arbitrary types of external storage:

* Add an "mbuf *" argument to (*ext_free)().  If non-NULL, (*ext_free)()
  is expected to free the mbuf itself.  This allows (*ext_free)() to use
  the mbuf for bookkeeping (e.g. deferring the work to a helper thread).
  If the "mbuf *" argument is NULL, we are assumed to be in a context
  which is safe for performing the destructor operation *now*.
* Adjust MEXTREMOVE() and MFREE() routines for above change.
* Update "ade" and "ti" drivers for new semantics.
2002-05-02 16:22:43 +00:00
thorpej 74e2ee8d5c Define __NO_STRICT_ALIGNMENT. 2002-05-02 16:11:28 +00:00
nonaka ed9081de2a Added IBM Personal Power Series 830 IDE controller support. 2002-05-02 15:17:56 +00:00
nonaka 2ff13751ce Use PLATFORM_* 2002-05-02 14:58:36 +00:00
nonaka b9fc6ff617 rename reset_ibm_generic() -> reset_prep_generic(). 2002-05-02 14:48:27 +00:00
nonaka b5a1a9284b Added dump residual data routine. 2002-05-02 14:44:17 +00:00
nonaka 925a022a1d use ext_intr_ivr, too. 2002-05-02 14:38:41 +00:00
nonaka c79479ac8d Added dump residual data routine. 2002-05-02 14:36:42 +00:00
enami e54e7305a2 - Fix more and more white space nits.
- ANSIfy the last K&R function definition in this file.
2002-05-02 13:38:57 +00:00
martin 9b693d4bca Remove a local declaration shadowing the global "int statint", thus
preventing the latter to be initialized properly.

Patch from adam@lebsack.com in PR 16608.
2002-05-02 13:01:45 +00:00
ad 4137ec18e8 Fix pasto. 2002-05-02 12:44:31 +00:00
bouyer 7de8483ff0 Regen: move a few things around to save a few JUMP. 2002-05-02 12:37:50 +00:00
bouyer 41af47376f Move a few things around, to save some JUMP. 2002-05-02 12:37:19 +00:00
bouyer 1d5fb5d90e If we get a Unit Attention Not Ready To Ready Transition (medium may have
changed) sense, and the periph was not open, then ignore the error.
2002-05-02 12:36:23 +00:00
thorpej d105d4c056 Move call to sched_unlock_idle to later in the context switch to
eliminate a race where another processor could grab the outgoing
process before we were done saving our state into it, with predictable
results.

Bug spotted on i386 by Frank van der Linden <fvdl@wasabisystems.com>.
2002-04-30 16:05:13 +00:00
uch f1447dc5d6 add BUFFALO LPC3-CLT Ethernet Adapter. 2002-04-30 13:14:38 +00:00
uch f1967f2bb2 regen. 2002-04-30 13:13:48 +00:00
uch 07c3f6d008 add BUFFALO LPC3-CLT Ethernet Adapter 2002-04-30 13:12:33 +00:00
tsutsui 8b87191ece Add _rtt(), which is called by panic() in libsa/panic.c,
which is useed from ustarfs.c.
2002-04-30 13:10:56 +00:00
tsutsui 68d3a4f0ee Add ustarfs ops. 2002-04-30 13:09:05 +00:00
tsutsui 2d9bb7f94e Add getchar(). 2002-04-30 13:08:01 +00:00
martin ea0ec5a299 Do not mask/unmask interrupts on IPAC to clear the interrupt status.
It is unclear if this realy is needed and if, on which type of cards. I
haven't run accross a card that needs it yet.  This may have been just
a copy & pasto from the ISAC interrupt handler carried over to IPAC.
2002-04-30 12:56:51 +00:00
ragge 96d4c35119 Don't try to probe for dz11 on 4000/90, may corrupt the flash rom (?).
Suggested by Hugh Graham <hugh@openbsd.org>.
2002-04-30 12:33:32 +00:00
tsutsui 27c8560138 Make sure whole DPRINTF()s are actually disabled on normal build.
It seems compiler does not remove text strings in while(0) statement
on its optimization.
2002-04-30 01:07:26 +00:00
nonaka d58ba5a7b5 Regen. (Added two IBM devices.) 2002-04-29 18:21:32 +00:00
nonaka 1a570698f4 Added two IBM devices. 2002-04-29 18:18:29 +00:00
martin 75a925b327 "if (debug)" some log messages not signaling real errors but happening
in normal operation.
2002-04-29 16:29:29 +00:00
manu 27cb16e028 sproc: Correctly interpret NULL stack and stacklen when shared vm space is not
requested
2002-04-29 16:01:12 +00:00
bouyer c85510bdd7 Factor out initialisation of t_msgout.count
clear scntl4 in sdtr/wdtr negotiation
2002-04-29 15:45:05 +00:00
bouyer 1a268e6df1 Add a missing esiop_script_sync(), and debug messages improvements. 2002-04-29 15:44:16 +00:00
manu 36b681f651 Added a void framework for usync_cntl(), which is another undocumented IRIX
system call.
2002-04-29 14:40:23 +00:00
martin 8853536066 Patches from Matthias Drochner, slightly modified by me:
Remove the clear-the-irq-after-enabling it dance (which had bad side
effects on some cards). Instead disble the ISAC receiver when we have
interrupts disabled. Adjust the interrupt handler to properly deal with
subtle differences of the ISAC implementation in IPAC chips.
2002-04-29 13:42:42 +00:00
tsutsui 8f9d2b8500 Add a delay() in adb_read_date_time() so that my Apus2000 can get
correct date in inittodr().
2002-04-29 10:15:29 +00:00
mrg 86477819ce regenerate. 2002-04-29 09:55:11 +00:00
mrg 0ce90a9fef build the netbsd32_compat* objects into libcompat.a, so they are available
to emulations not just netbsd itself.  rename the compat_10 functions to
match everything else.  fixes a problem reported by julian coleman.
2002-04-29 09:53:39 +00:00
uch 7eaf6db5bd remove #if 0 #endif 2002-04-29 09:33:30 +00:00
uch 01eebf7a36 KNF. 2002-04-29 09:32:56 +00:00
rafal e9ca49cdee Fix nasty crashes on IP22 machines with console running at 38.4kbps (which
generally translates to "high interrupt load") -- the old code re-enabled
interrupts in the machine-specific hardware interrupt handler causing the
handler to be re-entered, possible multiple times.  Could lead to kernel
stack overflows, and all sorts of mysterious crashes/hangs as a result.

While here, fix up the IP32 interrupt handler code to also not re-enable
interrupts.

Thanks for ideas/comments go to Chuq and Stephen Ma.
2002-04-29 02:06:14 +00:00
thorpej 7be035e7c7 Only print console messages about SIGSEGV and SIGILL if the
kernel was built with DEBUG.
2002-04-29 01:54:11 +00:00