thorpej
8871d8563a
Add a comment on single-processor systems about p_cpu being initialized
...
by fork1().
2000-05-31 05:06:43 +00:00
nisimura
0e80e9cd4b
Minor comment adjustments. cpu_switch has an argument of struct proc *.
2000-05-31 01:46:15 +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
thorpej
a787870607
From tusbai@netbsd.org:
...
Simplify SONPROC change. (and now compiles)
2000-05-26 12:57:11 +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
hubertf
9f48bba3ae
Add "install" target, so "make install" after building the kernel
...
does something useful. The target can be redefined by putting a
install-kernel-${MACHINE_NAME} target that fits your needs into
/etc/mk.conf.
2000-05-09 00:56:21 +00:00
thorpej
6a33c86623
HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9 as well. Also,
...
make the use of -Wno-uninitialized explicit, don't rely on a compiler
hack to do it for us.
2000-05-09 00:32:19 +00:00
thorpej
f51470a514
Require that each each MACHINE/MACHINE_ARCH supply a lock.h. This file
...
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED. These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case). Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.
These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.
2000-04-29 03:31:45 +00:00
msaitoh
9a41bed54e
move the Interrput Priority Level (IPL_*) definitions into MD part.
2000-04-13 15:36:09 +00:00
simonb
2f1fef39b3
Centralise the declarations of cpu_model, machine, machine_arch,
...
osrelease, and ostype and remove "extern char foo[];" (for hostname
and domainname too).
Also delete redunctant decl of boottime in kern_info_43.c.
2000-03-28 23:57:24 +00:00
msaitoh
ddb9af1bfe
set SQMD bit when sh4
2000-03-25 03:07:29 +00:00
msaitoh
b39aeb4493
use BSC_PCR_VAL
2000-03-25 02:51:57 +00:00
cgd
7c35662066
add commented out option PCI_CONFIG_DUMP whever there's a PCIVERBOSE.
2000-03-22 00:58:16 +00:00
itojun
fb2faae278
add prototype for ip6intr (not tested).
2000-03-21 04:42:57 +00:00
msaitoh
d2be696634
use SDMR2 and SDMR3
2000-03-20 22:27:16 +00:00
msaitoh
ff49b7006c
move MMUCR register definitions into mmureg.h
2000-03-20 20:30:33 +00:00
msaitoh
f1a4c4f9e7
Computex's SH7750 evaluation board
2000-03-20 20:11:00 +00:00
tron
e86957458a
Install "machineendian_machdep.h".
2000-03-17 22:36:31 +00:00
mycroft
9e21b6555a
In the `MY THAT'S GROSS' department...
...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
2000-03-17 00:09:18 +00:00
mycroft
02905321b2
Foolish consistency. Mainly, always use underscores and sys/endian.h.
2000-03-16 15:09:34 +00:00
msaitoh
a84d573e15
KZ-SH4-01 (Kyoto Micro Computer Co.,LTD)
2000-02-24 23:33:59 +00:00
msaitoh
6e7f2e9779
SH4!
2000-02-24 23:32:26 +00:00
msaitoh
da0ae51fcf
variable start address of the main memory (now we can use
...
the area 2 as main memory with "options IOM_RAM_BEGIN=0x88000000")
2000-02-24 19:42:35 +00:00
msaitoh
7ae4a95c4d
multiple interrputs!!!
2000-02-24 19:01:24 +00:00
msaitoh
e2cc2d00d7
watchdog timer
2000-02-24 17:07:34 +00:00
erh
8f03b9a04a
Define the DONETISR macro and use netisr_dispatch.h. This is to cut down on code duplication and to standardize the available NETISRs across all ports.
2000-02-21 20:38:46 +00:00
thorpej
dded044fc2
Update for the NKMEMPAGES changes.
2000-02-11 19:25:12 +00:00
msaitoh
96250cd570
fix the calculation bug for the LMA of bss.
2000-02-06 16:53:57 +00:00
tsutsui
11c8f56d48
Revert STRIPPROG -> STRIP
2000-02-01 05:25:24 +00:00
tron
04eb110431
Add "dependall" target for comfort.
2000-01-24 20:36:06 +00:00
thorpej
a0397a2573
Move callout initialization to a single location; no need to duplicate
...
that code all over the place.
2000-01-19 20:05:30 +00:00
tsutsui
e61f177ab1
STRIP -> STRIPPROG
2000-01-19 16:29:54 +00:00
msaitoh
7d3068a3b4
use macros
2000-01-17 21:59:43 +00:00
kleink
6910891781
Add NAN constant glue for sh3.
2000-01-17 16:27:53 +00:00
msaitoh
39caf082ca
use _C_LABEL()
2000-01-12 14:41:44 +00:00
msaitoh
908d5761a1
OBJCOPY?=objcopy
2000-01-12 14:40:49 +00:00
msaitoh
665e9462e5
s/ECOFF/COFF/ (comment only)
2000-01-07 11:20:41 +00:00
msaitoh
049ad0d982
machine/exec_coff.h -> sys/exec_coff.h
2000-01-07 09:40:33 +00:00
msaitoh
941be5884f
computex(computex.co.jp)'s evaluation board.
1999-12-27 11:17:14 +00:00
msaitoh
b682f09cbb
fix missing SCI IRQ mask/unmask code.
1999-12-27 10:50:41 +00:00
msaitoh
d73af2f624
use _C_LABEL()
1999-12-26 20:32:11 +00:00
msaitoh
05781b11af
back to previous one (suggested by cgd)
1999-12-24 08:29:23 +00:00
msaitoh
8427734872
move sysctl definitions into ${MACHINE}/include/cpu.h
1999-12-21 22:19:16 +00:00
msaitoh
67f8a5ca5b
fix the usage of .align 2
1999-12-21 21:41:56 +00:00
msaitoh
4f62c264c8
".align 2" for mova instruction
1999-12-21 17:46:54 +00:00
msaitoh
31b6740b63
Add SCI interrupt mask/unmask code.
1999-12-06 14:10:49 +00:00
ragge
0513268399
CL* discarding.
1999-12-04 21:13:19 +00:00
fvdl
d116707af0
Add
...
prefix ../gnu/sys
cinclude "conf/files.softdep"
prefix
to all std.* files, so that soft dependencies can be activated using
"options SOFTDEP".
1999-11-15 19:00:25 +00:00
tsubai
0afae6fc87
Move common parts of machdep.c to sh3_machdep.c.
1999-09-21 13:16:15 +00:00
thorpej
11cae42531
Centralize the declaration and clearing of `cold'.
1999-09-17 19:59:35 +00:00