| #
0b2c7040 |
| 05-Oct-2006 |
tsutsui <tsutsui@NetBSD.org> |
Make sun3 use common sun68k/sun68k/isr.c, sun68k/include/cpu.h and sun68k/include/intr.h.
This also means now sun3 has GENERIC_SOFT_INTERRUPTS support, so also adapt fd.c and zs.c to MI softintr(9)
Make sun3 use common sun68k/sun68k/isr.c, sun68k/include/cpu.h and sun68k/include/intr.h.
This also means now sun3 has GENERIC_SOFT_INTERRUPTS support, so also adapt fd.c and zs.c to MI softintr(9) APIs.
(I'll also update related sources in yamt-splraiseipl branch later)
show more ...
|
| #
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
| #
10b1a7be |
| 22-Jan-2005 |
chs <chs@NetBSD.org> |
de-__P, remove register, ansify, b* -> mem*, u_int*_t -> uint*_t.
|
| #
d2fe4b34 |
| 22-Sep-2004 |
yamt <yamt@NetBSD.org> |
move some per-cpu data definitions to MI place so that they can be modified without touching all ports. discussed on tech-kern@.
|
| #
089abdad |
| 04-Jan-2004 |
jdolecek <jdolecek@NetBSD.org> |
Rearrange process exit path to avoid need to free resources from different process context ('reaper').
From within the exiting process context: * deactivate pmap and free vmspace while we can still
Rearrange process exit path to avoid need to free resources from different process context ('reaper').
From within the exiting process context: * deactivate pmap and free vmspace while we can still block * introduce MD cpu_lwp_free() - this cleans all MD-specific context (such as FPU state), and is the last potentially blocking operation; all of cpu_wait(), and most of cpu_exit(), is now folded into cpu_lwp_free() * process is now immediatelly marked as zombie and made available for pickup by parent; the remaining last lwp continues the exit as fully detached * MI (rather than MD) code bumps uvmexp.swtch, cpu_exit() is now same for both 'process' and 'lwp' exit
uvm_lwp_exit() is modified to never block; the u-area memory is now always just linked to the list of available u-areas. Introduce (blocking) uvm_uarea_drain(), which is called to release the excessive u-area memory; this is called by parent within wait4(), or by pagedaemon on memory shortage. uvm_uarea_free() is now private function within uvm_glue.c.
MD process/lwp exit code now always calls lwp_exit2() immediatelly after switching away from the exiting lwp.
g/c now unneeded routines and variables, including the reaper kernel thread
show more ...
|
| #
da943b10 |
| 22-Sep-2003 |
tsutsui <tsutsui@NetBSD.org> |
Remove #ifdef _KERNEL inside #ifdef _KERNEL.
|
| #
aad01611 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
| #
d2275d51 |
| 18-Jan-2003 |
thorpej <thorpej@NetBSD.org> |
Merge the nathanw_sa branch.
|
| #
1c2419d2 |
| 20-Oct-2002 |
chs <chs@NetBSD.org> |
merge the 12 copies of vm_machdep.c on the m68k platforms. clean up some other stuff along the way, including: - use m68k/cacheops.*, remove duplicates from cpu.h. - centralize a few declarations i
merge the 12 copies of vm_machdep.c on the m68k platforms. clean up some other stuff along the way, including: - use m68k/cacheops.*, remove duplicates from cpu.h. - centralize a few declarations in (all the copies of) cpu.h. - define M68K_VAC on platforms which have a VAC. - switch the sun platforms to the (now common) proc_trampoline(). - do the phys_map thang on the sun platforms too, no reason not to.
show more ...
|
| #
0dc8ee94 |
| 14-May-2002 |
matt <matt@NetBSD.org> |
Eliminate more commons or redundant declarations.
|
| #
67afbd62 |
| 30-May-2001 |
mrg <mrg@NetBSD.org> |
use _KERNEL_OPT
|
| #
a9522682 |
| 22-Feb-2001 |
chs <chs@NetBSD.org> |
switch sun3 to ELF. highlight include: add "%" prefix to register names in assembly code. change assembly functions to return values in %a0 instead of %d0. C symbols no longer prepend an underscore,
switch sun3 to ELF. highlight include: add "%" prefix to register names in assembly code. change assembly functions to return values in %a0 instead of %d0. C symbols no longer prepend an underscore, adjust assembly code for this. 32-bit values are now 32-bit aligned instead of 16-bit aligned, adjust structure packing and padding to override this where necessary. make EXEC_ELF std, make EXEC_AOUT and COMPAT_AOUT_M68K optional. use the MI loadfile() instead of several home-grown versions.
show more ...
|
| #
20c4de8a |
| 04-Feb-2001 |
tsutsui <tsutsui@NetBSD.org> |
Move cachectl1() declaration from sun3/machdep.h to include/cpu.h; it is refered by sys/compat/linux/arch/m68k/linux_machdep.c.
XXX: all declarations in machdep.h should be moved into cpu.h?
|
| #
31a0a141 |
| 03-Feb-2001 |
tsutsui <tsutsui@NetBSD.org> |
Include <m68k/m68k.h> to use m68k common definitions.
|
| #
4db6fc75 |
| 25-Aug-2000 |
thorpej <thorpej@NetBSD.org> |
Make need_resched() take a "struct cpu_info *" argument. This causes gives a primitive form of processor affinity. Its use in roundrobin() still needs some work.
|
| #
a7d0570e |
| 26-May-2000 |
thorpej <thorpej@NetBSD.org> |
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)
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.
show more ...
|
| #
28fb7c1e |
| 10-Aug-1999 |
thorpej <thorpej@NetBSD.org> |
Define cpu_number() as discussed on tech-smp.
|
| #
a4b8e33b |
| 20-Mar-1997 |
gwr <gwr@NetBSD.org> |
This needs muli-include protection now.
|
| #
0c5e3e49 |
| 17-Dec-1996 |
gwr <gwr@NetBSD.org> |
Make this compile with -Werror -Wall -Wstrict-prototypes (finally! yea!) Also get rid of __BROKEN_INDIRECT_CONFIG
|
| #
ce000f04 |
| 21-Dec-1995 |
mycroft <mycroft@NetBSD.org> |
Remove deprecated cpu_setstack().
|
| #
c83f9c55 |
| 28-Jun-1995 |
cgd <cgd@NetBSD.org> |
remove unused cpu_exec() definitions. moved "broken swap" markers, for ports that still need it, to types.h.
|
| #
6867f7fc |
| 24-May-1995 |
gwr <gwr@NetBSD.org> |
Update cpu_fork() to eliminate double mapping of kernel stacks.
|
| #
87030769 |
| 05-May-1995 |
cgd <cgd@NetBSD.org> |
define BROKEN_SWAP and/or cpu_swapout as appropriate.
|
| #
de42a28a |
| 22-Apr-1995 |
christos <christos@NetBSD.org> |
- added sunos_machdep.c for sun3, atari, amiga and mac68k. - changed machdep.c and trap.c to use struct emul. - remove ep_setup references. - added struct emul to all emulations.
|
| #
71ab4ed9 |
| 28-Mar-1995 |
jtc <jtc@NetBSD.org> |
KERNEL -> _KERNEL
|