Commit Graph

130177 Commits

Author SHA1 Message Date
tsutsui
9f92256852 - Reset timer0 of GT64111 in gt_attach() and start it
in cpu_initclocks(9) via a callback function.
  Fixes the "hardclock(9) is called before cpu_initclocks(9)" problem
  reported by KIYOHARA Takashi on port-cobalt.
- Use bus_space(9) functions to access GT64111 registers and
  add register definitions for GT64111 in gtreg.h.
  (XXX this could be in sys/dev/marvell?)
- Move microtime(9) from machdep.c to clock.c, and read timer0 register
  via a callback function. Also change microtime(9) like other ports
  to guarantee that the time will be greater than the value obtained
  by a previous call.
2004-08-28 12:32:48 +00:00
kent
4f9d67091a add debug code for ac97_write().
It is enabled by defining AC97_IO_DEBUG.
2004-08-28 07:02:11 +00:00
thorpej
d7f51e0769 Note switch to GCC-supplied crtstuff. 2004-08-28 00:32:34 +00:00
thorpej
70638a64cb Error out if we try to build with GCC 3.3 or later; we should be using
the GCC-supplied crtbegin / crtend in the GCC 3.3 or later case.
2004-08-28 00:19:22 +00:00
thorpej
8d13a4aafe Switch to using GCC's supplied crtbegin / crtend files. 2004-08-28 00:18:38 +00:00
bouyer
80620a83a7 Improve handling of memory shortage, to fix problems like:
sd3(mpt0:0:1:0): unable to allocate scsipi_xfer
sd3: not queued, error 12
Havard Eidnes's analysis of this problem is that the scsipi_xfer pool is
competing for resources with other pools, including the the inode and vnode
pools which can grow quite large.

*_scsipi_cmd(): don't biodone the buffer if scsipi_make_xs() fails, let the
   caller deal with the problem
start function of block devices drivers: dequeue the buffer after the
   scsipi_command() call. If scsipi_command() fails with ENOMEM don't dequeue
   the buffer, and schedule a callout to call the start function after
   some delay.
scsipi_init(): prime the scsipi_xfer_pool with one page. This ensure that
   there is always some scsipi_xfer to play with. If scsipi_command() fails
   because of pool_get(), we're sure there will be resources available later,
   when the pending commands have completed.

Reviewed by Jason Thorpe and Havard Eidnes.
Todo: remove the "unable to allocate scsipi_xfer" and "not queued, error %d"
printfs, but I choose to keep them for now, to help make sure the code does
what it should.
2004-08-27 20:37:28 +00:00
drochner
93f4534edf add "drvctl" template 2004-08-27 17:50:57 +00:00
wiz
4d9086f0bc Get rid of some superfluous "No Ns" calls before punctuation. 2004-08-27 16:53:13 +00:00
oster
bcb300782d Correct some RF_ASSERTS() that were missed when fixing memory issues
with this code.  Thanks to palle at lyckegaard.dk for pointing them
out.  Addresses PR#26776 (but doesn't use all the suggested fixes).
2004-08-27 15:55:50 +00:00
wiz
484705032c Bump date for removal of net.key.random_int. 2004-08-27 14:35:11 +00:00
christos
111956c585 - sleep a little in autobot mode so that we can see what is happening.
- use refresh() instead of wrefresh()
2004-08-27 09:07:08 +00:00
christos
04c4e386f5 describe the algorithm better. 2004-08-27 09:06:25 +00:00
skrll
685703c354 Do previous slightly differently - just pass a struct lwp * and derive the
struct proc *.

OK'd by Jaromir.
2004-08-27 07:02:45 +00:00
lukem
bc3a6f3810 Refer to the pkgsrc/sysutils/ipw-firmware package. 2004-08-27 06:01:28 +00:00
itojun
8ba8c58e74 remove net.key.random_int 2004-08-27 04:58:10 +00:00
itojun
3b68465490 as we use arc4random(9) for random number, we no longer need to reseed random
number.  noted by rwatson@freebsd
2004-08-27 04:56:16 +00:00
thorpej
523f87a2ce PTDpaddr -> PDPpaddr 2004-08-27 03:51:34 +00:00
thorpej
cf21167821 pdtpaddr -> pdppaddr 2004-08-27 01:13:31 +00:00
lukem
89e309674d Improve statistics display. Consistency tweaks. From Damien Bergamini. 2004-08-27 00:05:37 +00:00
lukem
777a16793a Fix description of firmware. From Damien Bergamini. 2004-08-27 00:05:04 +00:00
lukem
ce0391e266 Minor cosmetic consistency tweaks, from Damien. 2004-08-27 00:02:02 +00:00
thorpej
08456b0802 Use ANSI function decls. 2004-08-26 21:23:06 +00:00
thorpej
5c50ce218e Remove the "allows linking without crtbegin / crtend" hack. 2004-08-26 21:21:33 +00:00
thorpej
b979dc154e Use ANSI function decls. 2004-08-26 21:21:05 +00:00
thorpej
54fe33a634 Use ANSI function decls. 2004-08-26 21:09:52 +00:00
thorpej
a41fd2dbc8 - Use ANSI function decls.
- Use __used__, not __unused__ attribute for ___start().
2004-08-26 21:07:14 +00:00
thorpej
68e26dcdb6 _strrchr()'s second argument is actually an int. 2004-08-26 21:01:12 +00:00
thorpej
352bb3a6aa Use ANSI function decls. 2004-08-26 20:57:47 +00:00
thorpej
11b5ec27b8 Remove sysident.h-related comment; that stuff is handled by crti.c these
days.
2004-08-26 20:51:27 +00:00
thorpej
a80d65bdf1 sparc64 configuration for GCC "crtstuff". 2004-08-26 20:33:47 +00:00
wiz
6045854359 Remove duplicate include. Noted by Jeff Ito. 2004-08-26 20:26:08 +00:00
thorpej
3b3467be81 Only do the crtstuff dance if OBJECT_FMT is ELF. 2004-08-26 19:08:10 +00:00
thorpej
62ca5968b5 sparc configuration for GCC "crtstuff". 2004-08-26 19:05:04 +00:00
thorpej
35bdb62895 Don't protect the inclusion of ${MACHINE_ARCH}.mk; it is required. 2004-08-26 19:01:20 +00:00
thorpej
c64c94ac78 m68000 configuration for GCC "crtstuff". 2004-08-26 18:59:53 +00:00
thorpej
96663f19df Use ANSI function decls, more static. 2004-08-26 18:38:19 +00:00
drochner
5b0932cc68 kick out the ioasic offset check which happens in submatch() now 2004-08-26 18:07:12 +00:00
drochner
131be74c33 turn the (unused) ioasic_submatch() function into something useful, use
the locator passing variant of config_found(), get rid of the macros
hiding cfdata accesses and include "locators.h" from the .c file only
2004-08-26 18:06:20 +00:00
drochner
73286594a1 some cleanup: use the locator-passing variant of config_found(), get
the macros just hiding cfdata members out of tcvar.h and include
"locators.h" only in the .c file
2004-08-26 17:57:00 +00:00
oster
da1725a116 rf_CheckLabels() needs to die, but for now, we patch it by setting
fatal_error when too_fatal is set, and by setting fatal_error in a
couple other critical cases.
2004-08-26 17:09:18 +00:00
jkunz
6c6c2be95f Remove race conditions caused by the CPU cache of PA7100 CPUs. 2004-08-26 16:56:07 +00:00
jkunz
70b14a8138 Add support for shareing PCI interrupts and PCI-PCI bridges. 2004-08-26 16:52:27 +00:00
jkunz
1035c6af08 Import STI wscons(4) driver from OpenBSD and add new driver for PS/2
keyboard / mouse pots of LASI.
2004-08-26 16:48:06 +00:00
itohy
318777e22f Add njs to some generic config files (I tested on i386 and sparc64). 2004-08-26 14:33:01 +00:00
wiz
4e1a2fa773 Remove a superfluous .Pp. 2004-08-26 14:25:55 +00:00
itohy
bb5bb52e57 Add njs.4 2004-08-26 14:19:55 +00:00
itohy
1d4f1abb08 Workbit NinjaSCSI-32 PCI/CardBus SCSI driver (njs) 2004-08-26 14:13:46 +00:00
yamt
d25d8e4dbe in "summary" output (-w),
- print setattr instead of readlink as the former is more freqently used.
- add "Others" column to print the total number of other rpcs.
2004-08-26 13:29:05 +00:00
itohy
d1112abfcc Regen from pcidevs rev 1.647. 2004-08-26 13:16:08 +00:00
itohy
2e477d0c91 Add Workbit NinjaSCSI-32 PCI/CardBus products. 2004-08-26 13:14:59 +00:00