Commit Graph

72806 Commits

Author SHA1 Message Date
thorpej
63a3547c69 - De-__P.
- Also define DB_ELF_SYMBOLS and DB_ELFSIZE.
2004-08-28 21:24:20 +00:00
thorpej
e3e985a071 De-__P 2004-08-28 19:46:41 +00:00
thorpej
2ae3d56b20 fix typo. 2004-08-28 19:44:29 +00:00
thorpej
3083c70ccc Use ANSI function decls, static, and const. 2004-08-28 19:11:19 +00:00
jdolecek
a95e4d7c87 g/c LINUX_MAP_IGNMASK define - it's not used anywhere 2004-08-28 18:58:57 +00:00
jdolecek
64969161df use uvm_grow() to update stack segment size on stack page fault instead
of MD code
2004-08-28 17:53:00 +00:00
thorpej
8657dbc0c8 Remove the last vestiges of COMPAT_NOLABEL. It's been 10 years; label
your disks already.
2004-08-28 17:45:24 +00:00
thorpej
8ca927b486 Use ANSI function decls, static, and const. 2004-08-28 17:37:00 +00:00
tsutsui
106c596dc1 - Use bus_space(9) to access PCI configuration registers on GT64111.
- Remove unused pci stuff from mainbus.c.
2004-08-28 13:33:31 +00:00
jdolecek
0139d61d6f uvm_grow(): avoid needless arithmetic and make LP64 safe 2004-08-28 12:44:22 +00:00
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
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
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
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
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
lukem
ce0391e266 Minor cosmetic consistency tweaks, from Damien. 2004-08-27 00:02:02 +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
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
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
junyoung
581cbf8089 As suggested on tech-kern@ days ago:
* Get rid of PTmap, PTD, PTDpde, APTmap, APTD, and APTDpde from locore.S.
* Rename PTDpaddr to PDPpaddr, ptdpaddr in struct cpu_kcore_hdr to pdppaddr for consistency.
2004-08-26 10:12:33 +00:00
reinoud
943622e723 Delay initialisation of shadow registers. Tested on a Shark. 2004-08-25 13:06:16 +00:00
reinoud
b4f746a195 Increase space reserved for symbol space. As of the kernel i build it
needed at least a 255344 bytes while 242000 was reserved. Bumped it a few
kb higher to reduce symbol table fill too soon again.
2004-08-25 12:24:48 +00:00
he
b23dd66ac3 It's atac_pio_cap, not atac_PIO_cap. I wonder how I could get this
to compile earlier...
2004-08-25 10:40:15 +00:00
itojun
9ac7900a84 bug reported by millert@openbsd:
> Call dom_dispose() for any SCM_RIGHTS message that went through the
> read path rather than recv.  Previously, if an fd was passed via
> sendmsg() but was consumed by the receiver via read() the ref count
> was incremented and never decremented and so the ref count would
> never reach zero even when there was no long any processes holding
> the file open (this was especially bad for locked fds).
2004-08-25 09:03:23 +00:00
matt
e4726fc65d Add pmap counters for reclaimed pvos and for the times a pvo could not be
obtained.
Switch to EVCNT_ATTACH_STATIC*
In DEBUG/DIAGNOSTIC, decrement/increment pmap_pvo_enter_depth around pool
calls since they could possibly cause a recursion back into pmap_pvo_enter.
2004-08-24 21:31:49 +00:00
yamt
4fd5a025bf nfs_request: a workaround for servers doing "maproot".
for i/o requests which are expected not to fail due to permission
to mimic unix file open semantics (READ, WRITE, COMMIT),
try two credentials.  namely, the file owner's one and open time one.
remember which credential worked in per-file basis and try it first
next time to minimize number of retries.
ideas from Chuck Silvers.  PR/23716 and PR/24987.
2004-08-24 20:09:44 +00:00
jdolecek
b63de69b76 fix debug printf - lm_addr is not pointer anumore 2004-08-24 17:41:54 +00:00
thorpej
8b2ffcedfc Use ANSI function decls and more use of static. 2004-08-24 00:53:28 +00:00
thorpej
45bd8be9fa Protect against multiple inclusion. 2004-08-23 23:17:54 +00:00
bouyer
89817e7217 Revert 1.12, it cause problems on promise controllers, as reported in
PR kern/26568 by Paul Shupak.
2004-08-23 21:30:35 +00:00
nathanw
05e0a219ae Don't prohibit DDB and KGDB together. 2004-08-23 20:55:03 +00:00
thorpej
8fa139d957 Use the RET macro, rather than "bx lr" unconditionally. Makes this file
compile again for the INTEGRATOR configuration.
2004-08-23 20:53:56 +00:00
bouyer
fabf6fa880 Fix typo pointed out by Patrick Welche on current-users@ 2004-08-23 20:01:10 +00:00
jandberg
b58fddce90 Call wdc_init_shadow_regs() after data structures are filled in.
Idea monkeyed from a commit by <mycroft>; reviewed by <aymeric>.
2004-08-23 19:26:25 +00:00
drochner
baf74cd9d0 it is sufficient to include "locators.h" in cardbus.c 2004-08-23 18:21:51 +00:00
drochner
d9b1d2cfd2 kick out the error-prone handcrafted single-linked list of cardbus
functions; replace by a simple *array[8]
2004-08-23 17:52:45 +00:00
fvdl
e8af4bc978 Keep ioapic in the correct order in the global linked list that stores
them. Fixes cases where the ACPI SCI int has to be guessed, because there
are multiple ioapics in the system.
2004-08-23 17:24:23 +00:00
drochner
b2f07722fc make the "selective probing" work, and minor cleanup
(avoid using the macros which hide cfdata members, this doesn't help
for anything)
2004-08-23 16:41:48 +00:00