Commit Graph

22390 Commits

Author SHA1 Message Date
ragge
99baa81ae7 Rewrite cpu_fork(), it now looks like and works as other ports' cpu_fork()
(calling child_return() etc...). Have fun, Jason!
2000-05-27 16:33: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
mason
972014e5a8 Make compile after scheduler state cleanup. 2000-05-27 11:44:54 +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
thorpej
5410ee3607 Update a couple of comments for reality. 2000-05-27 06:29:35 +00:00
thorpej
21fc65e1a8 sleep() -> tsleep() 2000-05-27 04:52:27 +00:00
thorpej
b3b7588160 Don't use sleep() and callouts; just use tsleep(). 2000-05-27 04:42:14 +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
matt
fa1474c2eb This need <sys/sched.h> to compile. 2000-05-27 03:23:22 +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
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
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
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
02512fa1e9 Correct a comparision. 2000-05-26 21:05:23 +00:00
ragge
4eea61af11 If we panic before the vsbus is found, don't panic again. 2000-05-26 21:05:01 +00:00
jdolecek
2649f518ec note in BIG WARNING LETTERS that MCA support is experimental and the
kernel should only be used for experimentation
comment out some stuff not present or used on my development machine
g/c ef
add (commented out) aha attachment
2000-05-26 20:59:07 +00:00
mhitch
5228efa47e Fix typo (stray " where it shouldn't be). 2000-05-26 20:59:00 +00:00
ragge
1e700bc362 Make it compile again. 2000-05-26 20:51:25 +00:00
ragge
b2bc655ba8 Fake success when trying to use the strategy() routine on a network device.
This avoids clobbering errno and bad error messages.
2000-05-26 20:18:57 +00:00
ragge
e2148b38ab Don't init the net info more than once. 2000-05-26 20:16:46 +00:00
ragge
b8b40eed22 Avoid hanging if boot fails on some machines. 2000-05-26 20:15:21 +00:00
tsutsui
446a3875db Back out privious.
fxp on CATS sometimes causes pool related panic().
2000-05-26 19:01:22 +00:00
thorpej
a787870607 From tusbai@netbsd.org:
Simplify SONPROC change.  (and now compiles)
2000-05-26 12:57:11 +00:00
tsubai
6aced393a3 Simplify SONPROC change. (and now compiles) 2000-05-26 08:40:10 +00:00
thorpej
7d2fdbcb55 Don't set `runtime' here; it's done at the end of mi_switch().
cvS: ----------------------------------------------------------------------
2000-05-26 05:27:29 +00:00
jhawk
8e44b27348 Rename the machine-specific stack trace printing functions
from db_stack_trace_cmd() to db_stack_trace_print(),
and add an additional argument, a function pointer for an
output routine (i.e. printf() or db_printf()).

Add db_stack_trace_cmd() in db_command.[ch], calling
db_stack_trace_print() with db_printf() as the printer.

Move count==-1 special handling from db_stack_trace_print() [nee
db_stack_trace_cmd()] to db_stack_trace_cmd() [nascent here].

Again, I'm unable to test compilation on all affected platforms,
so advance apologies for potential brokenness.
2000-05-26 03:34:24 +00:00
jhawk
285fe9436f In callback for db_printsym(), use db_printf() rather than printf() [oops]. 2000-05-26 02:10:18 +00:00
thorpej
8964c35eca Introduce a new process state distinct from SRUN called SONPROC
which indicates that the process is actually running on a
processor.  Test against SONPROC as appropriate rather than
combinations of SRUN and curproc.  Update all context switch code
to properly set SONPROC when the process becomes the current
process on the CPU.
2000-05-26 00:36:42 +00:00
tsutsui
56dfe42d8d Add epic* at pci. 2000-05-26 00:22:06 +00:00
is
0ce3451d1f Initial AmigaPPC commit.
Lots of the work was done by Adam Ciarcinsky.

Currently, this only supports CyberPPC boards by Phase 5. Blizzard PPC
expected later.

The kernel is useless but for demonstrating that it starts... especially
interupts, and most of MMU support, is not in yet. Builtin console works,
however, and you can look at the kernel startup messages.
2000-05-25 22:11:57 +00:00
is
8a6db88c1d Prepare for AmigaPPC. 2000-05-25 21:10:14 +00:00
matt
37be92c0d1 Add loadfile() support. soon to be needed by bootblocks. 2000-05-25 20:25:22 +00:00
jhawk
f3528d725d Interface change: db_printsym() takes a third argument, pr, a function
pointer indicating how to print the symbol. This allows db_printsym()
to called in places where db_printf() is not an appropriate output
function.

While straightforward, apologies in advance if I've introduced any minor
syntax errors; I was unable to test compilation this on all the affected
platforms.
2000-05-25 19:57:30 +00:00
matt
091b74891d Modify the file list for kernel to supress errors/text for certain ones. 2000-05-25 19:36:20 +00:00
is
f0d88bea57 Prepare for AmigaPPC. 2000-05-25 19:10:04 +00:00
is
da281d4321 Prepare for AmigaPPC. 2000-05-25 18:39:09 +00:00
thorpej
6ec6c6f90a Move common return-to-userland goo into userret(), like other ports. 2000-05-25 17:01:11 +00:00
mycroft
57f3751ca1 Add ipfilter-related stuff. 2000-05-25 16:33:13 +00:00
tsutsui
e747c390f0 Enable fxp* at pci and inphy* at mii. 2000-05-25 14:50:34 +00:00
tsutsui
4a42668b31 Add fxp* at pci. 2000-05-25 09:09:28 +00:00