Commit Graph

182586 Commits

Author SHA1 Message Date
pooka d90603b573 fix errno reporting 2009-08-03 15:08:37 +00:00
pooka f0190dc27d rump_fakeblk -> rump_etfs 2009-08-03 14:25:24 +00:00
pooka 8bf6866a3f * use new etfs interface
+ attempt to register only if we can stat() the devpath.  this works
    around e.g. nfs devpath, which is useless to register to etfs
    XXX: the caller should decide
2009-08-03 14:24:58 +00:00
pooka eddab4e9bc * get rid of the old fakeblk registration interface. Instead,
introduce a new and improved "etfs" interface, which can be used
  to register host files accessible from rump fs namespace.  This
  new interface is not restriced to block devices, and neither does
  it require the same pathname in host namespace and rump namespace.
  Therefore, the same host file can be represented both as a char
  and block device in rump namespace.

* adjust rumpblk to make the above possible

* improve rumpfs: nodes are now created properly and not implicitly
  tied to the vnode lifecycle
2009-08-03 14:23:30 +00:00
mbalmer 38b252cce6 Be more careful when attaching drivers at runtime, call the drivers match
routine before attaching the device.  Prevents non-working driver instances
from being created.
2009-08-03 12:43:56 +00:00
jmcneill bd96ad5f60 add missing return, silences 'failed to add sysctl nodes. (0)' message when
setup was successful
2009-08-03 12:43:46 +00:00
mbalmer e1a16b3665 A better match routine that checks also the number of pins instead
of checking the pins in the attach routine; malconfigured devices will
no longer attach.  While here, replace some printf uses by aprint_....
2009-08-03 12:42:45 +00:00
jmcneill dd4c27f39b - add experimental cpu fan/voltage switching support (sysctl hw.asus0.*)
- add fan sensor
- rename asus_softc_t -> struct asus_softc
- add detach method
- update copyright for 2009
2009-08-03 10:30:29 +00:00
jnemeth 1af929341b Fix previous where the call of sd_set_properties was moved from
the end of sdattach() to the end of sd_get_parms().  The code at
the bottom of sd_get_parms() was only used for optical drives or
in the case where the drive geometry couldn't be retrived for some
reason, to create a fake geometry.  The case for setting up the
real geometry was handled above that code.
2009-08-03 09:40:45 +00:00
he 0e35dff596 Move the include of <sys/gpio.h> up above <dev/gpio/gpiovar.h>, so that
GPIOMAXNAME gets defined before being used.  Also remove the > 0 test on
NGPIO around the include of <sys/gpio.h>.
2009-08-03 06:57:09 +00:00
dsl d3c3d024a7 bzero.S defines memset(), so exclude memset.c 2009-08-03 06:26:41 +00:00
dsl af129c0bc8 bzero.S also defines memset(), so exclude memset.c 2009-08-03 06:25:34 +00:00
dholland a95dd4ab67 don't ignore errors from read(); found by lint 2009-08-03 06:04:12 +00:00
wiz e28fde3845 Bump date for previous. Add comma in enumeration. Use Pp for paragraph
separation.
2009-08-02 22:49:08 +00:00
wiz 8dacf6eb63 Make HTML-ready. 2009-08-02 22:38:29 +00:00
wiz b2141244f7 Sort supported hardware by name. New sentence, new line. 2009-08-02 22:37:44 +00:00
dsl 6b42da309a Support 0xnn for hexadecimal constants - as well as 16#nn.
While here, make '-' only valid once, and at the start of the number.
Fixes PR/40512
2009-08-02 21:24:18 +00:00
tshiozak 591b8c1e16 add Melco(Buffalo) WLI-UC-G 11b/11g wifi adaptor (rt2573).
This works fine for 11b, but unstable for 11g.
2009-08-02 20:55:45 +00:00
tshiozak 50333a0e5c regen. 2009-08-02 20:53:41 +00:00
tshiozak a84f8b4d14 add Melco(Buffalo) WLI-UC-G 11b/11g wifi adaptor (rt2573) 2009-08-02 20:52:26 +00:00
bouyer 94fb626feb Fix previous: mutex_destroy() the right mutex 2009-08-02 20:50:33 +00:00
bad 0152c542e8 Add a note to change_root() that the callers need to authorize the operation.
As requested by elad@.
2009-08-02 20:44:55 +00:00
dsl 14861af47a Patch from PR/39034 - should make this compile!
I've not removed the mtx_destroy() since that has to be in there somewhere.
Patch may apply to netbsd 5.0
2009-08-02 20:22:34 +00:00
spz 18f2bbe96d make dkctl conform to its man page and print the device name on addwedge
when the addition was successful (as well as indicating success).
2009-08-02 18:16:08 +00:00
matt 2355613b3f Use a common version of cpu.c (mmm removing identical code). 2009-08-02 17:12:28 +00:00
yamt fac82a77c9 - don't reuse a variable for different purposes.
- KNF a bit.
2009-08-02 16:07:34 +00:00
yamt 010a609f17 - fix extend of unexistent mapping. the problem reported by
Nicolas Joly on current-users@.
- check our reserved entry a little more strictly.
- comments.
2009-08-02 16:03:47 +00:00
jmcneill 783afeb19c - fix TKIP, changes adapted from FreeBSD
- reduce diffs between FreeBSD and NetBSD athvar.h
2009-08-02 13:26:33 +00:00
uch 9337b12fa8 fix comment 2009-08-02 12:04:28 +00:00
gavan c7de5c4b16 * Increase symtab space so the kernel builds again.
* Add in bits and pieces to get a genfb console going.
2009-08-02 11:36:39 +00:00
gavan 23869c7874 On NetBSD/iyonix:
* Disable interrupts in otherwise-configure Nvidia graphics card
* Support genfb console, based on information supplied by the bootloader
* Support kernel args
* Support ways to choose which console to use
* Clarify argument parsing a little.

(from me and abs)
2009-08-02 11:32:05 +00:00
gavan 14e9ee53d1 If we're going to complain about exceeding the PCI bandwidth, we may as
well say how much we think we're using.
2009-08-02 11:25:50 +00:00
gavan 01cd53c5df Don't reset devices if booting an Iyonix. It's fine for acorn32 devices
because we know how to configure all of the hardware, but as we don't know
how to configure the Iyonix graphics card we must rely on RISC OS to do
it for us.

While we're here, space separate the kernel arguments. It's a bit hard
parsing them in the kernel when they're all run together.
2009-08-02 11:20:37 +00:00
nonaka 156e933143 pxamci is pxa2x0 specific. 2009-08-02 00:20:39 +00:00
nonaka 69ff36e733 use NetBSD e-mail address. 2009-08-02 00:19:29 +00:00
nonaka 4a585bfa17 fix build failure. 2009-08-02 00:06:44 +00:00
christos f1cd8c73cb Don't return EWOULDBLOCK on an O_NONBLOCK tty file descriptor that has vmin > 0
and vtime > 0. It should be allowed to go to sleep for the sleep interval
indicated in vtime. Reported by der Mouse a long while ago, and this is what
other unixes do.
2009-08-01 23:07:05 +00:00
matt c08351c1cd Add MIPS64_LOONGSON2F since it needs some special help in various places. 2009-08-01 22:59:52 +00:00
matt e7b97f7d32 Extract bonito support from sys/arch/algor/conf/files.algor so it can be
used by multiple ports.
2009-08-01 22:58:36 +00:00
matt ab4ed2bee9 Add Loongson2 chip ids 2009-08-01 22:50:41 +00:00
matt 3dd4772b5a Regen. 2009-08-01 21:40:10 +00:00
matt 7a420cdb70 Add Silicon Motion SM502 2009-08-01 21:34:21 +00:00
bad 02bcf17298 As discussed on tech-kern:
Factor out common code of chroot-like syscalls into change_root() and export
that function for use in other parts of the kernel.
Rename change_dir() to chdir_lookup() as the latter describes better what
the function does.  While there, move the namei_data initialisation into
chdir_lookup(), too.  And export chdir_lookup().
2009-08-01 21:17:11 +00:00
dsl d582bd909a In the misaligned case, xor the read word with the target pattern
before making the unwanted bytes non-zero.
Means that memchr(buf, 0xff) is no longer a special case.
2009-08-01 20:47:02 +00:00
dsl 170e962b6c Remove some long dependant instruction sequences (ie allow parallel code).
Since 'rep stos' will have a long setup time, avoid doing it more than once.
For misaligned (start address or length) write an unaligned word at both
ends of the buffer then aligned 'rep stosd' the middle.
Use the same code for bzero().
bzero.S is left being compiled for a while (empty) - to avoid issues with
duplicate symbols in libc.a after update builds.
2009-08-01 20:35:45 +00:00
yamt 5e1c2c932d - uvm_map_extract: update map->size correctly for !UVM_EXTRACT_CONTIG.
- uvm_map_extract: panic on zero-sized entries.
- make uvm_map_replace static.
2009-08-01 16:35:51 +00:00
mbalmer 2dbe843789 Sprinkle a few .Pps. 2009-08-01 15:52:55 +00:00
mbalmer 0a0263e442 Add a manual page for the gpiosim(4) pseudo-device. 2009-08-01 15:43:01 +00:00
yamt 7d4ddb70a2 don't call uvm_map_check with map unlocked. 2009-08-01 15:36:07 +00:00
yamt 61a9b51f82 _uvm_tree_sanity: fix an assertion. 2009-08-01 15:32:02 +00:00