Commit Graph

158986 Commits

Author SHA1 Message Date
tsutsui
ed39f92a7f Adapt hp300 to yamt-idlelwp. Tested on 9000/382. 2007-05-18 10:15:08 +00:00
tsutsui
bbf9e3d14a Adapt news68k to yamt-idlelwp. Tested on NWS-1750. 2007-05-18 10:13:25 +00:00
skrll
843d692d5a pmap_activate shouldn't play with the trap frame - especially not now it's
called by the MI code.

Implement a way of tracking the vmspace allocated to a process and its
LWPs so that if it changes underneath us we can correct the space id in
the trapframe in pmap_activate for now.

An example of when this happens is vfork/exec.

An exec hook is probably the way to go.
2007-05-18 09:10:50 +00:00
skrll
fbf7d918bc Whitespace and wrao a long line. 2007-05-18 08:49:36 +00:00
yamt
297c65017f obsolete mi_switch.9 and cpu_switch.9 MLINKS. pointed by Blair Sadewitz. 2007-05-18 05:09:08 +00:00
mhitch
38ee607428 Fix a couple of problems when starting the idle lwp on secondary
cpus:  Set curlwp, and allow interrupts before entering idle loop
(otherwise, IPI interrupts won't be handled on an idle cpu).
2007-05-18 02:48:06 +00:00
mhitch
bf0f43741a Fix alpha MP for idlelwp: ci_idle_lwp was added to cpu_info
structure, but never initialized.  There's already a cpu_idlelwp
in ci_data, which appears to be the same thing, so use that instead.
2007-05-18 02:45:18 +00:00
uwe
1d63bcac56 Implement fast path TLB miss handling. Walk the page table without
creating a trapframe, with exceptions disabled and using only BANK1
registers.  If a valid pte is found, load it and return.  Otherwise
create a trapframe and proceed to the full-blown C handler.
2007-05-18 02:31:06 +00:00
mhitch
36e70d8e10 Common m68k changes for idlelwp. 2007-05-18 01:46:39 +00:00
mhitch
795d4ea06e Amiga changes for idlelwp. 2007-05-18 01:39:52 +00:00
rjs
66b9a823ea Start yamt-idlelwp fixes. 2007-05-17 22:15:22 +00:00
uwe
b348c690b7 Print pc/pr when faulting in ddb, it comes in handy. 2007-05-17 22:12:08 +00:00
christos
4be3505e2e fix for yamt-idlelwp 2007-05-17 21:42:32 +00:00
pooka
6a3281d2da Calling puffs_exit() in fuse_{exit,unmount}() is wrong, as those
shouldn't release resources.  As a quick hack to prevent double
frees etc, introduce "dead" variable into fuse channel to signal
if the backing puffs resource was already freed.  XXX: the check
is only in exit/unmount currently.

Proper fix really depends on some puffs features I still haven't
gotten around to doing.
2007-05-17 21:28:12 +00:00
pooka
a367d901e0 create hash for the root path object 2007-05-17 21:00:32 +00:00
christos
885ed2ab13 return POLLERR instead of ENXIO since we are expecting an revents mask not
an errno.
2007-05-17 18:01:57 +00:00
pooka
7ed1d7403d vn_poll does not return success/error, it return what VOP_POLL
returns, i.e. mask of available events
2007-05-17 17:47:10 +00:00
christos
1425884c9e Coverity CID 3157: remove bogus break. 2007-05-17 17:04:12 +00:00
pooka
d2228f155e initialize refusenode contents to 0
(don't change malloc to calloc and expect things not to break)
2007-05-17 16:41:18 +00:00
yamt
617e49b8de mention idlelwp branch merge. 2007-05-17 15:28:26 +00:00
pooka
ae3221667f reflect today's mount changes 2007-05-17 15:21:14 +00:00
yamt
df0f9a881d obsolete:
ctxsw
	cpu_exit
add:
	cpu_switchto
	cpu_idle
2007-05-17 15:21:00 +00:00
yamt
19e935945f add cpu_idle.9. 2007-05-17 15:14:27 +00:00
yamt
6af9c3d49d update after yamt-idlelwp merge.
- remove cpu_exit.9.
- remove ctxsw.9 from makefile because it's too stale.
  XXX maybe it will revive as mi_switch.9 later.
- add cpu_switchto.9 to makefile.
2007-05-17 15:12:56 +00:00
yamt
e513490beb update after yamt-idlelwp merge. 2007-05-17 15:06:25 +00:00
yamt
6ba36ace69 bump to 4.99.20. yamt-idlelwp merge. 2007-05-17 14:53:33 +00:00
yamt
a2f3ca9fc6 terminate yamt-idlelwp branch. 2007-05-17 14:52:50 +00:00
yamt
f03010953f merge yamt-idlelwp branch. asked by core@. some ports still needs work.
from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.
2007-05-17 14:51:11 +00:00
pooka
c8b0a89198 reflect changes in fs mount: use puffs_mount() instead of
puffs_domount() & puffs_start()
2007-05-17 14:13:04 +00:00
pooka
9550017a8d Adapt to changes with mounting file systems.
Introduce a parameter -r to control the root node type.  For example
"dtfs -r 'lnk /etc' /puffs" mounts dtfs with the root node as a
symbolic link to /etc:

jojonaru# ./dtfs -r 'lnk /etc' /puffs
jojonaru# ls -l /puffs
lrw-rw-rw-  1 root  wheel  4 May 17 14:06 /puffs -> /etc
jojonaru# cd /puffs
jojonaru# pwd
/etc
jojonaru#

Extra credit for figuring out how to unmount this file system with
umount(8).

Likewise, "dtfs -r 'chr 2 12' /puffs" makes /puffs (i386) /dev/zero etcetc.
2007-05-17 14:10:13 +00:00
pooka
c7561a8e7c Reflect kernel changes for supplying root node information in mount
instead of puffs_start().  Get completely rid of puffs_start(), as
everything it used to do is now handled by the mount routine.
Introduce an optional pre-mount call puffs_setrootinfo() for setting
non-default root node information.  As the old puffs_mount() is
now virtually useless, say byebye to it and rename the old
puffs_domount() to puffs_mount(), but add a root cookie parameter
to compensate for the late puffs_start().
2007-05-17 14:03:13 +00:00
pooka
339652951e Make it possible for the file server to specify the root vnode type
and other information instead of always using VDIR.  To make this
possible without races, require all root node information already
in puffs_mount() and nuke puffs_start2() and the associated start
operation completely.

requested/inspired by Tobias Nygren
2007-05-17 13:59:22 +00:00
yamt
cb7e3eae7c yamt-idlelwp: update base 2007-05-17 13:43:59 +00:00
pooka
5a69314b41 struct puffs_usermoint does sound more lively, but be serious and
fix the typos to puffs_usermount
2007-05-17 13:31:30 +00:00
yamt
1edd331e30 mark lwp_exit() and exit1() __noreturn__. 2007-05-17 12:05:03 +00:00
hannken
d34d506c7f Remove an assertion that causes non-diagnostic kernels to fail. 2007-05-17 12:00:31 +00:00
yamt
ea9397d212 remove net.inet6.ip6.rht0. 2007-05-17 11:50:10 +00:00
yamt
c8a34d8e58 remove net.inet6.ip6.rht0 sysctl.
it's too dangerous compared to its benefit.

strongly requested by itojun@.  ok'ed by core@.
2007-05-17 11:48:42 +00:00
fvdl
961ad7addf Fix broken constraint in asm. 2007-05-17 10:42:42 +00:00
lkundrak
5611b751db Added myself. 2007-05-17 08:56:46 +00:00
wiz
5c06e01588 gcc-4.2.0 out. 2007-05-17 08:49:38 +00:00
tron
8d815e7cf6 Remove entries for changes which have been pulled up into the "netbsd-4"
branch before the NetBSD 4.0 release.
2007-05-17 08:18:21 +00:00
tron
bd69af476a Sync with the "CHANGES" file on the "netbsd-4" branch. 2007-05-17 08:15:47 +00:00
hannken
64b7e5637e Fstrans_start() always returns zero, so change its type to void. 2007-05-17 07:26:21 +00:00
christos
19468d62cc More fixes:
- make sure that the args array is NULL terminated.
- make sure argc is initialized and argv is set to NULL after freeing.
- make the deep copy function an opt interface function.
2007-05-17 01:55:43 +00:00
hubertf
ae218465f7 Add GENERIC.NOACPI kernel that offers - surprise! - no ACPI
(in contrast to GENERIC).
2007-05-17 01:50:48 +00:00
dyoung
1db31a59af Fix the memory leak reported in kern/36337. Thanks Matthias Scheler
for the heads-up.  My fix is based on the following patches from
FreeBSD, however, I extracted the code into a subroutine,
nd6_llinfo_release_pkts():

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet6/nd6.c.diff?r1=1.48.2.18;r2=1.48.2.19
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet6/nd6_nbr.c.diff?r1=1.29.2.8;r2=1.29.2.9
2007-05-17 00:53:26 +00:00
christos
50ab9d6934 - since mknod now can create regular files, make sure veriexec allows it.
Done in a way to minimize ifdefs. Per discussions with elad.
2007-05-17 00:46:30 +00:00
christos
b0d544666a whitespace fixes. 2007-05-17 00:36:31 +00:00
christos
7ac2181da6 Deal with delta being negative on machines which signed shifts don't shift 1's. 2007-05-17 00:36:12 +00:00