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