Commit Graph

185712 Commits

Author SHA1 Message Date
skrll 0deb77781e Flush only as much as is required. Pointed out by rmind. 2009-11-28 13:53:28 +00:00
kiyohara 96ade3c067 Comment out interrupt for LAN9118_INT_PHY_INT and LAN9118_INT_PME_INT. These
not support yet...
2009-11-28 13:20:41 +00:00
kiyohara ee2bb9f5be Check mbuf size and buffers. 2009-11-28 12:16:57 +00:00
tsutsui e7730664e0 Don't use #ifdef __${MACHINE_ARCH}__ to enable machine dependent features.
Instead, use proper macro defined in Makefile per ${MACHINE_ARCH}.

__${MACHINE_ARCH}__ doesn't represent an architecture of tool's target
but an architecture of binaries being compiled, so required features
are not prolery enabled or unintentionally enabled on certain host
and target combinations during src/tools build.
2009-11-28 12:14:53 +00:00
mbalmer 0a75bb16a6 Mention xf86-input-ws 2009-11-28 12:13:04 +00:00
mbalmer d0bf5c8f87 Link the xf86-input-ws X.Org input driver to the build and add it to the lists
that also have the wsmouse driver.

xf86-input-ws adds support for touchpanels in X11 that report absolute position
data through wscons(4), e.g. the extended ums(4) driver.  xf86-input-ws was
written by Matthieu Herrb for OpenBSD.

Please remember to also update xsrc before the next system build.
2009-11-28 12:10:24 +00:00
scw e6ee7f0c5b Apply some band-aid to pmap_activate() for PR kern/41058:
There's a corner case here which can leave turds in the cache as
reported in kern/41058. They're probably left over during tear-down and
switching away from an exiting process. Until the root cause is identified
and fixed, zap the cache when switching pmaps. This will result in a few
unnecessary cache flushes, but that's better than silently corrupting data.

Also remove an extraneous return statement in pmap_page_protect() which
crept in during the matt-armv6 merge.
2009-11-28 11:44:45 +00:00
tsutsui 93f39165ae Make dreamcast, evbsh3, and mmeye use -DUSE_MBR.
All of these ports use src/sys/arch/sh3/sh3/disksubr.c
which is MBR aware.
2009-11-28 11:26:36 +00:00
abs b861177ec4 - Display "Enter '?' for help" when starting interactive mode
- Use %.40g rather than %g when printing sectors and MB for existing
  partition size/offset.
  Changes [1.93802e+06c, 1953525105s, 953870M]:
  to:     [1938021c, 1953525105s, 953869.6875M]:
2009-11-28 10:52:10 +00:00
abs e115d85122 Shuffle the order of examples to put the interactive option (-i) ahead
of $EDITOR and "disklabel -w -r /dev/rsd0c sd2212 foo"
2009-11-28 10:28:22 +00:00
bouyer 8c392da154 Previous did cause a deadlock with layered FS: the vrele thread
can sleep on the vnode lock, while vget is sleeping on the
VI_INACTNOW flag (or the vget caller is looping on vget returning failure
because of the VI_INACTNOW flag). With layered FSes, the upper and lower
vnodes share the same lock, so the vget() caller above can be already
holding the vnode lock.

Fix by dropping VI_INACTNOW before sleeping on the vnode lock in
vrelel(), and check the ref count again once we have the lock. If the
vnode has more than one reference, donc VOP_INACTIVE it.
Fix PR kern/42318 and PR kern/42377
patch tested by Hisashi T Fujinaka, Joachim König, Stephen Borrill and
Matthias Scheler.
2009-11-28 10:10:17 +00:00
nonaka c6e1f64d7a Always sector size is treated as 512 bytes. 2009-11-28 10:00:24 +00:00
mbalmer 7404b55630 Fix function name that was changed by mistake in the previous whitespace
commit.
2009-11-28 09:20:37 +00:00
kiyohara 8d9bae96a9 Support mii_tick().
Thanks tsubai@.
2009-11-28 08:44:00 +00:00
nonaka 38bd070c5d pxartc(4) must set the device address. 2009-11-28 08:16:00 +00:00
nakayama 7db1a7f040 Add support for monitoring Fault LED and Alarms status. 2009-11-28 04:14:27 +00:00
darcy fc5c0ee967 Don't include newlines when comparing to prevent errors when lines have
characters that sort lower such as tabs.

This is a temporary fix to allow pullups to existing, supported versions
of NetBSD.  I will follow up with a version for current using the new
getline function.
2009-11-28 03:56:38 +00:00
isaki bdc7b127e2 Correct return value of ne_*_match().
It's attach priority, not ne2000 model.
2009-11-28 03:10:09 +00:00
isaki d591783aff white space -> tab. 2009-11-28 02:58:21 +00:00
isaki edbd2d71a0 Modernize and clean up. 2009-11-28 02:56:14 +00:00
mrg 143fa94c3a clean up some debug messages a little bit. 2009-11-27 22:31:29 +00:00
dsl 3cac425251 Add patch from PR/11805 2009-11-27 20:56:28 +00:00
skrll 4efbdd1e91 Fix DEBUG build. Hi rmind. 2009-11-27 20:32:10 +00:00
dsl 80ca15a6f8 Fix compressed server accesses.
According to http://cvs.savannah.gnu.org/viewvc/ccvs/src/?root=cvs
this was broken between revs 1.29 and 1.32 for a perion of 4 months
about 4 years ago.
Not sure at all why/how we have the broken version.
Our old code, the latest gnu code and this fix all differ slightly,
but have the same effect.
2009-11-27 18:38:29 +00:00
pooka 2a0ed023df Remove no longer necessary vfs weak symbols. 2009-11-27 17:55:04 +00:00
pooka ee0457e379 include subr_kobj_vfs 2009-11-27 17:54:24 +00:00
pooka bbc50ef41d Due to the schizophrenic nature of kobj (mem + vfs source),
split the module in twain to subj_kobj.c (master + mem) and
subr_kobj_vfs.c (vfs).
2009-11-27 17:54:11 +00:00
pooka fa4af70183 g/c unused protos 2009-11-27 16:46:06 +00:00
pooka 8102fe7341 Move rootfs-related init from init_main() to vfs_mountroot().
Reduces code re-written in rump.
2009-11-27 16:43:51 +00:00
pooka 0ff76018d0 Yes, you need a VOP_UNLOCK() there. 2009-11-27 16:23:23 +00:00
pooka 8b53d2f9df Fix another fine example of "if you make the kernel panic, it's
more secure".
2009-11-27 16:11:35 +00:00
pooka 85fb4c9d18 Don't spam if mount fails due to invalid file system. 2009-11-27 15:58:39 +00:00
tsutsui fcf4b7e0c1 Remove fdisk/mbr for macppc which was blindly pulled from OpenBSD.
It just fakes MBR partition map which contains 1MB FAT16B partition
and ~1GB OpenBSD partition, and we can always create necessary
MBR partitions for OpenFirmware by the fdisk(8) command itself.
2009-11-27 15:37:32 +00:00
skrll b6dacdb22f Fix typo and hopefully the dependency problem that manifests itself with
compile problems around lang_insert_orphan.
2009-11-27 14:39:39 +00:00
pooka 972900e4ca Move -mcmodel=kernel CFLAGS from bsd.klinks.mk to amd64/include/Makefile.inc
to avoid having the kernel toolchain flags split over a billion different
files.
2009-11-27 13:50:29 +00:00
pooka ebb48144a9 Now that Makefile.rump was changed and everything gets built in
update builds too, flip the allocator define to prefer the kernel
pool/kmem instead of malloc(3).  Use malloc(3) only if
RUMP_USE_UNREAL_ALLOCATORS is defined.
2009-11-27 13:45:15 +00:00
pooka 67cd12f07f Include arch/include/Makefile.inc for some compiler flags. 2009-11-27 13:36:30 +00:00
pooka 8257134a74 Make this work on some m68k ports which like putting the disklabel
in the third sector (or have copypasted disklabel.h from a port
which likes doing that ;).
2009-11-27 13:29:33 +00:00
enami 6c42f8e95b The expression (yyvs != 0) is always true and not a necessary test
in the first place since realloc(NULL, size) is equivalent to
malloc(size).  Write code straightforward while i'm here.
2009-11-27 12:37:19 +00:00
njoly 6fe3678b7f Make break(2) reject high adresses that wrap to 0 after page rounding. 2009-11-27 12:25:10 +00:00
tsutsui b00cd20126 If CPPFLAGS or CXXFLAGS already contains -nostdinc or -nostdinc++,
don't add ${CPPFLAGS_ISYSTEM} or ${CPPFLAGS_ISYSTEMXX} to refer
${DESTDIR}/usr/include or ${DESTDIR}/usr/include/g++.

This change might cause errors on some MD stand dir, but in that case
each Makefile should be fixed to search proper system include paths
by -Ipath option in own CPPFLAGS.
2009-11-27 11:44:36 +00:00
tsutsui c48b085654 u_short -> uint16_t, some KNF. 2009-11-27 11:23:50 +00:00
tsutsui 5517f8a4c3 Add definitions for more reserved inodes. 2009-11-27 11:16:54 +00:00
tsutsui b3c8be00bb Add src/common/include to -Ipath for proplib(3) so that build works
even without installed DESTDIR.
2009-11-27 11:11:22 +00:00
tsutsui efb2579c78 Move some devices where they should belong to. 2009-11-27 11:05:45 +00:00
tsutsui 48cc740097 Fix typo in comment. 2009-11-27 11:04:18 +00:00
tsutsui 49ee47d09d Use %zu in printf format for size_t value. 2009-11-27 10:50:04 +00:00
tsutsui 4105ef4a33 Remove unnecessary and never used usr/mdec/mbr from install ramdisk. 2009-11-27 10:23:16 +00:00
mbalmer 8a44b5e050 Add support for USB HID devices that report absolute coordinates instead
of relative movement data, i.e. touchpanels.  Please note that calibration
must be done outside the wsons(4) driver for now.
2009-11-27 08:35:05 +00:00
rmind 3f18fe8123 - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places.  Reduce sys/user.h inclusions.
2009-11-27 03:23:03 +00:00