Commit Graph

155586 Commits

Author SHA1 Message Date
skrll
4b3e98dc1b Remove useless double assignment.
PR 35442
2007-01-19 15:52:24 +00:00
pooka
b2a7b240df In case the fs server is in the kernel doing an operation on a
completely different file system, we still might re-enter the same
puffs fs in case we execute something on the other file system,
which wants to get a new vnode and ends up recycling a puffs vnode
for the purpose.  In this case the fs server will sleep in the
kernel until it itself handles the operation .... which of course
is a slightly unlikely event.

After analyzing the path from getcleanvnode() to the vnode cemetary,
identify that fsync and putpages (strategy) are the ones in danger
of striking a deadlock deal.  Abuse the vnode flag VXLOCK to tell
them "this vnode is irreversably going to meet its maker, don't
care about user server return values" (failure is not acceptable
down the vgonel() path) and issue the respective operations as
Fire-And-Forget (FAF) operations.  no wait -> no deadlock.

This of course is a "fix" skating on thin ice.  A better, more
generic solution is already in sight, but will take more effort to
implement.
2007-01-19 14:59:50 +00:00
hannken
1b9c6382e3 New file system suspension API to replace vn_start_write and vn_finished_write.
The suspension helpers are now put into file system specific operations.
This means every file system not supporting these helpers cannot be suspended
and therefore snapshots are no longer possible.

Implemented for file systems of type ffs.

The new API is enabled on a kernel option NEWVNGATE.  This option is
not enabled by default in any kernel config.

Presented and discussed on tech-kern with much input from
Bill Studenmund <wrstuden@netbsd.org> and YAMAMOTO Takashi <yamt@netbsd.org>.

Welcome to 4.99.9 (new vfs op vfs_suspendctl).
2007-01-19 14:49:08 +00:00
pooka
2a1cb9e956 debug print requests going into the queue 2007-01-19 13:01:15 +00:00
bouyer
26989657fb For the unaligned case:
Be consistant with the spaces around * and +
	Use data32io[th] for 32bit access
	Use stream bus_space access unless we have DRIVE_NOSTREAM
all pointed out by enami tsugutomo, thanks !
2007-01-18 21:42:57 +00:00
dsl
bbdea71364 Don't delete '\' from before '#' in shell command lines.
Probably fixes build of pkgsrc:editors/xemacs.
Pointed out by Richard Earnshaw.
2007-01-18 20:22:44 +00:00
skrll
ba85386518 Apply an iffy heuristic to detect a valid switchframe on the stack and
extract the register state from this for the live kernel case. If there
is no switchframe then use the frame pointer to get enough state for crash
dump case.

More information needs to be saved by savectx to avoid this mess.

Should fix PR/35118
2007-01-18 18:15:02 +00:00
ginsbach
089d34fd42 Add a small regression test for getopt_long(3). 2007-01-18 16:29:21 +00:00
drochner
11f2202b96 -fix use of arguments and remove an outdated section
-Xr mkfifo(2)
(btw, SUSv3 says that the only portable use of mknod() is to create
a FIFO. This is not supported by NetBSD.)
2007-01-18 14:07:01 +00:00
cbiere
b64481fed4 * Fixed use of fgetc() in getch().
* Check for non-ASCII characters in getch() because the rest of the code
   doesn't expect such.
 * Removed use of -traditional and constructs which relied on this.
 * Use raise(SIGFPE) in dump() instead of attempting a division-by-zero.
 * Fixed compiler warnings regarding missing prototypes or unused
   parameters.
2007-01-18 12:43:38 +00:00
cbiere
75289275f1 isascii() and toascii() are defined for all integers unlike the other
functions. Explicitely mention "undefined behavior".
2007-01-18 11:33:13 +00:00
kiyohara
672e3eab7c Sorry...
btuart not yet.
2007-01-18 10:24:53 +00:00
kiyohara
a9dae91c04 Support com*.
Add options GXIO_BLUETOOTH_ON_HWUART, but not yet btuart.
Cleanup some configurations.
2007-01-18 10:15:20 +00:00
kiyohara
a847a1afbe Initialize GPIO of *UARTs and supports. 2007-01-18 10:06:47 +00:00
kiyohara
7dbdf0112d Use device_private() and aprint_*. 2007-01-18 10:02:55 +00:00
rillig
4d81a78185 Added a reference to ctype.3. What's the value of having that page at
all if it isn't referenced by others?

Suggested by Slava Semushin via private mail.
2007-01-18 08:35:07 +00:00
rillig
8b4906df56 Added a warning about a wrong usage, which is nevertheless often found
in real code, and an example code that does it correctly.
2007-01-18 08:33:34 +00:00
macallan
6a0b5a67e6 add commented out definitions for new ADB subsystem and G3 audio 2007-01-18 00:58:55 +00:00
macallan
ab42288391 avoid another collision 2007-01-18 00:49:17 +00:00
macallan
38b072ded2 make some tables static to avoid collisions 2007-01-18 00:43:00 +00:00
macallan
15a3f9b614 fix accidential commit, this time really only add the bus_space_tag 2007-01-18 00:19:30 +00:00
macallan
c11af36bf1 pass a bus_space_tag to children 2007-01-18 00:17:22 +00:00
wiz
2f0d7fe863 Use Pq. 2007-01-18 00:15:05 +00:00
macallan
834aa52ed6 shuffle #includes, add a bus_space_tag 2007-01-17 23:39:09 +00:00
macallan
4cc86139d1 add iBook keyboard type 2007-01-17 23:36:37 +00:00
macallan
0990226c00 use sgsmix if present and appropriate 2007-01-17 23:34:29 +00:00
macallan
daae1989bc add sgsmix 2007-01-17 23:33:23 +00:00
macallan
5ff56dc685 driver for the SGS 7433 mixer found in some G3 macs 2007-01-17 23:32:10 +00:00
macallan
8e8447a9f0 use pmu and cuda for reset, shutdown etc. when appropriate
also deal with adbkbd vs. akbd
2007-01-17 23:27:59 +00:00
macallan
a17b551fce new drivers for pmu and cuda 2007-01-17 23:25:45 +00:00
hubertf
55ac93d329 Remove more duplicate #includes, and a few spurious whitespaces at EOL
From Slava Semushin <slava.semushin@gmail.com>
2007-01-17 23:24:22 +00:00
macallan
14e075c835 add pmu and cuda at obio 2007-01-17 23:23:08 +00:00
macallan
fcde3ac6f3 new, simplified ADB drivers 2007-01-17 23:20:16 +00:00
uwe
b2962c40b6 Don't call queries "PS/2 commands", it's confusing.
Add queries to read mode and model id (not used yet).
Fix SYNAPTICS_CAP_EXTNUM - it's 3 bits [14:12], not 2.
2007-01-17 23:14:03 +00:00
macallan
02a1d394fc finding the console node / instance handle moved into machdep.c 2007-01-17 23:08:08 +00:00
macallan
398d6bdd70 prefix a hexadecimal address with 0x 2007-01-17 23:05:49 +00:00
macallan
ee9492db19 use properties to pass additional data to the console device,
like static EDID, framebuffer parameters etc.
2007-01-17 23:00:31 +00:00
macallan
dddce0d0c3 set FORCE_FUNCTION_KEYS since pretty much all halfway recent *Books need it
also disable COMPAT_LINUX for now, will re-enable it when it's actually useful
2007-01-17 22:45:51 +00:00
hubertf
df06563bc3 Remove more duplicate #includes,
from Slava Semushin <slava.semushin@gmail.com>
2007-01-17 21:59:49 +00:00
hubertf
d405d8ca2b Remove duplicated #includes and some trailing whitespace while here.
From Slava Semushin <slava.semushin@gmail.com>
2007-01-17 21:44:50 +00:00
reinoud
3434329686 Add `-o noatime' support to the mount program. Not relevant for the
read-only implementation currently committed though.
2007-01-17 21:21:12 +00:00
ad
d21838fa67 Randomise the calls to yield(). 2007-01-17 21:00:50 +00:00
ad
5606d9f962 Add basic tests for kernel mutexes & rwlocks. 2007-01-17 20:56:49 +00:00
bouyer
f410e266ed Sync with i386: add sbin/raidctl to amd64's install ramdisk. 2007-01-17 20:42:53 +00:00
seanb
e17c2f7f45 - Function no longer matched prototype after
move to ansi prototype in last commit; restore.
- Not noticed as weak aliases are used so the
  code is not compiled in.
2007-01-17 16:39:20 +00:00
christos
c3761c950c Sync with reality. Delete unsupported and describe run level chars. 2007-01-17 16:37:41 +00:00
sborrill
453aac4b0d Add myself to list of developers 2007-01-17 16:27:52 +00:00
imp
74b072c012 Sam's npe support was ported from FreeBSD and is enabled in the NSLU2
kernel, so update the README to reflect a more current status of the
ethernet under NetBSD.
2007-01-17 16:00:20 +00:00
reinoud
a6abe0260b Fix important directory lookup bug that could result in an endless loop. It
fixes the case where a directory lookup is done in a directory has never
been visted/listed; the search optimalisation that searches the directory
from where it left behind the last time would never reach the initial
offset of zero since it would always have at least processed one entry.
2007-01-17 13:02:44 +00:00
reinoud
3c9b632bb2 Use the generic clock_ymdhms_to_secs() instead of home-brewn version to
translate UDF timestamps to timespec.
2007-01-17 12:49:01 +00:00