Commit Graph

159263 Commits

Author SHA1 Message Date
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
pooka 464b354e31 devnullify ssh process's stderr to avoid tty spam 2007-05-21 08:55:04 +00:00
pooka 0b02e3c304 remember to put the results of the final operations (including unmount)
to the kernel in mainloop
2007-05-21 08:30:49 +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
yamt c2217bea1c fix the description of return values. pointed by Martin Husemann.
reviewed by toshii@
2007-05-21 02:30:47 +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
wiz a115c64dc7 Plural fix. 2007-05-20 22:27:46 +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
christos 77601d393f Add missing brace, from Blair Sadewitz 2007-05-20 21:31:05 +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
pooka d32c8fa56b In case we are really tight on vnodes, the directory vnode might
be reclaimed from under while we are warming the getattr cache.
Shuffle some code to prevent the effects.  Theoretically the race
is still possible, but I don't think it will happen in practice.
In any case, the code could benefit from some more dusting.
2007-05-20 20:27:04 +00:00
pooka 4bc09685b9 Observe that when doing ls -l, the attributes of the first file
getattr are usually still outstanding when we already would like
the result.  Instead of issueing another stat which will be serviced
only after all the other entries in the directory, record all the
outgoing readdir getattr buffers and if we encounter an outstanding
request when we need to fetch attrs, do a puffs_framev_framebuf_ccpromote()
wait for it instead of firing off the second query.  This shaves
almost 10% off the time for ls -lR.

Also, get rid of the SUPERREADDIR conditional, since it has penetrated
the code quite a bit and the #ifdef SUPERREADDIRs were starting to
look like tagliatelle alla bolognese (n.b. I love how it looks,
but I wouldn't like it either if my tagliatelle alla bolognese
looked like psshfs code).  Maybe it should be re-introduced in the
form of a switch?
2007-05-20 20:06:23 +00:00
pooka 866bcfbb38 Introduce puffs_framev_framebuf_ccpromote, which can be used to
turn a reference to puffs_framebuf in the file system from a
cb/justsend operation to a cc wait, should the file system find
itself desiring the result.
2007-05-20 19:56:56 +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
pooka a769baf075 Implement SUPERREADDIR (like nfs readdirplus) getattr cache warming
a bit differently: when reading the directory, store all getattr
caching queries and fire off only when the directory read is
complete.  That way the common sequence is not [readdir, lots of
async getattr requests, readdir EOF] but rather [readdir, readdir
EOF, lots of async getattr].  This speeds up ls -lR by about 25%
(on my LAN).
2007-05-20 17:47:12 +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
pooka 7c537b89eb Change the signature of puffs_respcmp to return -1,0,1 for smaller,
equal, larger, respectively instead of 0/1 for non/equal.  This
will allow sorting the buffers for faster matching in libpuffs.
While here, change the name from respcmp to framecmp, as that better
reflects the purpose.

NOTE!  there is no obvious way to make compilation fail for file
systems which may already be using this feature (although I don't
think there are any outside our tree, as the feature is two weeks
old).  Nevertheless, non-updated file systems will fail very quickly.
2007-05-20 16:24:37 +00:00
christos 21135a4e5e Add .WAIT and shlib_version. From Kurt Schreiner 2007-05-20 16:14:59 +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
seb d4373f6dcf Update pathnames to the services and netgroups databases after their move
to /var/db.

Pooka@ made me do it.
2007-05-20 14:02:10 +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
dogcow 663c032882 note addition of uslsa. 2007-05-20 07:52:17 +00:00
dogcow 9d8d410122 .4 files use /man4/, not /cat4/, durrrr. 2007-05-20 07:44:52 +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 dea1827d3e add uslsa(4) 2007-05-20 05:11:43 +00:00
dogcow fa585594dd Add uslsa.4, as per PR kern/33496 2007-05-20 05:10:28 +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