Commit Graph

87955 Commits

Author SHA1 Message Date
tsutsui
0f31f5cb6c Preserve local symbols on linking a kernel so that
we can get more useful trace on ddb(4).
2007-05-25 10:44:27 +00:00
skrll
71c04700f6 No need to check if oldl == newl in cpu_switchto. All the callers ensure
this is never the case.

Fixup a few comments while I'm here.
2007-05-25 10:40:04 +00:00
martti
6b17040b66 Fix problems with stateful filtering. Patch received from darrenr@. 2007-05-25 06:44:20 +00:00
macallan
8add5b3a22 defflag SPARCBOOK_CMD 2007-05-25 02:01:41 +00:00
mjacob
3470b7cb13 Whoops- I almost forgot. Thank MetrumRG Associates for material
support in making 4Gb NetBSD support possible.
2007-05-25 01:59:24 +00:00
mjacob
8e237f7550 Major update to isp(4) driver to bring it in line with external sources.
The major changes are:

 + 4Gb (24XX) card support
 + Rewritten fabric and loop evaluation code
 + New f/w sets

The 4Gb changes required major rototilling, which caused a rewrite of
fabric and loop eval code. The latter can now be set up to tune for
dynamic device arrival/departure if the framework is set up for it,
or to be firm about waiting for devices.

Testing has been principally on amd64, i386 and sparc64 and seems to
not have broken things for me.
2007-05-24 22:12:02 +00:00
mjacob
f0b57d5f54 Major update to isp(4) driver to bring it in line with external sources.
The major changes are:

 + 4Gb (24XX) card support
 + Rewritten fabric and loop evaluation code
 + New f/w sets

The 4Gb changes required major rototilling, which caused a rewrite of
fabric and loop eval code. The latter can now be set up to tune for
dynamic device arrival/departure if the framework is set up for it,
or to be firm about waiting for devices.

Testing has been principally on amd64, i386 and sparc64 and seems to
not have broken things for me.
2007-05-24 21:30:41 +00:00
briggs
9e95a6e477 The number of max_lat units in 1 sec is 4000000 instead of 40000000 (an
extra 0 snuck into the code).
Found when looking at this with dyoung.
2007-05-24 15:57:58 +00:00
briggs
4208391f45 Some changes from the FreeBSD driver:
* Include definitions of adapter-initiated fibs.
* Send aifs back to the adapter after we receive them.
* Use indexes instead of pointers in 32-bit hardware registers.
* If we get a message that there's a printf from the adapter, but we have
  a NUL in the first character of the printf string, change the NUL to a
  space.
2007-05-24 15:07:47 +00:00
xtraeme
8f6f7665fa Indentation. 2007-05-24 13:36:57 +00:00
njoly
f70cd37804 Fix restart of interrupted system calls.
- Make linux_sys_rt_sigreturn() return EJUSTRETURN on success.
- Add missing rax to linux_sigcontext structure; and save/restore
  its value like other members in linux_sendsig()/linux_sys_rt_sigreturn().

With valuable help from manu.
2007-05-24 11:21:52 +00:00
dogcow
905b715a4b use PRIu64, not llu, to unbork on 64-bit platforms. 2007-05-24 05:33:08 +00:00
agc
4dbe5ed7e7 Extend the Linux emulation of /proc to include
/proc/stat
	/proc/loadavg and
	/proc/<pid>/statm.

These are only present when -o linux is specified as a mount option
to procfs.

Factor out some common code so that it can be used by a number of
functions.

XXX The values returned in the statm emulation need to be verified.
2007-05-24 00:37:40 +00:00
christos
68a6db0f0b fix typos in previous 2007-05-23 17:32:46 +00:00
christos
72cfe7327b Ansify + add a few comments, from Karl Sjödahl 2007-05-23 17:14:59 +00:00
he
410727fbc5 Remove MUNGE(NOP_ON_4M_15), that label no longer exists. 2007-05-23 14:51:16 +00:00
martin
dad9937fa5 In pmap_kenter_pa honour VM_PROT_EXECUTE - otherwise LKMs are not mapped
executable.
Fixes PR port-sparc64/36376.
2007-05-23 09:36:22 +00:00
martin
48290fcae6 Fix a stupid bug in the save_fpstate ipi, which caused overwriting of
struct lwp of the lwp owning the fpu. Fix clearing the fplwp - %o0 will
not survive the call to savefpstate - duh!
2007-05-23 08:16:43 +00:00
mhitch
058579391c Rework pmap_zero_page() and pmap_copy_page() so it doesn't need the pte
pointers from pmap_bootstrap(), and make pmap_bootstrap() more compatible
with the common m68k pmap_motorola.c.
cVS: ----------------------------------------------------------------------
2007-05-23 00:47:03 +00:00
mhitch
786f6950fd Get rid of pcb_cmap2 - it hasn't been used for a long, long time. 2007-05-22 20:29:31 +00:00
rjs
9b21104e57 Fix for yamt-idlelwp merge. 2007-05-22 20:06:33 +00:00
mrg
b9baf4bfef cpu_switchto(): if oldlwp is NULL, don't bother saving it. 2007-05-22 18:15:58 +00:00
martin
6b07dc2e73 In cpu_hatch() set curlwp to the idlelwp.
While here, remove a few debug printfs we no longer need.
2007-05-22 15:44:06 +00:00
xtraeme
f8dd8c3128 Do not print twice features2. This was added with yamt-idlelwp. 2007-05-22 13:56:54 +00:00
tnn
6380d93405 When renaming, copy the new name into the designated memory area.
Tested by martti@
2007-05-22 10:39:10 +00:00
mhitch
719ec3a2b9 From pmap_motorols,c:
Allow pmap_enter_ptpage to fail, sometimes. Pass WAIT/NOWAIT flags and
fix some obvious locking problems. This allows us to run a LOCKDEBUG
ernel now.
2007-05-22 05:05:32 +00:00
cube
03744d91f8 Rename si_sigval -> si_value to match POSIX RTS. [hi christos!] 2007-05-22 03:51:54 +00:00
rjs
4bf1455184 Remove two unused global variables. 2007-05-22 00:23:57 +00:00
martin
3f7dee7700 Fix cpu_idle() for machines that have a idlespin function - use a
sibling call to invoke it (cpu_idle pretends to be a leaf function).
Pointed out by uwe.
2007-05-21 22:16:35 +00:00
tron
91c4e746d1 Regen for PR kern/36360. 2007-05-21 19:40:49 +00:00
tron
c82109688f Add entries to recognize the Farallon Etherwave ISA card via ep(4).
Based on a patch submitted by Randy Beaudreault in PR kern/36360,
reviewed by Christos Zoulas.
2007-05-21 19:40:28 +00:00
rumble
b1a93d335f Fix comments about the cf_flags layout and use macros to test whether
tags, sync, and disconnect/reconnect are to be disabled or not.
2007-05-21 19:25:54 +00:00
rumble
305139637d Check in a workaround before I lose or forget about it:
My SGI issued IBM DORS-32160 will respond to every message with a sync
negotiation (even IDENTIFY) until it gets a response it likes (and it
definitely doesn't like async). Unfortunately, this locks us into an endless
loop after sending IDENTIFY, since the device responds with a SYNC
negotiation that we refuse to accept. This refusal results in a new
target-initiated sync negotiation, and so on...

To work around this, permit negotiating sync mode on an unexpected
target-initiated sync negotiation.
2007-05-21 18:56:32 +00:00
dsl
b113bdbde9 Fix logic inversion - probably PR kern/36284 2007-05-21 18:30:35 +00:00
tsutsui
c57c46580b Wrap sanity checks with #ifdef DIAGNOSTIC. 2007-05-21 17:00:32 +00:00
tsutsui
1a72ef0dec Wrap a sanity check with #ifdef DIAGNOSTIC. 2007-05-21 16:57:18 +00:00
tsutsui
835288d097 Remove unused m68k/bcopy.s.
(src/common/lib/libc/arch/m68k/string/bcopy.S in libkern is enough)
2007-05-21 16:54:00 +00:00
tsutsui
f8eda28885 Remove netns stuff. 2007-05-21 16:51:13 +00:00
tsutsui
069bd07685 Remove a local declaration of lwp_trampoline(). 2007-05-21 16:39:52 +00:00
tsutsui
32b0b73c06 Move declarations of m68k common functions
from <machine/cpu.h> to <m68k/m68k.h>.
While here, remove some obsolete function decls.
2007-05-21 16:37:03 +00:00
tsutsui
9e69c7d7d9 Make netintr() static since it's referred only in sun68k/isr.c. 2007-05-21 16:25:14 +00:00
tsutsui
92163ee53d Remove obsolete "extern int want_resched" decls. 2007-05-21 15:55:43 +00:00
tsutsui
85b0c3a013 Remove an obsolete "extern int want_resched" decl. 2007-05-21 15:54:58 +00:00
cube
e5c9a61e5e Add support for BCM5715. Works seemingly well on hardware provided by
pavel@.  Thanks, Pavel!
2007-05-21 15:36:26 +00:00
christos
c61eed39a8 rename si_sigval -> si_value to match POSIX RTS. 2007-05-21 15:35:47 +00:00
tsutsui
c6262d2d8d Remove obsolete decralations of switch_exit() and switch_lwp_ext(). 2007-05-21 15:34:22 +00:00
tsutsui
f06d68f845 curlwp can't be NULL so no need to check it. 2007-05-21 15:22:21 +00:00
tsutsui
7d0fcadf39 Initialize curlwp as well as lwp0.l_addr right after MMU is enabled. 2007-05-21 15:19:17 +00:00
tsutsui
79dff7e882 Add a comment. 2007-05-21 15:09:12 +00:00
tsutsui
4713f4a32c Adapt rest of m68k ports to yamt-idlelwp. Compile tested only. 2007-05-21 15:06:16 +00:00
tsutsui
9275ebae10 Fix prototype of cpu_switchto(9) in LINTSTUB comment. 2007-05-21 14:05:02 +00:00
tsutsui
055d952d40 - update and add some comments for readability
- fix prototype of cpu_switchto(9) in comment
- use %sp@(8) style index rather than 8(%sp)
2007-05-21 14:01:56 +00:00
tsutsui
a2ee5e6ef2 - include "dev/pci/files.pci" rather than pulling only dev/pci/pcibusprint.c
- also include "dev/wsfb/files.wsfb" which is required by files.pci
2007-05-21 13:39:31 +00:00
tsutsui
0527b0db7b Call pci attachment only if pci(4) is configured. 2007-05-21 13:37:28 +00:00
he
a7250fcaae Remove proc_trampoline() declaration that I added, we use
lwp_trampoline() now instead.
2007-05-21 13:36:16 +00:00
tsutsui
b69e9377c9 - convert to register prefixes
- zero out BSS before we start calling into C code instead of memset()
  (pulled from macppc/stand/ofwboot/Locore.c rev 1.16)
2007-05-21 13:20:03 +00:00
tsutsui
29070a7e6e Add src/common/include to -I include path so that ofwboot build
without installed headers in DESTDIR.
2007-05-21 13:14:51 +00:00
skrll
5492d86688 Correct comment. 2007-05-21 11:56:35 +00:00
degroote
03281f71f1 Use dynamic array instead of an static array to decompress. It lets us to
decompress any data, whatever is the radio decompressed data / compressed
data.

It fixes the last issues with fast_ipsec and ipcomp.

While here, bzero -> memset, bcopy -> memcpy, FREE -> free

Reviewed a long time ago by sam@
2007-05-21 11:35:16 +00:00
skrll
c7c42ec961 Correct comment - it's cpu_switchto now. 2007-05-21 08:17:41 +00:00
fvdl
816da6f7fe Revert fs/gs changes until I figure out issues with them. 2007-05-21 08:10:38 +00:00
simonb
643aedadec Fix a tpyo in a comment. 2007-05-21 02:48:00 +00:00
xtraeme
a092715e1b Add missing __KERNEL_RCSID() and missing $NetBSD$ tag. 2007-05-21 02:13:11 +00:00
macallan
6645fde801 fix typo in cpu_idle - the function we want to call is in %01 not %o3 2007-05-20 23:09:13 +00:00
martin
12a2d1610a Simplify tf_tstate setting when leaving for userland initially - I seem
to have confused the if with the else case of the previous C code.
Funny that it worked at all.
2007-05-20 21:51:01 +00:00
martin
b09a59d4a8 cpu_switchto() has to return it's first arg, always. This differs from
my reading of the documentation, but helps in the real world and seems
to be what other ports do.
2007-05-20 20:28:02 +00:00
martin
b52e09dc19 Remove special case handling for userland lwps from cpu_lwp_fork, instead
do it in lwp_trampoline when we first return to userland.
2007-05-20 19:18:15 +00:00
he
e9e5beefa0 Now that curcpu() is defined in terms of curlwp() for mips, we need to
include <sys/lwp.h> where curcpu() is used.
2007-05-20 17:06:25 +00:00
mhitch
7a5f5a8ddf Fix commant: proc_trampoline() -> cpu_lwp_bootstrap(). 2007-05-20 17:04:22 +00:00
mhitch
108936c65e Fix comment: proc_trampoline() -> lwp_trampoline(). 2007-05-20 16:57:57 +00:00
he
7a6dd773d0 Patterned after the changes to atari, restore the luna68k port to a
buildable state after the yamt-idlelwp merge.
Struct cpu_info now must contain ci_want_resched, so get rid of the
global want_resched.
The cpu_need_resched macro now takes two arguments.
We need to declare proc_trampoline() from for the new m68k vm_machdep.c.
The fields l_back and l_forw no longer exists in struct lwp, so excise
their definition from genassym.cf.
Remove the use of the apparently now obsolete m68k/proc_subr.s.
2007-05-20 16:37:53 +00:00
he
2cf15b5c24 Follow the pattern suggested by mhitch for the atari port and
remove inclusion of m68k/m68k/proc_subr.s, restoring the kernel
to a buildable state.
2007-05-20 15:06:40 +00:00
isaki
d7f5331e03 Make it compilable with FDDEBUG. 2007-05-20 10:52:40 +00:00
mlelstv
e9fd5309a1 Retry set_address function for very slow (out of spec) devices, just
like FreeBSD.
2007-05-20 09:24:55 +00:00
yamt
a5e5b20e90 use mutex. 2007-05-20 07:57:03 +00:00
mhitch
63fa6e9922 Forgot cpu.h for amiga - rename proc_trampoline()->lwp_trampoline(). 2007-05-20 06:01:05 +00:00
tsutsui
124af7e7eb Call simple_lock_init(9) with proper zs_chanstate otherwise
LOCKDEBUG kernel fails during console zstty attachment.
2007-05-20 05:50:25 +00:00
dogcow
998934e40c as pointed out by juan RP, uslsa should be in ALL as well. 2007-05-20 05:19:18 +00:00
dogcow
68c5aff916 add uslsa USB-RS232 adapter 2007-05-20 05:13:17 +00:00
dogcow
2d38890bb5 From PR kern/33496 - add uslsa(4), a CP210x USB-RS232 ucom driver.
After minor hacks, it compiles without problems; however, it's not been tested
with an actual device.
2007-05-20 05:08:17 +00:00
dogcow
7103bb1242 Regenerate. 2007-05-20 05:05:32 +00:00
dogcow
534638ad53 add devs for uslsa; data taken from OpenBSD's usbdevs. 2007-05-20 05:05:06 +00:00
mhitch
9385473585 Add missing call to lwp_startup() in lwp_trampoline() (which was renamed
from proc_trampoline to match the other ports).

A DIAGNOSTIC kernel will now boot and run.  LOCKDEBUG still doesn't work yet.
Also, my amiga no longer loses time.
2007-05-20 04:29:47 +00:00
isaki
8bd92b6261 indent fix. 2007-05-20 02:54:11 +00:00
martin
9a8848720e cpu_idle is a leaf function, so we better "return from leaf".
Use return value from cpu_switchto for previous lwp in lwp_trampoline.
Also shamelessly steal a comment from uwe written for sparc that explains
all this.
Thanks to tnn, mrg, and uwe for helping to debug this.
2007-05-19 23:27:42 +00:00
martin
ca7f1b27f4 No need to pass "old lwp" to lwp_trampoline - we'll get it as return
value from cpu_swithchto() once the lwp gets scheduled for the first
time.
2007-05-19 23:25:54 +00:00
uwe
aff9e2d286 Make lwp_trampoline comment explain how things are set up in more details.
While here, fix gimplish in the inline comment too (hi, phone!)
2007-05-19 23:08:48 +00:00
mrg
68843a6372 fix a compile error #ifdef MULTIPROCESSOR. does not boot yet... 2007-05-19 23:04:48 +00:00
mrg
8d92d0d7d8 fix the two problems i introduced with yamt-idlelwp:
- in lwp_trampoline, oldlwp is already in %o0.  don't save or the wrongly
  saved copy from cpu_lwp_fork().  as repeatedly pointed out my uwe.

- in cpu_idle use retl not ret.  as pointed out by martin.


thanks to uwe/martin/tnn for all the real debugging work.
2007-05-19 22:57:47 +00:00
christos
09a50be501 - remove pathname_ interface.
- use macros to deal with pathnames in userspace, when veriexec is used.
- reorder the veriexec_ call arguments for consistency.
With help from elad@ finding the last bug.
2007-05-19 22:11:22 +00:00
martin
745a13751c page_idle_zero is now checked in MI code 2007-05-19 22:10:39 +00:00
mhitch
881ae5b63c Spelling error, I should be old enough to know better. 2007-05-19 21:00:22 +00:00
fvdl
cbfa99c95a cpu_switchto: PCB_CR0(%r14) is a 32bit value, so don't use movq to retrieve it.
Using movq would copy pcb_flags along as well, which would cause traps
because bad bits would be written into %cr0 a few instructions later.
This wouldn't happen for native NetBSD processes (no pcb_flags set), but
it would happen for Linux processes.
2007-05-19 20:20:47 +00:00
pavel
8deade14c9 Add cardbus support. It has been reported that on some laptops
(Asus W5A, HP nx6310) the kernel panics without it.
2007-05-19 18:49:38 +00:00
mhitch
bc467535b8 Fix multiprocessor operation: move a couple of fields in struct cpu_info
to the beginning so they can still be accessed in assymbly code using 8 bit
offsets.  The addition of a big structure in cpu_data moved these outside
the range of the addq instruction.  Gas should have complained that the
immediate value was too large, but just silently truncated it.  I can now
run multiprocessor again.
2007-05-19 17:09:35 +00:00
pooka
68568e7a22 forgot to commit this with puffs_vnops.c 1.72:
Actually, we do need separate "no references in file server" and
"noref + inactive" flags if we wish to correctly support unix open
file semantics and optimize away pre-reclaim cache flushes.  So,
add PNODE_DYING which stands for norefs + inactive.
2007-05-19 16:50:49 +00:00
pooka
121b6fb7b3 Actually, we do need separate "no references in file server" and
"noref + inactive" flags if we wish to correctly support unix open
file semantics and optimize away pre-reclaim cache flushes.  So,
add PNODE_DYING which stands for norefs + inactive.
2007-05-19 16:35:01 +00:00
tsutsui
4521a25b2f Regen from pcidevs rev 1.880:
> Add IBM GXT250P video.
2007-05-19 14:57:44 +00:00
tsutsui
f21468d172 Add IBM GXT250P video. 2007-05-19 14:56:24 +00:00
tsutsui
2340b51076 Set DTR and RTS in NS16550_init().
Some terminal requires it even if hardware flow control is disabled.

XXX: should we sync bebox/stand with prep?
2007-05-19 14:26:08 +00:00
isaki
38bf980ecb Use do { } while (0) to macro. 2007-05-19 14:25:26 +00:00
isaki
2440803ee4 Adapt to the merge of yamt-idlelwp branch.
tested on my X68030.
2007-05-19 14:19:39 +00:00
he
57451082bc Adapt to the merge of the yamt-idlelwp branch.
curcpu()->ci_want_resched is now required, so get rid of the
want_resched global.  Also, cpu_need_resched() now takes two arguments.
The l_next and l_back fields in struct lwp no longer exists, so delete
references to it from genassym.cf.
Also, m68k/m68k/proc_subr.s is no longer used, says mhitch, so remove its use.

This brings the atari BOOT kernel back to a buildable state.
2007-05-18 22:58:51 +00:00
riz
72c8d580f7 Add 'options TCP_SIGNATURE' to hopefully keep this code from
invisibly breaking periodically, as it's done a couple times.
2007-05-18 22:38:51 +00:00
pavel
224217a90e from FreeBSD's src/sys/dev/bge/if_bgereg.h rev 1.22:
Fix a typo. BGE_HCC_TX_MAX_COAL_BDS_INT is at offset 0x3C24, not 0x3C34
Noticed by Patrick Welche on tech-kern@, ok cube.
2007-05-18 22:30:24 +00:00
riz
711b142f07 Fix compilation in the TCP_SIGNATURE case:
- don't use void * for pointer arithmetic
	- don't try to modify const parameters

A kernel with 'options TCP_SIGNATURE' works as well as it ever did, now.
(ie, clunky, but passable)
2007-05-18 21:48:43 +00:00
riz
89c9ca415d Revert a small part of revision 1.254 - remove const qualifier from
the struct tcphdr * argument of tcp_dooptions().  RFC2385 support
(options TCP_SIGNATURE) needs to modify the header during options
processing, and this revision broke it.

OK yamt@.
2007-05-18 21:31:16 +00:00
mhitch
da59486c27 Fix alpha build after idlelwp merge. I don't know why machine/cpu.h was
added here, but it does not seem to be needed now, and was resulting in a
circular dependency when sys/sched.h was changed in the yamt-idlelpw branch.
2007-05-18 19:58:06 +00:00
pooka
e99cb62bcc Introduce noref setbacks, which the file server can use to signal
the kernel it has 0 references to the node in question.  In other
words, this can be used to avoid inactive(), or, if the file server
does not implement inactive, prompt reclaim for removed nodes.
2007-05-18 15:46:09 +00:00
pooka
93dd832918 selrecord() before calling userspace to avoid (very theoretical) race
where selinfo contains uninitialized garbage
2007-05-18 14:25:30 +00:00
joerg
1044d56390 If the interrupt status register reads as 0xffff in rtk_intr, assume
that the card is gone and abort the loop. This fixes hot-plugging of
cardbus cards.

From FreeBSD's rl(4).
2007-05-18 14:10:37 +00:00
joerg
a6f33abf23 Make rtk_list_tx_init return void. The return value was constant and
never used.
2007-05-18 14:08:57 +00:00
pooka
9d9f624f97 Support VOP_POLL. This requires some acrobatics on the puffs_node,
as we give a reference to userspace for the puffs_node for the
duration of the poll call.  So reference count puffs_node separately
from the parent vnode.  vref()/vrele() is not possible due to a possible
surprise visit from VOP_INACTIVE.
2007-05-18 13:53:08 +00:00
skrll
a56f764868 Minor KNF and make some output a bit easier to read. 2007-05-18 13:32:18 +00:00
skrll
0aab2380d9 Use the CALL macro. No functional change. 2007-05-18 13:29:37 +00:00
skrll
e73c12d2eb de-__P() 2007-05-18 12:54:46 +00:00
skrll
b7d1ae48e0 Shave an instruction by using a delay slot. 2007-05-18 12:43:41 +00:00
skrll
2efe58ec6b Some minor nits, no functional change:
- s/64/HPPA_FRAME_SIZE/
	- cpu_die is more a leaf than anything else
	- whitespace
2007-05-18 12:42:24 +00:00
rjs
d42d58ab33 Fix for yamt-idlelwp merge. 2007-05-18 11:16:27 +00:00
tsutsui
570ffc1b5b Update comments to sync yamt-km merge (Sysmap has been moved).
See also:
http://mail-index.netbsd.org/source-changes/2005/02/23/0004.html
2007-05-18 10:45:58 +00:00
tsutsui
f9527bedb6 Remove an obsolete file. (superseded by MI mk48txx(4)) 2007-05-18 10:29:25 +00:00
tsutsui
bd2911249c Adapt sun68k ports to yamt-idlelwp.
Tested on TME (sun2 and sun3) and 3/80 (sun3x).
2007-05-18 10:18:24 +00:00
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
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
885ed2ab13 return POLLERR instead of ENXIO since we are expecting an revents mask not
an errno.
2007-05-17 18:01:57 +00:00
christos
1425884c9e Coverity CID 3157: remove bogus break. 2007-05-17 17:04:12 +00:00
yamt
6ba36ace69 bump to 4.99.20. yamt-idlelwp merge. 2007-05-17 14:53:33 +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
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
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
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
hannken
64b7e5637e Fstrans_start() always returns zero, so change its type to void. 2007-05-17 07:26:21 +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
perseant
9234ba6fd8 Change references to SEGM_W_DIROPS to SEGM_CKP, and replace the logic that
formerly used SEGM_W_DIROPS in lfs_segwrite() appropriately.  This prevents
a problem in which processes could get stuck in "buffers" sleep forever.
2007-05-16 19:11:37 +00:00
mrg
2f67db7ec7 regenerate 2007-05-16 19:08:52 +00:00
mrg
1f3063a78a add Nvidia MPC04 SMBus 2007-05-16 19:07:42 +00:00
plunky
539d75b79d use the sizeof the header, not the pointer to the header
(this fixes a problem with architectures where a pointer is not 4 octets)
2007-05-16 18:34:49 +00:00