Commit Graph

89271 Commits

Author SHA1 Message Date
sborrill e8925d472b Add support for SMART Technologies-badged Prolific USB-Serial converter 2007-08-18 20:23:04 +00:00
macallan 4cd1e587c3 use bool with prop_dictionary_get_bool 2007-08-18 18:35:15 +00:00
tnn b53aba8a32 Enable spdmem(4) in ALL configuration. Add commented out entries to GENERIC 2007-08-18 11:35:55 +00:00
tnn 449902fc06 Add spdmem(4) driver. This decodes technical specifications stored in
the eeprom on common types of memory modules. The specifications are
displayed during boot and can later be queried in the hw.spdmemN sysctl
subtree. Stub driver written by Nicolas Joly and greatly improved upon by
Paul Goyette. From PR 36745, with additional improvements by Paul and me.
2007-08-18 11:26:35 +00:00
hannken f43278a84f - Use a mutex to protect snapinfo.
- Move the snapshot lock to snapinfo.
- ffs_snapblkfree(),ffs_copyonwrite(): replace lockmgr() with VOP_LOCK().
2007-08-18 10:11:01 +00:00
ad 09e7c477d8 Include sys/cpu.h for CPU_INFO_FOREACH. 2007-08-18 10:07:55 +00:00
hannken 7d3c830b7c Expunge traces of unlinked snapshot files when making a new snapshot.
From FreeBSD Rev. 1.123
2007-08-18 09:48:33 +00:00
he 5200a497db Bump the symbol table size so that it fits again. 2007-08-18 09:45:08 +00:00
ad 6b79143ab0 pool_drain: add a comment. 2007-08-18 00:37:14 +00:00
ad e492e656cc pool_do_cache_invalidate_grouplist: drop locks while calling the destructor.
XXX Expensive - to be revisited.
2007-08-18 00:33:38 +00:00
ad ee1c78315b Fix error in previous. 2007-08-18 00:31:32 +00:00
ad b5866eb299 Make the uarea cache per-CPU and drain in batches of 4. 2007-08-18 00:21:10 +00:00
ad c3ffc50d7a Remove obsolete comments. 2007-08-18 00:11:00 +00:00
ad 07b0fe01aa cpu_lwp_fork: don't rely on struct mdlwp being zeroed in advance. 2007-08-17 23:58:45 +00:00
ad 215f99bf1f Remove obsolete comment. 2007-08-17 23:46:34 +00:00
skd 617b9b58ef Don't put the condvars in the *middle* of the undo structures.
(semu + seminfo.semmnu) is wrong, because the type of semu is int*.
You could fix the offset ((char *)semu + seminfo.semusz), but simply
putting the condvars first is more clear.
2007-08-17 23:05:06 +00:00
ad 26c3495f7d Timecounters are lockless. Add conservative memory barriers to ensure that
loads and stores occur in the correct order.
2007-08-17 21:20:24 +00:00
ad fa69a4b5da spllock is gone. 2007-08-17 21:06:23 +00:00
pooka 1b189c72ab In the new world order (a.k.a. the human-understandable world order)
VOP_LOOKUP ignores LOCKPARENT completely, so make this ignore it also.

XXX: tested only with rump, but I can't really see how this worked
at all before
2007-08-17 17:44:43 +00:00
ad c0fd052388 Fix a couple of comments. 2007-08-17 17:25:14 +00:00
pavel c514daad8f Add missing #include <prop/proplib.h>, should fix build failure reported
by Juergen Hannken-Illjes. The code apparently relied on proplib.h being
included indirectly through proc.h -> event.h -> ioctl.h -> dkio.h.
2007-08-17 16:52:52 +00:00
pavel c0f560c80e struct plistref does not reference other proplib data types, so split it
in its own header file to be included by dkio.h. Fixes breakage due to
pollution from proplib.h in programs which include ioctl.h. Tested and OK
by dogcow@.
2007-08-17 11:05:03 +00:00
he 9a436817c2 Use $INSTALL_FILE, not just $INSTALL so that unpriviliged builds work. 2007-08-17 06:47:03 +00:00
pooka 8657b11ebd jump through rename hoops (hi ad!) 2007-08-16 21:26:21 +00:00
pooka 73dcfa3099 missed a bit 2007-08-16 19:56:22 +00:00
pooka fb60c8abcc describe libukfs 2007-08-16 19:53:48 +00:00
pooka aecd6d8924 tweaks 2007-08-16 19:50:19 +00:00
pooka 6c71c22a44 Add "file system console", which is meant eventually to become a
"console" to a file system, i.e. a tool for mounting any file system
image supported by rump and executing various commands on it.
Currently it's just a linear set of calls to ukfs routines and
serves mainly as a simple test program and ukfs usage example.
2007-08-16 19:48:31 +00:00
pooka 71d88cd835 use UKFS_UIOINIT 2007-08-16 19:43:09 +00:00
pooka 55a47971a5 Actually using passed parameters instead of hardcoded ones makes
a macro work better ...
2007-08-16 19:42:50 +00:00
pooka b926b490ec Add routines for pure userspace file system operation
(i.e. no kernel involvement), namely:
* create, mknod, remove, mknod, rmdir, getdents, read, write, and link

Still obviously missing a few, but this is a start (I'm also searching
for the blessed orb of code quality, maybe someone has seen it?).
2007-08-16 19:37:18 +00:00
rjs 86dbc7c35c Explicitly use trapframe64 instead of trapframe. 2007-08-16 18:42:09 +00:00
ad 3611d66f77 cpu_switchto: fix a well dodgy bit of assembly that broke RAS. 2007-08-16 17:00:05 +00:00
pooka 85a8716f91 locking fixes 2007-08-16 16:17:42 +00:00
martin 9247850afb Remove all locking from com_enable_debugport() - it is either called at
attach time, where we don't need further locking, or from comopen(),
where the caller does proper locking already.
2007-08-16 08:56:49 +00:00
kiyohara 3f11af6413 Replace to Matthew Orgass's slhci(4).
http://mail-index.netbsd.org/tech-kern/2007/06/26/0001.html
2007-08-16 02:30:22 +00:00
pooka 56accd1ffe enable UFS_DIRHASH 2007-08-15 22:22:14 +00:00
pooka cfd4dc8f38 Wrap malloc() so that we catch the kernel arguments (namely M_ZERO)
properly.  It's fairly amusing that this wasn't noticed until now.
2007-08-15 22:13:15 +00:00
ad 399122feeb subr_prf_bitmask.c -> subr_prf2.c 2007-08-15 20:34:48 +00:00
degroote c4abb95a0e Fix possible "packet corruption" which appears on high load 2007-08-15 18:11:14 +00:00
kiyohara 66161689a5 Already called *_free_[rt]x_list() in *_stop(). 2007-08-15 16:58:54 +00:00
pooka ba8f4f0ea5 support VOP_LINK 2007-08-15 16:56:44 +00:00
kiyohara a73632e439 Remove BTUART_DEBUG. 2007-08-15 16:48:31 +00:00
pooka 25a346d4fb Nuke PUFFSLOOKUP_FOO and move to NAMEI_FOO 2007-08-15 14:19:19 +00:00
pooka a7e8116850 regen 2007-08-15 14:08:37 +00:00
pooka a768213636 Autogenerate namei.h from namei.src to get duplicate values for some
less-than-optimally namespaced macros (e.g. LOOKUP -> NAMEI_LOOKUP).
2007-08-15 14:08:11 +00:00
ad e59f9f3e20 proc_free: don't destroy locks until the last LWP is confirmed off the CPU.
This is an ideal candidate for pool_cache.
2007-08-15 12:20:28 +00:00
ad c9bbf87b8f NetBSD 4.99.29 - change ktrace to be LKM friendly. 2007-08-15 12:10:33 +00:00
ad d3675885a8 Regen. 2007-08-15 12:09:12 +00:00
ad df7945cf28 - Update for ktrace changes.
- Mark a few more syscalls MPSAFE.
2007-08-15 12:08:38 +00:00
ad 63c4506184 Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed
on tech-kern.
2007-08-15 12:07:23 +00:00
tnn 51e95e7756 Correct some comments (proc -> lwp conversion) 2007-08-15 09:40:15 +00:00
kiyohara 2db72b9118 * splsoftusb, IPL_SOFTUSB, and IPL_HARDUSB defines in usbdi.h
-> the current names are confusing (didn't change other drivers)
* fix invalid memory access in usbd_transfer (kern/24636)
-> needed for this driver
* fix USB HC detach race condition (kern/32011)
-> main patch needed for this driver, sc_dying changes in other drivers
not necessary but seem right to me

Patch from Matthew Orgass.
  http://mail-index.netbsd.org/tech-kern/2007/06/26/0001.html
2007-08-15 04:00:33 +00:00
kiyohara 44c89c7646 Replace to Matthew Orgass's slhci(4).
http://mail-index.netbsd.org/tech-kern/2007/06/26/0001.html
2007-08-15 03:53:08 +00:00
rmind d2142b3188 sys__lwp_suspend: Handle the possible problem when target LWP might exit via
lwp_exit() before suspending.  In such case, LWP might be already freed after
cv_wait_sig() and checking the list of LWPs via lwp_find() is necessary.

Possible problem catched by Andrew Doran.
2007-08-15 02:50:40 +00:00
markd 89d3c65ccd Add agp support for i965Q.
Based on a patch for FreeBSD by Eric Anholt.
OKed on tech-kern some months ago.
2007-08-15 02:26:13 +00:00
uwe 9a34099682 au_setup_ports - don't hide ports->nports++ inside another expression,
especially if that other expression is the right hand side operand of
&& which is short-circuiting.  The effect was that audiorecord(1)
would always fail trying to set recording port with AUDIO_SETINFO.

Tested on wss@pnpbios.  It looks like this problem has been reported
as PR/35239, filed against port-hp700.
2007-08-14 21:34:03 +00:00
macallan b5dc000777 fix a logic botch in the headphone wiring setup - what was thought to be
'screamer' specific is actually beige G3 specific.
2007-08-14 16:18:20 +00:00
jnemeth d74976c467 regen 2007-08-14 16:14:21 +00:00
jnemeth 5b3c74a3d6 PR/36759 - Christoph Egger -- add some MARVELL devices 2007-08-14 16:13:38 +00:00
joerg b2dde09db1 Explicitly assert that the protocol out pr_ctloutput before calling it. 2007-08-14 16:03:48 +00:00
pooka c360a79960 * split userspace file system access into two separate libraries:
+ libp2k: the interface between libpuffs and vfs/vop
  + libukfs: generic user kernel file system library, usable
	     independent of libp2k and/or puffs
* use file system name (MOUNT_XYZ) instead of vfsops pointer to
  mount file system
2007-08-14 15:56:15 +00:00
kiyohara fd0dddb4aa Must call callout_init(). 2007-08-14 15:04:44 +00:00
kiyohara 2bf46d5050 Remove and insert null-line.
No parentheses are needed around the return value.
2007-08-14 14:18:17 +00:00
martin 3eda297f44 Complete initialization of lwp0 in pmap_bootstrap() 2007-08-14 14:16:17 +00:00
kiyohara ec1fb4e2a6 Remove white-spaces. 2007-08-14 14:10:52 +00:00
kiyohara 5d6dcf3d03 Add ARGSUSED. 2007-08-14 14:07:01 +00:00
pooka b0ae85df19 interrupt headers necessary for vfs_bio 2007-08-14 14:06:12 +00:00
kent 31b57ef849 support for playback-only devices such as Radeon HD 2x00 2007-08-14 13:57:56 +00:00
pooka ea312e5c20 udf support 2007-08-14 13:56:58 +00:00
pooka 243a4686b8 Kill handrolled buffercache and use vfs_bio from the kernel. This is
mostly to get the flag jungle in sync with the kernel.
2007-08-14 13:54:14 +00:00
pooka 3340382aec more vfs_subr -> vfs_subr2 dance for rump:
vwakeup, vinvalbuf, vtruncbuf, vflushbuf, bgetvp, brelvp, reassignbuf
2007-08-14 13:51:31 +00:00
seanb 7a700a611e - Check IFF_RUNNING | IFF_UP in gre_output() correctly. 2007-08-14 13:36:50 +00:00
pooka 790f3adcf7 compile in clock_subr.c 2007-08-14 13:24:34 +00:00
pooka f89f2dc0be Add some barely staggering code to get more disklabel support. 2007-08-14 13:24:07 +00:00
martin 2c724d3948 Backout the md_tf part of the previous change - it was wrong and should
not be needed, needs more investigation.
2007-08-14 11:10:55 +00:00
martin 0617d834b5 Initialize lwp0.l_md.md_tf - it was NULL before. Spotted by tnn.
While there, g/c the unused md_pcbpaddr.
2007-08-14 10:42:00 +00:00
macallan a0e394bf30 envctrl needs to pull in i2cbus 2007-08-13 22:18:31 +00:00
briggs b53262281a Check for duplicate sensor names in the IPMI table. If a duplicate name
is found, try to make it unique by appending a count (1-99) to the sensor
description (truncating, if necessary).  This takes my Dell PowerEdge 1800
from:
        Temp:     40.000 degC
  VRD 1 Temp:     35.000 degC
  VRD 0 Temp:     39.000 degC
 Planar Temp:     35.000 degC
Ambient Temp:     20.000 degC
       Fan 2:       1500 RPM
       Fan 1:       1425 RPM
CMOS Battery:      3.057 V
   Intrusion:         ON
     Status :         ON

to:
       Temp3:     40.000 degC
       Temp2:     40.000 degC
  VRD 1 Temp:     35.000 degC
  VRD 0 Temp:     39.000 degC
 Planar Temp:     35.000 degC
Ambient Temp:     20.000 degC
       Temp1:     41.000 degC
        Temp:     43.000 degC
       Fan 2:       1500 RPM
       Fan 1:       1425 RPM
CMOS Battery:      3.057 V
   Intrusion:         ON
    Status 1:         ON
     Status :         ON
2007-08-13 18:32:22 +00:00
pooka 0322f263f2 nuke no longer used vm macros 2007-08-13 15:59:47 +00:00
pooka 5e1193986e opts necessary for vfs_vnops.c missed in previous commit 2007-08-13 13:57:21 +00:00
pooka 7ed98ea083 Add locking assertions to check that file systems comply with the
vnode locking protocol.
2007-08-13 13:52:45 +00:00
pooka 787d952790 Use supermarket variety vfs_vnops.c instead of homecooked routines
(that's actually a good thing here).
2007-08-13 13:51:39 +00:00
pooka e09047007b lock and unlock vnodes according to locking protocol 2007-08-13 12:20:55 +00:00
pooka 66cdfd6744 compile in libkern __assert.c, argument order differs from libc model 2007-08-13 10:52:15 +00:00
pooka d1cd2c26a2 * don't call VOP_ACCESS in lookup, that's the file system's problem
* be more careful with r/o fs to catch EEXIST in lookup CREATE
* some comment polish
2007-08-13 09:48:55 +00:00
macallan ce33f23af8 remove two restore without matching save 2007-08-13 03:09:13 +00:00
tsutsui 6c44f1b32b Parse "root=/dev/hdXN" args passed from the firmware and
set default boot device accordingly.
Requested and okay'ed by cyber@.
2007-08-13 02:09:01 +00:00
tsutsui 320e4f3fc5 Remove all references to spl_mask. Now it isn't used by any sources.
Discussed on port-arm.
2007-08-13 02:04:50 +00:00
tsutsui 908dae93e8 Pull the similar fix from arch/shark/isa/isa_irq.S rev 1.8:
In irq_setmasks(), refer spl_masks[current_spl_level] directly
rather than spl_mask which is a saved value in splraise() and
splx() functions because the latter one is not always sync'ed with
current_spl_level and interrupt state could be mangled.
2007-08-13 02:00:14 +00:00
tsutsui 5c47006ea3 In irq_setmasks(), refer spl_masks[current_spl_level] directly
rather than spl_mask which is a saved value in splraise() and
splx() functions because the latter one is not always sync'ed with
current_spl_level and interrupt state could be mangled.

Okay'ed by chris@, and should close PR port-shark/22355.
2007-08-13 01:55:31 +00:00
pooka e7c5957392 Revert code part of rev 1.95, yamt pointed out it changes NFS semantics. 2007-08-12 23:40:40 +00:00
pooka 4c3f2a2acf enforce MNT_RDONLY 2007-08-12 19:44:15 +00:00
pooka 67c57c75e0 CREATE is a write operation in my book, so check for that also when
checking for a readonly lookup.  This shouldn't make a difference
now, though, as the only RDONLY lookup is done by getcwd(), and
that a) doesn't create files b) calls LOOKUP directly anyway.

Also, fix comment I managed to miss in the previous commit (I didn't
expect the same comment to be there twice).
2007-08-12 19:42:09 +00:00
pooka 5450d0d87b cn_flags RDONLY brilliantly has nothing to do with the file system
itself being r/o, so fix a couple of misguided comments.
2007-08-12 19:31:12 +00:00
macallan 860afb1c25 make this compile (again?) on sparc64 by sprinkling bus_space_vaddr().
Needs testing on both sparc and sparc64 - I don't have a magma.
2007-08-12 17:53:01 +00:00
pooka 74e8607136 track lockmgr lock status. makes lfs work again 2007-08-12 13:34:11 +00:00
martin 984c6bf848 Bump SYMTAB_SPACE significantly, so that the MTX-1 kernel builds with
symbols again.
2007-08-11 23:48:04 +00:00
pooka 5a92d448e1 POOL_INIT -> pool_init, we need to call bufinit() anyway 2007-08-11 19:56:53 +00:00
pooka 643e56125f * move rump_vopwrite_fault() into history - we now support the file
system faulting in pages if it does e.g. fragment reallocation
* get rid of rumpvm_findpage() and always use uvm_pagelookup()
* determine a vnode's cleanness by flagging it as being on the work
  list if we "take" a write fault and removing it from the worklist
  once pages are flushed.  There is no work list here, but at least
  there is symmetry with the kernel.
2007-08-11 17:52:12 +00:00
jnemeth a7fddb6456 regem 2007-08-11 02:06:12 +00:00
jnemeth 20861ef7a0 PR/36759 - Christoph Egger -- AMD product updates 2007-08-11 02:05:11 +00:00
dyoung 75929630cc Read the PCI latency timer from the right register, using the right
macro.
2007-08-11 00:45:35 +00:00
dyoung abb1098904 Make pccbb(4) use more PCI configuration register definitions,
especially the Bridge Control Register definition, instead of
rolling its own.

As we read/modify/write configuration registers, use a variable
that is named for the register we're r/m/w'ing, instead of using
the variable 'reg' over and over.  This helps both a human reader
verify that we're not reading register X, modifying it, and writing
back to register Y (oops); the compiler can help a little by warning
that a variable is used before it is initialized.
2007-08-11 00:31:04 +00:00
dyoung 3a1d58e9a8 Constify. Use satocsdl() and satosdl(). 2007-08-10 23:55:54 +00:00
dyoung 4e20c97fe0 Remove unused definitions CB_CHIPS_LAST and cb_chipset_name. Add
a type code for the Texas Instruments PCI1420 PCI-CardBus bridge,
CB_TI1420, which I will use in the near future.
2007-08-10 22:57:54 +00:00
dyoung 596a16c16b Don't run ctags(1) on sys/altq/altq.h, it redefines useful NetBSD
tag targets.
2007-08-10 22:50:12 +00:00
dyoung b40a86e49c Use sockaddr_dl_init(). 2007-08-10 22:46:16 +00:00
dyoung ddf36c7b8b Constify. bcopy -> memcpy. 2007-08-10 22:44:05 +00:00
dyoung d7d71cd2b5 Constify. 2007-08-10 22:43:26 +00:00
dyoung 219b1f1507 Add offset for Host Bridge Target Interrupt Control register. 2007-08-10 22:39:13 +00:00
dyoung 1f33e95d60 Use __arraycount(). 2007-08-10 22:38:03 +00:00
dyoung ca87560b9d Fix 'tags' target: ${COMM} overflows the echo command line, so
use ${FINDCOMM} instead.
2007-08-10 22:36:59 +00:00
dyoung ffbbd3ac2d Fix kernel compilation with 'options KSTACK_CHECK_MAGIC': change
'void *' to 'char *' so pointer arithmetic will work.
2007-08-10 21:50:48 +00:00
tsutsui 26ba3dff65 More style nits. 2007-08-10 17:44:18 +00:00
tsutsui 2c1e4e89f3 Some style nits. 2007-08-10 16:59:41 +00:00
tsutsui 69819deda6 Lookup boothowto flags in bootinfo. 2007-08-10 16:48:24 +00:00
tsutsui 17c3dbc6c5 Parse boot_flags specified on boot prompt and
pass decoded boothowto value to kernel via bootinfo.
2007-08-10 16:47:06 +00:00
yamt c379ad6567 - instead of scanning an array of iods, maintain a list of idle iods.
- make nfs_getset_niothreads MP friendly.
2007-08-10 15:12:56 +00:00
joerg 1c929a1104 Print the polarity and trigger flags as well. Can help with debugging
on fancy notebooks.
2007-08-10 14:34:56 +00:00
taca 1539dbb71c Add support for BCM5786 with simply adding its PCI product id.
Testing on Fujitsu FMV-D5240 and works fine.
2007-08-10 12:27:35 +00:00
pooka c3bc94628d Play catchup with ufs/ffs changes: compile subr_specificdata.c
and emulate kmem_foo() to support the prior.
2007-08-09 20:57:22 +00:00
pooka b4b6be82da do the shuffle: move mount_specificdata stuff from vfs_subr to vfs_subr2 2007-08-09 20:55:30 +00:00
bouyer 67f8e5f5ce Pass the right value to VLAN_INPUT_TAG(), this makes vlan(4) on bnx(4) work. 2007-08-09 18:10:20 +00:00
kiyohara 1d0746259f Use bitmask_snprintf(). 2007-08-09 16:54:21 +00:00
nonaka fad0ea915b build and install zbsdmod.o. 2007-08-09 16:08:58 +00:00
he fd961c4429 Add a new socket option for unix domain sockets: LOCAL_PEEREID, to make
it possible to get the pid, euid and egid of the process at the remote
end at the time it did bind() or connect().

Add a new libc function, getpeereid() to easily get at the euid and egid.
As a consequence, bump libc's minor number.

Document the LOCAL_PEEREID socket option in unix(4).

Based on contribution by Arne H. Juul, minor modifications by myself.
2007-08-09 15:23:01 +00:00
pooka 36c0b176cc Fix it a bit & wait for the dust to settle. Also, enable UBC by default.
ffs in userspace on top of puffs/p2k/rump is now stable enough to
host a make -j4 kernel build (well, at least my kernel build ...
but, yes, I am currently running that kernel on my desktop)
2007-08-09 13:53:36 +00:00
pooka c1649dbc9e * fix symlink
* actually call a couple of VOPs
2007-08-09 11:59:16 +00:00
pooka 0a371e70c2 deal with holes in getpages() 2007-08-09 11:18:13 +00:00
pooka 58b908ae12 Flush file's pages in inactive (they'll still be kept in the kernel
page page if it's enabled).  This very easily takes care of memory
management problems except for large files.
2007-08-09 09:54:36 +00:00
hannken d56e8d1456 Move the fstrans-aware lock vnops from ufs to ffs. Other ufs file systems
do not need them.

Ride on 4.99.28
2007-08-09 09:22:34 +00:00
pooka 37698f56d6 Enable lfs in r/o mode, i.e. does not start lfs_clean-nerd and do
any real trickery.  Unfortunately this was the easy part; r/w
support is going to make ascending naked, blind, illiterate, without
food and as an atheist look trivial.
2007-08-09 09:19:30 +00:00
pooka cb6989bfcf fool some KASSERTs 2007-08-09 09:11:57 +00:00
pooka c36b0d0bc4 whoops, committed old signature of vrele2() 2007-08-09 09:06:44 +00:00
pooka 2c3d0e9d16 Add some stubs for lfs. 2007-08-09 08:56:44 +00:00
pooka 3de9f5d391 Instead of having lfs muck directly about with vnode free lists,
introduce vrele2(), which allows to release vnodes the way lfs
sometimes wants it:
  + without calling inactive
  + inserting the vnode at the head of the freelist (this is a very
    questionable optimization that isn't even enabled by default,
    but I went along with the same semantics for now)
2007-08-09 08:51:21 +00:00
pooka dfeea3487b Don't need to use MNT_FORCE here (my original test image was a bit
b0rked), but do stuff MNT_RDONLY down the file system's throat.
2007-08-09 08:33:25 +00:00
pooka 39afc34cc7 * compile subr_time.c from kern/
* some pmap stubs
2007-08-09 07:42:07 +00:00
pooka 5fbd525b19 Shuffle routines which just roll values around from kern_clock.c
and kern_time.c to subr_time.c.
2007-08-09 07:36:18 +00:00
hannken 70cc392f1e Move snapshot per-mount data from struct ufsmount to mount specific data.
No functional changes.

Welcome to 4.99.28  (struct ufsmount changed size)
2007-08-09 07:34:27 +00:00
pooka 1f47971378 pass mntflags to puffs_mount() 2007-08-08 22:45:51 +00:00
macallan 794098d6c6 sync with ppcoea-renovation 2007-08-08 22:19:55 +00:00
tsutsui 7ff0d7e309 Defer arc_init_wired_map() call after MD ipl_sr_bits[] is initilized
in platform dependent init functions.

arc_init_wired_map() refers ipl_sr_bits[] via
extent_create(9) -> mutex_init(9) -> makeiplcookie(9)
since the partial merge of vmlocking.
2007-08-08 17:26:57 +00:00
pooka 24c0b6d0d0 Provide rump_getvninfo() and use that in libp2k_lookup() to avoid an
extra getattr for stuff the file system already cached in the vnode.
2007-08-08 14:09:07 +00:00
pooka 804db68101 Make genfs_islocked return always 1 instead of 0. But these should
really get tracked ...
2007-08-08 14:07:35 +00:00
ad 41368c8e7e Grab locks in getrusage/getrlimit. 2007-08-08 14:07:11 +00:00
pooka 427705465b Provide rumpmachine bswap.h, which makes bswapxx() call rumpuser
directly instead of relying on a symbol in rumpkern.  I would like
to make it call the libc symbol directly, but I don't currently know
how to make it do that MI.

Makes hfs work (on i386), as it avoids endless recursion in bswap64().
Thanks to dillo for the image!
2007-08-08 13:12:08 +00:00
tsutsui 13c8b8da87 Restore a device major for sd(4), which can be attached at atapibus(4).
Fixes part of PR port-shark/36693.
2007-08-08 13:08:11 +00:00
tron a166a5aeb7 Regen. 2007-08-08 12:53:05 +00:00
tron cb32f7bb82 Add some Attansis and VIA devices, correct order.
Patch provided by Christoph Egger on "tech-kern" mailing list.
2007-08-08 12:52:41 +00:00
yamt 8e473ee7cb push kernel_lock a little. 2007-08-08 12:27:56 +00:00
drochner a6b978e197 Round up size arguments as mmap() does.
This is for consistency, and to have semantics similar to Linux --
a Python selftest secceeds now.
2007-08-08 11:08:18 +00:00
tsutsui 917f2a088f Fix typo in debug printf. 2007-08-08 10:43:03 +00:00
tsutsui 6441e4962b Remove obsolete spllowersoftclock(9). 2007-08-08 10:30:50 +00:00
xtraeme bab89d201b w83627ehf_sensors: don't add sensors with duplicate descriptions.
These are voltage sensors and the VINX name is appropiate.

Found by Heron Gallegos.
2007-08-08 10:09:43 +00:00
pooka bbae7f4e94 Add hfs. Untested, as I couldn't find a hfs+ image for testing,
so one would be appreciated.  At least it works enough to tell me
this:

hfs: Plain HFS volumes not currently supported
2007-08-08 09:28:53 +00:00
pooka 493dccb979 sprinkle #ifdef _KERNEL 2007-08-08 09:21:34 +00:00
pooka 7772c7295b * compile param.c
* move opts to a separate directory
2007-08-08 09:06:11 +00:00
cube 8b3327fe73 Print ACPI device name in a way that Jared McNeill and I find prettier.
I like it better because I get to see the name of the device as it appears
in the DSDT, which sometimes makes sense and that way it's easier to locate
the relevant code when debugging.

E.g.:

PIC (PNP0000) [AT Interrupt Controller] at acpipcib0 not configured
DMAD (PNP0200) [AT DMA Controller] at acpipcib0 not configured
attimer0 at acpipcib0 (TMR, PNP0100): AT Timer
RTC0 (PNP0B00) [AT Real-Time Clock] at acpipcib0 not configured
pckbc0 at acpipcib0 (PS2K, PNP0303): kbd port
acpibat0 at acpi0 (BAT0, PNP0C0A-0): ACPI Battery (Control Method)
2007-08-08 08:52:31 +00:00
cube 5f5f6cdbad Fix a few minor envsys2 bugs/oddities in acpi_bat(4).
- mark (DIS)CHARGERATE as invalid when (DIS)CHARGING so that envstat
   doesn't print some weird stats where the system appears to be doing
   both
 - handle the case when it's doing neither by marking *RATE as invalid
   and setting CHARGING to OFF (because we're not charging, even though
   we're not discharging)
 - fix print_stats to print correct values in those cases, and a real
   percentage (i.e., computed against LFCCAPACITY)
2007-08-08 08:36:41 +00:00
pooka 258ed3740b microfrost strikes back 2007-08-08 07:53:54 +00:00
pooka 034104770f add microtime 2007-08-08 07:50:33 +00:00
macallan 2f62cc688b use the ADB keymap in dev/adb/ 2007-08-08 04:06:27 +00:00
pooka 22ca3a326a Compile kernel stuff with DIAGNOSTIC. 2007-08-07 21:33:13 +00:00
pooka 3ac2af6a15 support ext2fs 2007-08-07 21:26:35 +00:00
pooka 33e8054a43 refuse (not *that* refuse) to mount a r/w file system with
bs < PAGE_SIZE, it simply won't work yet.
2007-08-07 21:24:40 +00:00
pooka f815ddfdf3 flush pages in vflushbuf() 2007-08-07 21:23:19 +00:00
pooka d70a2a3a9d realpath() can also fail, take that into account 2007-08-07 20:40:53 +00:00
pooka 711e2ec866 always compile with -g for now 2007-08-07 20:39:54 +00:00
pooka 3c4d6d00f7 * adjust device block number based on if we're putting pages to a
fs block boudary or not
* round writes to DEV_BSIZE, just to be kosher
2007-08-07 19:43:56 +00:00
pooka 44eee227b6 remove the allocstorage param from makepage - not needed 2007-08-07 19:40:17 +00:00
pooka 7d41c1505d track dirty vm objects 2007-08-07 19:37:05 +00:00
pooka 34c0850533 When doing "ubc faults", truncate offsets to page boundary to get
the last page also if it's accessed from the middle of the page.
2007-08-07 19:14:51 +00:00
ad a72ab2ed2c NetBSD 4.99.27: _lwp_park() behaviour changed. libpthread will check
kern.osrevision.
2007-08-07 19:02:43 +00:00
ad 06f7ccf01d Regen. 2007-08-07 19:01:23 +00:00
ad 830ab6bb3c - Fix a bug with _lwp_park() where if the computed wakeup time was under
1 microsecond into the future, the thread could enter an untimed sleep.
- Change the signature of _lwp_park() to accept an lwpid_t and second
  hint pointer, but do so in a way that remains compatible with older
  pthread libraries. This can be used to wake another thread before the
  calling thread goes asleep, saving at least one syscall + involuntary
  context switch. This turns out to be a fairly large win on the condvar
  benchmarks that I have tried.
- Mark some more syscalls MP safe.
2007-08-07 19:00:42 +00:00
pooka 09afbbeda4 mutex_pwned - needed for kassert 2007-08-07 17:55:49 +00:00
pooka 24293880e1 in case of no error, init *error to 0 2007-08-07 16:55:22 +00:00
xtraeme 555fcb5606 The acpilid(4) powerd script is "lid_switch" not "lid_button"... found
by jmcneill@.
2007-08-07 14:03:00 +00:00
yamt 69aa06cd40 don't bother to set thread's priority by ourselves,
as kthread_create does it for us now.  from Andrew Doran.
2007-08-07 12:50:26 +00:00
ad eef90c7197 Regen. 2007-08-07 12:48:52 +00:00
ad b9d8ad095d wait() can't yet be MPSAFE since it's impractical to hold proclist_mutex
across exit(), and so there is a short race against cv_wait_sig(). This
can be reverted when proclist_mutex/proclist_lock merge.
2007-08-07 12:48:30 +00:00
ad 5005559992 Do cv_broadcast() on proc::p_waitcv to be on the safe side (the parent
could be multithreaded).
2007-08-07 12:45:54 +00:00
ad 21a5d0733c Fix typo. 2007-08-07 12:00:25 +00:00
ad c1bc924601 No reason not to make itimespecfix() generally available.. 2007-08-07 11:43:35 +00:00
ad 4a8903393a Export itimespecfix() until itimerfix() dies. 2007-08-07 11:39:18 +00:00
ad 178e1d5907 More calls to pmap_update(). 2007-08-07 11:30:20 +00:00
ad eb5991fdda x86_ipi: don't wait for the IPI to go, unless DIAGNOSTIC. If it doesn't go,
the system is going to fail regardless.
2007-08-07 11:28:26 +00:00
ad 4f5723ab5d Add a couple more calls to pmap_update(). 2007-08-07 11:25:40 +00:00
yamt e3fe8e011e - don't assume the order of cpus in a CPU_INFO_FOREACH loop.
- remove unused structure members.
- simplify.
2007-08-07 10:42:22 +00:00
pooka f5e5e38069 -I${NETBSDSRCDIR}/common/include 2007-08-07 10:30:39 +00:00
pooka 2ef1090efd more bsd.own.mk inclusion 2007-08-07 10:16:56 +00:00
pooka b24ef6ec06 flip order of includes to get NETBSDSRCDIR. from agc 2007-08-07 10:13:31 +00:00
yamt 6065343dde reduce diff. 2007-08-07 10:02:40 +00:00
ad 23cf810fc7 Regen. 2007-08-07 09:46:39 +00:00
ad 9dab7d5077 gettimeofday() doesn't need locks, and MySQL seems to make heavy use of it. 2007-08-07 09:46:24 +00:00
pooka 140d9a0ccb offset orgies, part n+1. this is still not right, but at least it's better 2007-08-07 09:03:43 +00:00
simonb 7bfbbfe3f5 Unwrap not-too-long line. 2007-08-07 08:00:46 +00:00
simonb 2e290a73eb Fix a tyop. 2007-08-07 07:48:57 +00:00