Commit Graph

64933 Commits

Author SHA1 Message Date
sommerfeld
080fdae8fc Bring into line with recent ktrace changes 2000-05-27 15:02:04 +00:00
scw
8e7a493bbc Protect against multiple inclusion. 2000-05-27 14:45:36 +00:00
scw
48c1f20cf8 s/schedcpu_percpu/schedstate_percpu/ 2000-05-27 14:25:00 +00:00
sommerfeld
0ee7e28d72 Add include of <sys/time.h> for now.. 2000-05-27 13:51:38 +00:00
kleink
0bc407a568 Spelling nit. 2000-05-27 12:22:24 +00:00
mason
972014e5a8 Make compile after scheduler state cleanup. 2000-05-27 11:44:54 +00:00
soren
ed0572ca92 Regen. 2000-05-27 11:40:04 +00:00
soren
eaef48d317 Add a few devices. 2000-05-27 11:38:31 +00:00
kleink
12164ce45f Formatting fixes. 2000-05-27 10:42:25 +00:00
jdolecek
c5d51d433e fix prototype for fd_mod_free() - should fix port-mac68k/10063 2000-05-27 10:25:15 +00:00
ragge
aacf5a4bc1 Growel out the SCSI BUS ID from NVRAM instead of hard-code it. 2000-05-27 10:12:45 +00:00
matt
03e56c691e Changes to put the COMPAT_AOUT code into ld.aout_so. Search <dir> for <lib>
then search /emul/aout/<dir> for <lib>.  To make sure we don't get false
postives on ELF libraries we make the .so is a ZMAGIC dynamic library.
2000-05-27 06:53:29 +00:00
thorpej
267fbe6213 sleep() -> tsleep() 2000-05-27 06:51:30 +00:00
thorpej
5410ee3607 Update a couple of comments for reality. 2000-05-27 06:29:35 +00:00
matt
a328adc371 Add _PATH_EMUL_AOUT. 2000-05-27 06:08:28 +00:00
thorpej
6d02ce1e66 All users of the old sleep() are now gone; nuke it. 2000-05-27 05:00:47 +00:00
thorpej
21fc65e1a8 sleep() -> tsleep() 2000-05-27 04:52:27 +00:00
thorpej
d0a8b751b2 Don't use sleep() and a callout; just use tsleep(). 2000-05-27 04:46:24 +00:00
thorpej
b3b7588160 Don't use sleep() and callouts; just use tsleep(). 2000-05-27 04:42:14 +00:00
matt
dd266dbb2f Fix counting of output packets. Only count descriptors with TDES_LS set.
Also make transmit timeout logic more correct.
2000-05-27 04:26:32 +00:00
soren
4a6fea14b4 Correct ones, even. 2000-05-27 03:53:11 +00:00
soren
c77afc79a4 Forgot to define sd and cd majors. 2000-05-27 03:52:26 +00:00
simonb
abae45a32c Set *sizep correctly if returning the number of elements. Pointed out
by Anders Magnusson.

Honor elem_count in the KERN_PROC2 case, as well as overall buffer
space.  The only user-land code to use this set the elem_count to
"buffer_space / elem_size", so we've had no incorrect behaviour to date.
2000-05-27 03:24:50 +00:00
matt
fa1474c2eb This need <sys/sched.h> to compile. 2000-05-27 03:23:22 +00:00
enami
72d16d3ff2 Convert to use mdoc macros more. The pervious commit, which partially
converted to mdoc, just results malformed output.
2000-05-27 02:23:19 +00:00
soren
39b5e9b4a2 ncr(4) wouldn't work, so s/ncr/siop/. 2000-05-27 02:19:34 +00:00
enami
2e535006c1 No longer need to include sys/types.h. 2000-05-27 02:18:12 +00:00
soren
96a81498cf Remove stacktrace() prototype. 2000-05-27 02:16:25 +00:00
soren
355d1234b9 The datap argument to the write_{multi,region} calls is const. 2000-05-27 02:15:01 +00:00
soren
92a32ad9b2 Protect against multiple inclusion. 2000-05-27 02:14:22 +00:00
soren
630f6535cd Match a comment with the MIPS3 version. 2000-05-27 02:13:46 +00:00
soren
dc83d17889 Include <sys/param.h> to make the new cpu.h happy. 2000-05-27 02:13:12 +00:00
soren
08f5b3301d The datap argument to bus_space_write_{multi,region}_* should be const. 2000-05-27 01:55:42 +00:00
enami
ec808c5ba9 Make this file compiles with !DIAGNOSTIC. 2000-05-27 01:43:27 +00:00
thorpej
d36becd30f p_schedflags doesn't exist anymore; just set it to zero for now,
although we'll be able to get the correct info through kmem
groveling later.
2000-05-27 01:03:00 +00:00
tsutsui
7ae8c684a8 Increase delay on EEPROM access.
CATS sometimes cannot read MAC address correctly.
2000-05-27 00:55:42 +00:00
sommerfeld
d4ddc11a83 Two tweaks:
- For cleaner subprocess traces, malloc something before
spawning, so the syscalls malloc does while initializing don't gunk up
the trace.
	- Increase pipe buffer sizes.
2000-05-27 00:45:37 +00:00
sommerfeld
40339b39f9 Reduce use of curproc in several places:
- Change ktrace interface to pass in the current process, rather than
p->p_tracep, since the various ktr* function need curproc anyway.

 - Add curproc as a parameter to mi_switch() since all callers had it
handy anyway.

 - Add a second proc argument for inferior() since callers all had
curproc handy.

Also, miscellaneous cleanups in ktrace:

 - ktrace now always uses file-based, rather than vnode-based I/O
(simplifies, increases type safety); eliminate KTRFLAG_FD & KTRFAC_FD.
Do non-blocking I/O, and yield a finite number of times when receiving
EWOULDBLOCK before giving up.

 - move code duplicated between sys_fktrace and sys_ktrace into ktrace_common.

 - simplify interface to ktrwrite()
2000-05-27 00:40:29 +00:00
perseant
29f616cebe Prevent dirops from getting around lfs_check and wedging the buffer cache.
All the dirop vnops now mark the inodes with a new flag, IN_ADIROP, which
is removed as soon as the dirop is done (as opposed to VDIROP which stays
until the file is written).  To address one issue raised in PR#9357.
2000-05-27 00:19:52 +00:00
sommerfeld
951310bf3f Remove a gratuitous use of curproc 2000-05-27 00:11:12 +00:00
sommerfeld
137a54db78 Improve #error message slightly. 2000-05-26 23:18:26 +00:00
sommerfeld
f822e85903 Eliminate incorrect use of "curproc" in a comment. 2000-05-26 23:10:36 +00:00
sommerfeld
01d37fc7c9 Add missing trailing newlines. 2000-05-26 23:09:28 +00:00
cgd
5f23f3b392 Fix typo: 68681, not 68881. (I'm a UART, Jim, not an FPU!!!) 2000-05-26 23:03:18 +00:00
eeh
907ed5fa81 Add `-D' flag to drop to the PROM before jumping to the kernel. 2000-05-26 22:59:51 +00:00
thorpej
3bcdc30c81 Adjust kinfo_proc2's p_schedflags assignment to match new reality. 2000-05-26 22:59:31 +00:00
thorpej
0ef4481fd3 We made it to 1.4Z, woo! My scheduler hacking, Simon's sysctl proc
stuff.
2000-05-26 21:31:00 +00:00
thorpej
a7d0570e67 First sweep at scheduler state cleanup. Collect MI scheduler
state into global and per-CPU scheduler state:

	- Global state: sched_qs (run queues), sched_whichqs (bitmap
	  of non-empty run queues), sched_slpque (sleep queues).
	  NOTE: These may collectively move into a struct schedstate
	  at some point in the future.

	- Per-CPU state, struct schedstate_percpu: spc_runtime
	  (time process on this CPU started running), spc_flags
	  (replaces struct proc's p_schedflags), and
	  spc_curpriority (usrpri of processes on this CPU).

	- Every platform must now supply a struct cpu_info and
	  a curcpu() macro.  Simplify existing cpu_info declarations
	  where appropriate.

	- All references to per-CPU scheduler state now made through
	  curcpu().  NOTE: this will likely be adjusted in the future
	  after further changes to struct proc are made.

Tested on i386 and Alpha.  Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.
2000-05-26 21:19:19 +00:00
ragge
38d5764cd1 Fix for a driver bug provided by Jon W Grubbs (jgrubbs@megsinet.net).
This bug is only visible on some disks, and I have verified that it works
correctly on VAX. However, du to the author, it is a problem on other
machines/disks as well. Here's the author's comments:

> The MI code for the NCR5380 has a small bug in it  The RZ56 wants to
> negotiate for Synchronous Data Transfers and when it does, the current code
> looks like it will send a REJECT message as the spec calls for when we cant
> handle the request.  However, a couple of lines of code in the
> ncr5380_msg_in routine are missing wrt the PARITY message and anything that
> wants to send a REJECT message.  The ATN setup that is done in
> ncr_sched_msgout is immediately negated by the final byte ACK sequence in
> this routine.  This causes bad things to happen to an RZ56.
2000-05-26 21:11:00 +00:00
ragge
02512fa1e9 Correct a comparision. 2000-05-26 21:05:23 +00:00