Commit Graph

87858 Commits

Author SHA1 Message Date
yamt 8e69ce0726 dumpsys: build a fake switchframe for postmortem debugging.
reviewed by Frank van der Linden.
2007-05-25 15:09:50 +00:00
martin 95f43235b7 remove some debugging printfs for the MULTIPROCESSOR case 2007-05-25 12:42:07 +00:00
skrll 178869e145 Fix typo in comment. 2007-05-25 12:11:28 +00:00
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