pooka
96a0d293a7
Don't create a new proc structure for kthreads (pid == 0).
...
XXX: this routine should probably do better accounting and consistency
checks as well.
2008-08-08 14:40:07 +00:00
martin
3c5d438020
Apply patch from Yasuoka Masahiko in PR kern/39321: fix length check
...
when parsing pppoe discovery phase packets.
2008-08-08 14:31:00 +00:00
hauke
9588641dc1
No WAPBL (ffs journaling) for memory-strapped machines.
2008-08-08 13:59:24 +00:00
pooka
0fca7fa92c
minor nit: fix header #ifndef namespacing
2008-08-08 13:57:59 +00:00
pooka
3ad5d8db21
KASSERT works better with == instead of =
2008-08-08 13:02:10 +00:00
hannken
b05e82aae1
Make the console on com0 detection work again.
2008-08-08 09:50:19 +00:00
simonb
c86b901a9e
Don't run off the end of the bootconf.desc[] array when printing out
...
the boot menu choices. Fixes problems with funny display when MAXMENU
or more "menu" items are in /boot.cfg.
2008-08-08 07:48:32 +00:00
uebayasi
714c16bc3e
ttywrite: g/c an unused variable (cnt).
2008-08-08 07:18:03 +00:00
hannken
e553a8ce92
Remove an unneeded include to make it compile again.
2008-08-08 06:29:21 +00:00
dogcow
1b552055c3
%d -> %zd for size_t
2008-08-08 06:26:58 +00:00
dogcow
8b3b4956d6
fix "warning: 'npv' may be used uninitialized in this function"
2008-08-08 06:21:09 +00:00
pooka
a1e2d21c3e
pg->flags &= PG_CLEAN --> &= ~PG_CLEAN;
...
Fixes at least writing to the fs for msdosfs.
2008-08-07 21:02:29 +00:00
plunky
772d60cfb9
convert some [left behind] compat code to use new sockopt API
2008-08-07 20:15:32 +00:00
reinoud
c3d5fdb471
Don't panic on read-errors but set flag that the packet is doomed. Its not
...
clear if i could read the individual sectors correctly since the entire
read packet is also one big ECC block.
2008-08-07 15:54:12 +00:00
tsutsui
c1e7fb3d43
Comment out options MACE_NEEDS_DELAYS.
...
Fixed mec(4) driver will (hopefully) work without it.
2008-08-07 15:14:40 +00:00
tsutsui
792cb95ad3
- check TX_RING pointer in MEC_INT_STATUS in mec_rxintr() (from OpenBSD)
...
- preserve the last TX descriptor to avoid wraparound (as per Linux driver)
- check IFQ_IS_EMPTY() on calling mec_start() in mec_intr()
- clear IFF_OACTIVE only if a number of descriptors are freed in mec_txintr()
Seems to fix mec(4) hangup problem (and silent reboot by crime watchdog)
on heavy load. Tested by martin@ and Jorge Acereda Macia on port-sgimips.
(though Jorge still has some problem, but this should have fixed one issue)
2008-08-07 15:05:02 +00:00
tsutsui
a311d7b2e9
In crime_attach(), call crime_watchdog_disable() rather than
...
writing zero to the CRIME registers implicitly.
2008-08-07 14:44:29 +00:00
tsutsui
e1beb9f83b
Fix a typo so that the crimedog is actually shut up.
2008-08-07 14:36:49 +00:00
pooka
3d8b145f98
some more todo points
2008-08-07 11:15:20 +00:00
skrll
371a852414
memcpy'ing a sleepq (TAILQ) doesn't work.
...
Re-init the condvar after memcpy'ing so that the TAILQ is valid.
regress/sys/kern/lockf now completes rather than failing in cv_wait_sig
with KASSERT(cv_has_waiters()).
2008-08-07 07:42:06 +00:00
cegger
bbae282081
make this compile as proposed by dholland@
2008-08-07 06:20:14 +00:00
matt
8f5842cc04
Use IF32_bits instead of I32_bit | F32_bit
2008-08-07 04:18:21 +00:00
matt
a960a1f973
Commit missing part of __HAVE_FAST_SOFTINTS support.
2008-08-07 04:17:25 +00:00
matt
8ce4fe62cc
Remove unneeded cast.
2008-08-07 04:16:26 +00:00
matt
188b29fdf8
Now that pmap allocates ncolors for memhook, use them to properly memory.
2008-08-07 04:15:52 +00:00
matt
d80307c31b
Only call dosoftints() is ci_intr_depth == 0
2008-08-07 04:11:07 +00:00
matt
196a1048f5
Enable __HAVE_FAST_SOFTINTS
2008-08-07 03:59:49 +00:00
matt
e2da7ceb83
Do fast softint processing in DO_AST_AND_RESTORE_ALIGNMENT_FAULTS.
...
Redo the softint mask so ci_softints >> ci_cpl != 0 becomes an easy
test for work to be done.
2008-08-07 03:58:15 +00:00
matt
13d044e16f
Pages mapped by debug_malloc are PMAP_KMPAGE so tell the pmap that.
2008-08-07 01:40:21 +00:00
oster
328f49787a
Define UFS_WAPBL_UNREGISTER_INODE() and UFS_WAPBL_REGISTER_INODE()
...
to something that pacifies the compiler in the non-WAPBL case.
Fix suggested by Martin Husemann. Fixes PR#39302.
2008-08-06 21:18:59 +00:00
matt
baab10840a
Change pv_entries to use SLIST.
...
For VIPT caches, keep track of when pages are dirty so that their content
can be flushed back to main memory. This is done when the page is
read-only mapped by more than 1 color. Pages become when either their
modified bit gets set or an unmanaged writeable page is mapped. When
a page in unmapped or changed to read-only, run pmap_vac_me_harder in
case the page can be mapped read-only.
Thanks are given to Imre Deak for giving me the idea to assert for PVF_DIRTY.
2008-08-06 19:13:45 +00:00
matt
04ddff9cc7
Define IF32_bits as the union of I32_bit|F32_bit
2008-08-06 19:06:40 +00:00
matt
c331e46238
Add support for missing _SC_* constants for sysconf().
...
From andy dot shevchenko at gmail dot com
2008-08-06 17:17:03 +00:00
drochner
4e69f53b47
remove a KASSERT which is wrong since audio(4)'s device/softc were split
2008-08-06 16:31:15 +00:00
martin
80d96333fc
Remove a few components of struct lwp that we do not touch any more.
2008-08-06 16:12:59 +00:00
dyoung
2b1e3ce6be
Identify the O2 Micro OZ711E0 and treat it the same as all of the
...
other O2 Micro bridges, which seem to spuriously report bus errors
if parity-error detection is enabled.
2008-08-06 15:50:46 +00:00
martin
8093db04c6
We need socketvar.h now for struct sockopt.
2008-08-06 15:36:20 +00:00
dyoung
4738cebcdd
Regen.
2008-08-06 15:17:05 +00:00
dyoung
711281588b
Define O2 Micro OZ711E0. From OpenBSD.
2008-08-06 15:14:21 +00:00
plunky
fd7356a917
Convert socket options code to use a sockopt structure
...
instead of laying everything into an mbuf.
approved by core
2008-08-06 15:01:23 +00:00
reinoud
a287d23dee
Rewrite allocation scheme's determination and implementation replacing the
...
old somewhat naive selection scheme that didn't allow different allocation
settings for nodes, directory information (FIDs) and data.
Also fix some curious side-effects of atime updates on RMW devices.
2008-08-06 13:41:12 +00:00
hannken
601ab263e0
Do not call UFS_WAPBL_*() when ffs_freefile() is acting on a snapshot.
...
While here replace the test for VBLK with a convenience variable.
2008-08-06 12:54:26 +00:00
matt
7fc2caf9e9
Fix typo FP_ -> FE_
2008-08-06 03:54:50 +00:00
degroote
64411951db
We have a dummy entry for IPV6CP even if the non-INET6 case.
...
So always reference IDX_IPV6CP
Fix build of if_spppsubr.c if INET6 is not defined.
2008-08-05 23:56:31 +00:00
reinoud
5e89a5a8f1
Fixup important bug in internal recorded data fixup. Although most unlikely
...
it could result in theory result in descriptor trashing.
On the performance side, it would try to fixup *every* descriptor even if
it wasn't an internally allocated one. Performance loss wasn't that big but
every bit helps.
2008-08-05 19:29:54 +00:00
drochner
687baea535
Disable interrupts before shutdownhooks are run, as all other ports.
...
shutdownhooks need to use polling functions (and most do).
2008-08-05 17:09:17 +00:00
matt
91d4704c12
Update <machine/ieeefp.h> to use the C99 FE_* definitions instead of the
...
NetBSD defined ones. Redefine the NetBSD ones in terms of the C99 ones.
Step 1 to having <fenv.h>
2008-08-05 16:47:41 +00:00
matt
c5e5572326
For ARITH traps, set the siginfo code appropriately for FP related traps.
2008-08-05 16:00:31 +00:00
matt
a97a3faaf7
Add the AFLT_FLT* code for T_ARITHFLT.
2008-08-05 15:59:28 +00:00
matt
e56d3c9caf
Add PSL_{IV,FU,DV} bits.
2008-08-05 15:56:04 +00:00
pooka
7b679f625d
Maintain consistency of naming between the rumpfs library name and
...
the MOUNT_FOOFS name. Don't bother polluting the obsolete lists
with the original names since they were in only for a few days.
2008-08-05 14:42:03 +00:00
pooka
b43847b66c
zu, not zd, to print size_t
2008-08-05 13:39:29 +00:00
simonb
159018ab5b
Enable "options APPLE_UFS". OK pooka@.
2008-08-05 13:16:27 +00:00
plunky
c5ce5d1afa
adjust message for previous change
2008-08-05 13:08:31 +00:00
pooka
919218a908
Honor PG_RELEASED when unbusying a page.
...
Fixes ufs file system full problem discovered by Simon Burge.
2008-08-05 13:06:35 +00:00
plunky
516804fedf
drop packets that exceed the negotiated MTU
2008-08-05 13:02:10 +00:00
apb
945315ec99
Use ${TOOL_SED}, which is defined by bsd.own.mk/bsd.sys.mk,
...
instead of just ${SED}. (Don't do the same for ${AWK},
because that's not yet a host tool.)
2008-08-05 08:26:05 +00:00
matt
0d17fd6f2c
RBSMALL is dead.
2008-08-05 04:12:09 +00:00
perry
3a8b66906e
Per request from Matt Thomas, make -m on -current print the major
...
number of the next release.
2008-08-04 19:30:09 +00:00
perry
3fe86b6b2e
1) replace use of sed with $SED
...
2) get rid of grep variable -- grep isn't used here
3) add a -m option that prints the release major number (like "4")
4) add a comment documenting the options
2008-08-04 17:56:52 +00:00
matt
e90b08472f
Add _POSIX_HOST_NAME_MAX and _POSIX_SYMLOOP_MAX to <limits.h> and add some
...
references to them in <sys/param.h>
in <stdio.h> also export v*scanf when _ISOC99_SOURCE is defined
From andy dot shevchenko at gmail dot com.
2008-08-04 17:08:49 +00:00
simonb
ba0675032b
Only allow WAPBL to operate with UFS2 style superblocks.
...
Problem reported by Takeshi Nakayama.
2008-08-04 15:55:11 +00:00
pooka
27f3f4f004
Add support for using real kmem/vmem. Don't enable it by default,
...
though, since it a) is a lot of unnecessary indirection in rump
b) requires callouts which are so far unimplemented.
2008-08-04 15:02:16 +00:00
pooka
8f1eb24c9f
libs don't need NOMAN
2008-08-04 14:35:24 +00:00
pooka
c7b9619f12
the most karmic commit of all: fix tyop in comment
2008-08-04 13:37:33 +00:00
christos
fd2004ecfd
keep the loop, but arrange IDX_COUNT to be correct.
2008-08-04 12:03:14 +00:00
martin
2cfed21969
PR kern/39280: Uninitialized callout stopped in if_spppsubr layer
...
in kernels without options INET6.
2008-08-04 10:17:33 +00:00
spz
79462c037e
typo fix in comment (drops the ' in drop's :)
2008-08-04 07:01:05 +00:00
matt
b89c8b7b61
Free the socket only after disposing of the PCB.
2008-08-04 06:47:52 +00:00
matt
3e368ad90b
Free the socket only after disposing of the PCB.
2008-08-04 06:29:58 +00:00
matt
cc99e2f48f
Remove the pcb from the rawcb list before sofree'ing it.
...
Don't reacquire softnet_lock until after we've freed the pcb.
2008-08-04 06:19:35 +00:00
cegger
e61fddb8f9
struct cfdata -> cfdata_t
2008-08-04 06:01:18 +00:00
tls
c5ddeafa76
Unlock reassembly queue before calling sorwakeup(), not after. In unusual
...
cases with in-kernel consumers which might send data on the same socket,
we can deadlock on the reassembly queue otherwise (observed while testing
accept filters).
2008-08-04 04:08:47 +00:00
tls
717f903a98
Add accept filters, ported from FreeBSD by Coyote Point Systems. Add inetd
...
support for specifying an accept filter for a service (mostly as a usage
example, but it can be handy for other things). Manual pages to follow
in a day or so.
OK core@.
2008-08-04 03:55:47 +00:00
macallan
d61452c45c
fix another botched device_t-ification
2008-08-04 03:14:43 +00:00
joerg
9ae4651601
Move some MD declarations from x86/pci/files.pci to x86/conf/files.x86,
...
so that Xen can use the former.
Drop Xen's pcib.c in favor of the x86 code and thereby unbreak ichlpcib.
2008-08-03 19:32:03 +00:00
joerg
cc4b6d8ca3
Reduce diff to GENERIC for compat options.
2008-08-03 19:23:47 +00:00
joerg
2955830a40
Remove SYSV IPC options as they have been replaced with sysctls.
2008-08-03 19:20:48 +00:00
rumble
6b11ab8f44
Add -m to usage and do not simply use strcmp to compare names as the volhdr
...
name is not necessarily nul-terminated.
2008-08-03 17:42:34 +00:00
rumble
f048ceb62a
Add -m to move (rename) files in the volume header. While here, remove
...
some magic constants and fix some space-limited printfs.
2008-08-03 16:09:20 +00:00
degroote
8501900fa0
In crypto_freereq, destroy explicitly the condvar
...
ok by tls@
2008-08-03 10:18:12 +00:00
tsutsui
70612e5c54
Remove __weak_alias() for mips3_delay(). It's in mips3_clock.c.
2008-08-03 09:14:28 +00:00
cegger
6223c57814
make i386 ALL kernel compile
2008-08-03 07:05:22 +00:00
joerg
3ea923f75a
Allow using VGA_POST without ACPI again.
2008-08-03 02:12:22 +00:00
tsutsui
84e2b374ec
Two fixes to make -current kernel be loadable by 4.0 bootloader:
...
- if bootinfo is not passed from bootloader, check argv[1] first
which might be the loaded kernel path specified for bootloader
- when using argv[0] as the kernel path (loaded directly by the PROM)
assume boot partition is 0 (partition a) since the kernel might be
in an SGI volume header partition and it can't be a root partition
Ok'ed by rumble@, and tested on IP22 and IP32.
2008-08-03 00:35:03 +00:00
tsutsui
8485799843
- replace some mysterious magic numbers in CPU clock measurement code
...
with some more meaningful expressions
- compare counter values in 100ms rather than 2ms
- check CPU_MIPS_DOUBLE_COUNT in mips_cpu_flags explicitly
2008-08-03 00:20:18 +00:00
tsutsui
2d4879d193
Add CPU_MIPS_DOUBLE_COUNT to R10K family CPUs and
...
also remove (unused?) MIPS_NOT_SUPP flag from them.
Problem on R10k O2 is reported by martin@ on port-sgimips.
2008-08-03 00:09:20 +00:00
jmcneill
cd4f8360bb
High speed isochronous transfer support, from Jeremy Morse as part of
...
Google Summer of Code 2008.
2008-08-02 23:14:34 +00:00
jmcneill
c4b944ba64
Update copyright.
2008-08-02 22:57:36 +00:00
jmcneill
4e6a458107
High speed isochronous support, from Jeremy Morse as part of Google
...
Summer of Code 2008.
2008-08-02 22:23:18 +00:00
simonb
b92eb9eaa1
sort sys/kern SRCS alphabetically.
2008-08-02 15:31:14 +00:00
simonb
53aeec60eb
When checking if there's enough space at the end of a partition,
...
compare bytes vs bytes, not sectors vs bytes.
Problem discovered and fix tested by Michael Hitch.
2008-08-02 02:23:51 +00:00
marcus
b66028ed66
sysasic_intr_string() takes an IRL, not an IPL.
2008-08-01 20:19:49 +00:00
pooka
0b5af21c5a
support real sysctls
2008-08-01 19:34:51 +00:00
macallan
f675bba464
fix incomplete device_t-ification
...
Now it works again.
2008-08-01 19:33:07 +00:00
pooka
fb5f9816d8
regen: sys___sysctl
2008-08-01 19:33:02 +00:00
pooka
bcfb021366
rumpify sys___sysctl
2008-08-01 19:32:35 +00:00
jmcneill
551b501a8f
linux_sys_rt_sigreturn: properly restore stack flags, pointed out by
...
Juan RP and modified by myself. ok christos@
2008-08-01 18:49:28 +00:00
dillo
7767511f21
Increase delay after channel reset from 100ms to 500ms, suggested by bouyer.
...
Fixes unreliable drive detection on NVIDIA MCP67.
2008-08-01 17:41:54 +00:00
dillo
f6bd05d87b
Force ahcisata to attach to NVIDIA MCP65 and MCP67, as they don't
...
work with viaide.
Reviewed by bouyer.
2008-08-01 17:17:35 +00:00
apb
10c7b7cb02
#include <sys/tree.h> to get a definition for SPLAY_ENTRY.
...
Needed by third party code, such as lsof.
2008-08-01 16:55:48 +00:00
matt
c54e2d5527
Fix bug where SRR1 (%r2) was being accidently misused and modifed
...
in place of segreg (%r1).
From Konrad Karpowicz <konradk at pacomp dot pl>.
2008-08-01 16:32:03 +00:00
ws
d172dc9df5
Destroy our mutex on detach in order to avoid
...
an "allocation contains active lock" panic
when halting a LOCKDEBUG kernel.
2008-08-01 16:09:45 +00:00
pooka
c19f1a2afd
Support ukfs_modload(), which dlopens and vfs_attaches rump file
...
system modules for use. Sneakily this solves the problem with the
dynamic linker not wanting to handle the modules link set for
binaries where more than one file system library is included during
the link phase and therefore only one of the file systems getting
vfs_attach()ed in rump "boot". But more importantly, this is really
TRTTD, since now applications can be built, linked and shipped
completely independently of the file systems they support.
tested by Arnaud Ysmal
2008-08-01 14:47:28 +00:00
pooka
b629cd421b
expose module_compatible()
2008-08-01 14:05:15 +00:00
pooka
efc1eab889
72 for wapbl
2008-08-01 13:34:31 +00:00
marcus
ae05e8ed7a
Fixed a compilation warning.
2008-08-01 11:33:06 +00:00
skrll
6fd21ccbbf
Improve the debug output ever so slightly.
2008-08-01 07:11:24 +00:00
cegger
7c9b29a47a
backout rev. 1.175:
...
options VGA_POST already existed which makes config barf.
2008-07-31 23:56:00 +00:00
oster
9921f79434
Make MSDOS filesystems work again after WAPBL merge. Fixes a quite
...
repeatable panic in fstrans_getstate() found while searching for a
different USB bug. Also makes the code somewhat more readable.
Patch from Juergen Hannken-Illjes with a small rearrangement from me.
Approved by: hannken
2008-07-31 23:49:50 +00:00
drochner
551e75d811
-ubsa needs to be attached as whole device on USB, because it sets
...
the configuration. The match/attach code was assuming whole-device
attach args all the time.
-Use the first (ie index 0) configuration for ubsa -- it makes the
code work in at least one case (PR kern/39211 by Frank Wille), and
there is no indication that an alternative configuration would
be needed. (I've admittedly never seen a usb device with more than
one configuration.)
This fixes mistakes when uhmodem support was added, and the changes were
not tested with a Huawei device yet. So please test if you can.
2008-07-31 22:01:15 +00:00
matt
a1469c2d6d
Generalize previous fix so that both NS and NA packets are checked.
2008-07-31 18:24:07 +00:00
matt
fc3801b3c9
If a neighbor solictation isn't from the unspecified address, make sure
...
that the source address matches one of the interfaces address prefixes.
2008-07-31 18:01:36 +00:00
hannken
85271ee0ad
Ffs snapshots don't work (yet) with WAPBL:
...
- no snapshot creation on logging file systems.
- refuse to mount logging file systems with persistent snapshots.
Ok: Simon Burge <simonb@netbsd.org>
2008-07-31 15:37:56 +00:00
joerg
ca906ffece
Include VGA_POST by default in GENERIC and ALL on x86 now that the code
...
is conditional.
2008-07-31 14:15:00 +00:00
joerg
0b2a6aef84
machdep.acpi_vbios_reset = 2 --> vga_pci_resume will use x86emu to do a
...
POST when options VGA_POST is present.
2008-07-31 14:05:05 +00:00
ws
f83cc7d5ab
Calling fxp_init within the interrupt handler results in
...
a hang (continuous assertion of FXP_SCB_STATACK_RNR).
Instead do it in the ioctl routine after receiving a
signal from the interrupt handler.
2008-07-31 12:28:28 +00:00
hannken
fb6f2c9b30
Resolve a deadlock when fs_nodealloccg() initializes more inodes on
...
an UFS2 file system. With the current cylinder group buffer busy it
calls ffs_getblk(). This runs through copy-on-write and may need the
current cylinder group buffer to allocate a new block for the snapshot.
While here write the cylinder group buffer synchronously after
cg_initediblk was changed because fsck_ffs will trust it.
Reviewed by: Jason Thorpe <thorpej@netbsd.org>
2008-07-31 09:35:09 +00:00
simonb
0800f2fb9f
Be consistent with #define<tab>.
2008-07-31 08:44:21 +00:00
cegger
e2775dc02b
Add "options WAPBL" to Xen configs
2008-07-31 08:43:13 +00:00
simonb
2a3d67b697
Remove needless white-space change that crept in through wapbl branch
...
merge.
2008-07-31 08:42:01 +00:00
simonb
dc9029a896
Regen for "options WAPBL".
2008-07-31 07:48:37 +00:00
simonb
ef38d7e5a7
Move "options WAPBL" so that it also gets added to INSTALL kernels.
2008-07-31 07:47:43 +00:00
simonb
ae9bf9b493
Regen for "options WAPBL".
2008-07-31 07:45:39 +00:00
simonb
73252465b8
Move "options WAPBL" so that it also gets added to INSTALL kernels.
2008-07-31 07:45:04 +00:00
simonb
0751ba4bff
Add "options WAPBL" to standard GENERIC/INSTALL type configs.
2008-07-31 07:40:59 +00:00
simonb
36d65f1138
Merge the simonb-wapbl branch. From the original branch commit:
...
Add Wasabi System's WAPBL (Write Ahead Physical Block Logging)
journaling code. Originally written by Darrin B. Jewell while
at Wasabi and updated to -current by Antti Kantee, Andy Doran,
Greg Oster and Simon Burge.
OK'd by core@, releng@.
2008-07-31 05:38:04 +00:00
uebayasi
d1dfd4fec7
Display t_outcv* channels as "ttyout*", not "ttycan*".
2008-07-31 01:46:40 +00:00
mrg
36bfdec773
be sure to decend into sys/rump during "make obj". fixes builds on r/o src.
2008-07-31 01:11:53 +00:00
pooka
6fe369e772
Nuke __VFSOPS_EXPOSE, it hasn't been used in ages.
2008-07-30 18:10:38 +00:00
tsutsui
a8858674e9
Add a BUS_DMASYNC_PREWRITE call against tile's DMA address descriptors.
...
Fixes mangled screen on recent kernels.
Tested on my R5K IP32 and on R10K IP32 by Jorge Acereda Macia on port-sgimips.
2008-07-30 17:24:27 +00:00
njoly
a3adeaa5f9
Fix linux_sigismember/linux_sigaddset to work on amd64 (and other
...
64bits archs), by ensuring that bit shifts are done on correct type.
2008-07-30 16:05:26 +00:00
cherry
b89762695b
Catchup with acpica
2008-07-30 11:57:24 +00:00
cherry
370d9398c5
Allow $arch/stand to use dist/acpica/acpica.h
2008-07-30 11:45:20 +00:00
hannken
4685b65ada
ffs_snapshot():
...
Release allocated indir blocks on non-softdep file systems instead
of writing them twice.
It is sufficient to clean dirty data pages to avoid UBC inconsistencies.
ffs_snapblkfree() and wrsnapblk():
If a snapshots effective link count is zero there is no need
to use synchronous writes.
ffs_copyonwrite():
Defer locking the snapshots until there is a need to copy the block.
wrsnapblk():
Use vn_rdwr() instead of bwrite() to write to the snapshots.
2008-07-30 10:09:30 +00:00
oster
55a54b5762
Fix race during creation of rumpdefs.h, rumpvnode_if.h, and rumpvnode_if.c.
...
Patch from pooka@ with tweak from me.
Approved by: pooka
2008-07-30 01:32:47 +00:00
bjs
43577a53e4
Fix type-o.
2008-07-29 23:44:42 +00:00
tron
2542692463
Regen.
2008-07-29 21:13:48 +00:00
tron
3fd4fcc5db
Add nVidia GeForce 7300 LE.
2008-07-29 21:13:17 +00:00
pooka
4b68af9947
Prevent amd64 compiler flag -mcmodel=kernel for rump kernel code.
...
This allows to compile rump libraries as shared libraries also on mad64.
Problem spotted by Greg Oster. I guess his build broke or something ...
2008-07-29 20:18:25 +00:00
thorpej
261002c777
rw_vector_exit(): When doing direct hand-off to a writer, only set
...
RW_WRITE_WANTED if there are additional writers waiting.
2008-07-29 16:13:39 +00:00
pooka
eef3b7a974
* remove unnecessary .PATH
...
* wrap malloc
2008-07-29 14:01:25 +00:00
pooka
9dbcf29c49
NOMAN
2008-07-29 14:00:01 +00:00
pooka
cd56ab5fbf
Accidentally left behind: these live in src/lib now.
2008-07-29 13:50:24 +00:00
pooka
bdf6e0b034
Install rump libraries and utilities to the base system and remove the
...
private non-installed build infrastructure from sys/rump.
breakdown of commit:
* install relevant headers into /usr/include/rump
* build sys/rump/librump/rumpuser and sys/rump/librump/rumpkern
from src/lib and install as librumpuser and librump, respectively
+ this retains the ability to test a librump build with just the
kernel sources at hand
* move sys/rump/fs/lib/libukfs and sys/rump/fs/lib/libp2k to src/lib
for general consumption, they are not kernel-space dwellers anyway
* build and install sys/rump/fs/lib/lib$fs as librumpfs_$fs
* add chapter 3 manual pages for rump, rumpuser, ukfs and p2k
* build and install userspace kernel file system daemons if MKPUFFS=yes
is spexified
* retire fsconsole for now, it will make a comeback with an actually
implemented version shortly
2008-07-29 13:17:40 +00:00
rjs
4ca1cae072
Add missing file.
2008-07-29 12:43:24 +00:00
christos
3e9f49d10d
fix typo.
2008-07-29 12:01:41 +00:00
reinoud
17cb09d3ee
Remove comments on `need to read in'; they are read in.
2008-07-29 10:08:16 +00:00
pooka
f00b7c9b12
Solve the fstat-wants-to-look-at-kernel-data-structures in a nicer
...
way: don't export the fs internals to innocent userspace programs
which just want to mount the file system.
2008-07-29 09:10:09 +00:00
matt
5698938787
Make uvm_map.? use <sys/rb.h> instead of <sys/tree.h>. Change the
...
ambiguous members ownspace/space to gap/maxgap. Add some evcnt for
evaluation of lookups using tree/list. Drop threshold of using
tree for lookups from > 30 to > 15.
Bump kernel version to 4.99.71
2008-07-29 00:03:06 +00:00
reinoud
71c9aa3395
Streamline allocation to prepare it for metadata partition. Also add
...
preliminary Metadata partition write support but its disabled still since
its not finished yet and not functioning correctly. All other formats are
checked and should work fine.
2008-07-28 19:41:13 +00:00
matt
34ac358652
Reacquire softnet_lock after calling soabort which returns with the socket
...
unlocked.
2008-07-28 18:41:07 +00:00
pooka
b6138e3eb7
Backup some manual page sketches lest I delete the wrong source tree.
2008-07-28 18:34:31 +00:00
pooka
2eb2408c19
rump now builds on all ports
2008-07-28 18:12:53 +00:00
pooka
b00e8162a5
Give rump a faux vmparam.h to work around problematic ports (hooray
...
for evbppc). Obligatory inlined rant: it would be really nice if
we didn't have weird ports like that which sport totally incompatible
code for different kernels.
2008-07-28 18:12:15 +00:00
pooka
966308f7e8
shuffle around some more defs for fstat
...
noticed by Kurt Schreiner on current-users
2008-07-28 18:00:20 +00:00
christos
eda454c1f4
- trailing commas in enums
...
- arithmetic on enums needs cast
from Anon Ymous
2008-07-28 17:54:02 +00:00
christos
6636374a5a
just whitespace fixes.
2008-07-28 17:02:45 +00:00
christos
e365952e64
fix type punned warnings.
2008-07-28 17:01:16 +00:00
macallan
df34d2042b
Fix remaining register offset shifting left over from proper bus_space-ification
...
done a while ago. From Marco Trillo.
This should fix PR 39176.
2008-07-28 16:54:49 +00:00
pooka
2ba62ba2c7
Not everyone is building from my yet uncommitted trees, so catchup
...
here also.
tip-of-the-hat to simonb
2008-07-28 16:27:29 +00:00
christos
a3d2246423
lint wins again :-) From Anon Ymous:
...
- fix a mis-placed parenthesis.
- fix assignment to the wrong variable.
2008-07-28 15:28:27 +00:00
drochner
6a47db887e
-in usbd_probe_and_attach(), split out the code for per-device and
...
per-interface attachment into individual functions, to ease
maintainance and allow easier plugin of new attachment functions
-keep a counter of USB interfaces in use on a device, and try to
keep track of interfaces claimed by drivers behind the framework's
back
2008-07-28 15:22:01 +00:00
drochner
6b623b615a
add missing device_private(), fixes crash in interrupt handler
2008-07-28 14:25:30 +00:00
drochner
a17262c3e3
Avoid NULL pointer dereference on power handler deregistration if
...
it was not registered before. I assume that a lot of drivers do not
proper bookkeeping in the case the attach() exits early due to
errors. This is hard to fix and to test, so just be generous here.
2008-07-28 14:22:14 +00:00
drochner
3126a6b09b
Don't pmf_device_deregister() if it was not registered, which happens
...
if attach() encountered an error before.
In contrast, such a protection should not be needed for the register()
call, so remove it there.
2008-07-28 14:19:26 +00:00
pooka
49eea9ca9f
add a comment stating why evbppc doesn't do lkm or modules
2008-07-28 14:09:55 +00:00
pooka
e575982be5
blkset.S is needed on vax by some macros, so include it in the build.
2008-07-28 13:56:59 +00:00
pooka
97f4be43e9
Install mount argument structure header just like every other file system.
2008-07-28 12:42:12 +00:00
jmcneill
25b0c73dd3
Clarify some printfs in error cases so we at least know what subsystem
...
reported them.
2008-07-28 12:20:35 +00:00
dsl
d7ca47879f
Change how 'while (0)' is commented out to avoid /* within a comment.
2008-07-27 20:12:47 +00:00
pooka
c8ccd39051
UKFS_UIOINIT() functionality has been provided for ages by rump
...
function interfaces, so remove the macro.
2008-07-27 16:12:23 +00:00
pooka
f06b295c56
Adjust comment location to make it make sense.
...
no functional change
2008-07-27 15:08:37 +00:00
joerg
0528da675e
Unbreak twa after the last two commits.
2008-07-27 13:10:11 +00:00
reinoud
7ac1927ba2
Delay physical partition spacebitmaps from volume-descriptor-checking until
...
the other supporting structures are read in.
2008-07-27 11:38:23 +00:00
reinoud
5c3627bcdf
Unify naming scheme and source code beautify for better readablility.
2008-07-27 11:21:21 +00:00
veego
e012f27d4d
Remove the '${.CURDIR}/' part in CLEANFILES, so that the files will be
...
deleted in the case of an objdir too.
Proposed to current-users on 20-Jul-2008 with no reply..
XXX The '*~' part should be removed too, but I leave that to someone else
since it is used in a lot of other Makefiles too and there maybe a
valid reason for it.
2008-07-27 07:57:40 +00:00
reinoud
4e0493c8f8
Forgot to rename those two references to write_space_bitmap too.
2008-07-26 20:52:04 +00:00
reinoud
8f7887a864
Clarify the current spacemap read/write code is reading/writing physical
...
partition space maps. This in preperation of Metadata spacetable
reading/writeout work.
2008-07-26 20:49:33 +00:00
reinoud
3653a53255
Clarify not implemented allocation schemes; mostly UDF 2.50
...
HD-DVD/BluRay-RE and UDF 2.60 for BluRay-R
2008-07-26 20:33:36 +00:00
plunky
86cf58d587
remove comment that is no longer true
2008-07-26 20:16:10 +00:00
darrenr
4dac121dab
2020447 IPFilter's NAT can undo name server random port selection
...
(fix output port range, was a random number in [0,max-min]
(byteswapped on litle endian), instead of [min,max])
2008-07-26 19:44:28 +00:00
heinz
4f58699ff4
Moved comments for some _POSIX_* constants in front of their definition,
...
like all the rest of them.
2008-07-26 19:37:58 +00:00
christos
081bb45d58
make sure we write little endian. From Anon Ymous
2008-07-26 15:10:34 +00:00
dsl
c43281ec80
Remove all the pending connections in soclose().
...
'continue' in 'do .. while (0)' doesn't do what ad@ intended.
2008-07-25 22:45:58 +00:00
dsl
a8f5b9cfc2
Comment out the 'do' and 'while (0)' from KEY_CHKSASTATE().
...
The expansion contains a 'continue' which is expected to continue
a loop in the callling code, not just abort the #define.
2008-07-25 20:55:43 +00:00
dsl
34519fcf41
Move the body of VLAN_INPUT_TAG() into a static inline function.
...
(Maybe it shouldn't even be inline - but I'd have to work out where to put it).
VLAN_INPUT_TAG() now calls vlan_input_tag() and does '_errcase' when it fails.
In reality the callers should all be changed, _errcase is ALWAYS continue,
which used to 'continue' (ie break) the do .. while (0) loop - not the
intended action!
Found by ramming all the kernel sources through a modified lint and grepping
for a specific error.
While here enclose the body of VLAN_OUTPUT_TAG() in ().
2008-07-25 20:04:50 +00:00
dsl
93b2e677b4
Add {} around VLAN_INPUT_TAG() - VLAN_INPUT_TAG() can't be a do ... while (0).
2008-07-25 19:45:06 +00:00
dsl
bc2387e293
Replace a 'do { ... } while (0);' with 'for (;;) { ... break; }'
...
so that the 'continue' has the (probably) desired effect.
2008-07-25 18:37:24 +00:00
christos
b00559d07e
use bufsize instead of BUFFERSIZE
2008-07-25 18:36:50 +00:00
christos
3bccc0f766
Handle files with a large number of mappings gracefully. Reported by Nicholas
...
Joly.
2008-07-25 17:40:24 +00:00
reinoud
0dca08adcb
Add metadata bitmap ICB file type
2008-07-25 15:37:56 +00:00
christos
0119da7858
PR/39203: Paul Ripke: PPPoE issues with broken MTU/MRU implementations
...
Allow larger frames for systems that don't negotiate MTU/MRU properly.
2008-07-25 15:10:25 +00:00
bjs
8151294949
- for DRM_NETBSD_HANDLE2ADDR/ADDR2HANDLE, do what uvm does to recover
...
the virtual address from a uoffset, e.g. uoffset + vm_map_min(kernel_map).
- Eliminate the bus_space_read/write-based DRM_READ/WRITE macros. The
memory we're reading/writing from is not always allocated with bus_space,
and so this will not do. Instead, since all of our bus_space maps are
linear, volatile pointer dereferences will do just fine.
- Unify members of struct drm_dma_handle amongst freebsd and netbsd:
the 'addr' member was superfluous; also, set dmah->tag from
dev->pa.pa_dmat and use that.
- we don't need BUS_DMA_ALLOCNOW, as bus_dmamap_load is called immediately
following bus_dmamap_create(), so there's no need to avoid deferring
allocation to load time.
- Add check for nsegs != 1 in drm_pci_alloc().
- We don't need the DRM_PCI_DMAADDR macro right now--it was only
used once.
2008-07-25 06:54:33 +00:00
bjs
f4821bc01a
in the git sources, timo is jiffies + 5*DRM_HZ, not 5*DRM_HZ
2008-07-25 06:37:40 +00:00
mrg
5560b89162
merge git-change-2580a065d81be645a14af1e91b8441f7e72fcbe4.
2008-07-25 05:30:08 +00:00
mrg
3eb83a79ce
import mesa-drm git from change 2580a065d81be645a14af1e91b8441f7e72fcbe4.
...
this pulls in a few vblank fixes.
2008-07-25 05:27:51 +00:00
bjs
42cc23f284
IRQ_HANDLED should be 1, not 0.
2008-07-25 02:37:18 +00:00
uwe
4691dacd78
Declare lwp_exit_switchaway() __dead. Add infinite loop at the end of
...
lwp_exit_switchaway() to convince gcc that cpu_switchto(NULL, ...) is
really not going to return in that case. Exposed by gcc4.3.
Reported on tech-kern by Alexander Shishkin.
2008-07-25 00:48:59 +00:00
blymn
9b9ad40a56
* Add the BSS node during the auth phase so negotiation can occur
...
* Make the adding of a node into a function instead of duplicating code
2008-07-24 13:04:00 +00:00
njoly
c1c4ce8861
Regen for rt_sigpending.
2008-07-24 12:11:14 +00:00
njoly
efde75ae99
Add rt_sigpending syscall.
2008-07-24 12:09:56 +00:00
darrenr
9f0bfbf3da
2020447 IPFilter's NAT can undo name server random port selection
2008-07-24 09:37:57 +00:00
sborrill
474699860b
Add support for Broadcom 5722 and identify 5755 ASICs.
2008-07-24 08:14:49 +00:00
apb
7cb9e72bbb
Avoid using \$ in an awk script. Instead, store '$NetBSD$'
...
in an awk variable and interpolate it where needed.
Based on the patch by Martin Husemann in PR 38766.
2008-07-23 21:17:25 +00:00
njoly
066b9aabb5
Add linux32_getifconf, following recent linux_getifconf addition.
2008-07-23 12:32:09 +00:00
dyoung
7e7bddae2b
Fix this another way: add the missing case statement.
2008-07-23 06:34:31 +00:00
gmcgarry
1d92605168
Back out rev 1.163 which broke the logic for SIOCSIFFLAGS. PR#38976.
2008-07-23 05:41:47 +00:00
reinoud
5b49df17d8
No use walking empty hashtables when purging.
2008-07-22 21:39:08 +00:00
christos
0f5d35d8d1
report local symbols too.
2008-07-22 21:18:35 +00:00
pooka
2d86f776af
Make the previously library-internal "builddirs" an external interface:
...
ukfs_util_builddirs()
patch from Arnaud Ysmal
2008-07-22 20:02:16 +00:00
reinoud
ff7ad972a5
Limit the UDF dirhash to a configurable amount of memory. The performance
...
penalty even with a limited dirhash of 128kb is acceptable but it should be
set by machine memory size though.
2008-07-22 19:06:55 +00:00
hauke
3411d8045b
Having read Frank Kardel's web page again, I think the XXX comment
...
wrt. the splhigh() guard can go.
2008-07-22 14:43:45 +00:00
matt
4886aa3da7
Implement workaround for:
...
arm11 Errata 364296:Possible Cache Data Corruption with Hit-Under-Miss
Remove hack in userret which is redundant with workaround.
workaround code from <imre.deak@teleca.com>
2008-07-22 07:07:23 +00:00
bjs
c7921652a6
Add pci_mapreg_submap(): This function is pci_mapreg_map() with two
...
additional arguments, offset and maxsize. This new functionality
eases handling certain tasks within the direct rendering manager, though
I hope others will also find it useful.
pci_mapreg_map() is now merely a wrapper around pci_mapreg_submap();
the latter contains all of the code from the former.
ok christos@
2008-07-22 04:52:19 +00:00
joerg
26fd2cb43f
Express explicitly that VGA_POST needs X86EMU.
2008-07-21 21:36:05 +00:00
lukem
09657f8798
Switch __COPYRIGHT() to using __SECTIONSTRING() now that userland
...
copyrights don't have \n in them.
(Tested on i386. There might be a couple of applications specific
to a given platform that should be fixed.)
2008-07-21 15:22:19 +00:00
cegger
30e1bad82e
beautify dmesg with MPVERBOSE.
...
before:
pci0 at hypervisor0 bus 0: configuration mode 1hypervisor0: added to list as bus 0
pchb0 at pci0 dev 0 function 0
now:
pci0 at hypervisor0 bus 0: configuration mode 1
hypervisor0: added to list as bus 0
pchb0 at pci0 dev 0 function 0
2008-07-21 11:51:59 +00:00
pooka
348d0d344d
Have a COW with fscow_run(). Fixes problem of allocating files
...
on ffs with indirect blocks.
found by simonb
2008-07-21 10:51:03 +00:00
pooka
4a0d2098e7
Repeat after me: do not pollute sys with #ifdef _RUMPKERNEL
2008-07-21 10:40:37 +00:00
drochner
df0247d05d
don't include i82365var.h, fixes build error, from Robert Swindells
2008-07-21 09:51:46 +00:00
matt
568e00fecc
Add PMAP_KMPAGE defintion (forgotten commit). Also add PVF_DIRTY which will
...
be used by an update pmap.c shortly (to note what pages may have dirty
cache lines).
2008-07-21 07:33:54 +00:00
bjs
e2ae9c7df8
Remove #ifdef __FreeBSD__ around DRM_UPDATE_DRAW ioctl, as we have drawable
...
code (and if it does not work, we must make it work!).
Add missing entry for DRM_MODESET_IOCTL.
2008-07-21 07:18:11 +00:00
pooka
cb5ae8f020
Call mountpoint VFS_FSYNC() from specfs fsync.
...
Makes rump kern/38057-happy.
2008-07-21 00:08:30 +00:00
martin
1f71bc27ce
Fix previous.
2008-07-20 22:57:19 +00:00
pooka
655d81c21a
Make the user-namespaced rumpuser_cv_has_waiters() of type int
...
instead of bool to avoid unnecessary problems in trying to provide
the bool type.
2008-07-20 19:03:04 +00:00
martin
4956be1f47
Make struct pcib_softc explicit in our softc.
2008-07-20 17:18:21 +00:00
martin
f3b6f1bea8
Explicitly add struct pcib_softc to the softc since the pcib functions
...
we call expect this.
2008-07-20 16:59:53 +00:00
martin
d2849ba366
Rearange softc so it starts with a struct pcib. We reuse the x86 pcib code
...
which assumes this.
2008-07-20 16:52:33 +00:00
martin
e394f32ae0
Make the softc externally visible, so other bridges reusing this code
...
don't have to "get it right" manually.
2008-07-20 16:50:29 +00:00
tsutsui
1a160ac866
Specify volatile to some pointers to access DMA registers.
2008-07-20 16:35:27 +00:00
tsutsui
471f4d63c3
No need to specify '&' to get array's address.
...
No binary changes.
2008-07-20 16:28:24 +00:00
tsutsui
b55114eae7
Fix pointer arithmetic botch in rev 1.37.
2008-07-20 16:23:38 +00:00
pooka
83548151e2
assert -> KASSERT
2008-07-20 16:18:13 +00:00
pooka
0217e22507
You must untypo what you have typoed: rumpnode_if.h -> rumpvnode_if.h
2008-07-20 16:14:22 +00:00
he
6512b04025
The build options for the library parts are mostly located in this
...
file. So, in order to better support UPDATE builds, add a dependency
on this file for object files in subdirectories using this file.
2008-07-20 15:56:44 +00:00
blymn
762e875434
Add locking around veriexec operations to prevent all sorts of badness
...
happening. This fixes kern/38646.
2008-07-20 08:50:20 +00:00
bjs
616225d114
add forgotten initialization/destruction for tsk_lock.
2008-07-20 03:02:22 +00:00
bjs
e63e7d81db
Add a forgotten mtsleep().
2008-07-20 02:58:40 +00:00
uwe
e58a3edb13
When doing pointer arithmetic to compute limit cast bootp to pointer
...
type of correct signedness. Caught by lint.
2008-07-20 02:06:37 +00:00
martin
41198d5648
Make sure callouts are initialized before any access (including stopping
...
them)
2008-07-20 01:05:27 +00:00
jmcneill
a9b5dcaa70
ioctl compatibility for v4l2 and drm
2008-07-19 23:01:52 +00:00
mrg
8754a8144b
move an XXXNETBSD along with the assignment that moved
2008-07-19 22:23:14 +00:00
mrg
f9c3ff3858
merge cornflakes from git-change-04893aa99abfbed8eb6d7067a974fa1f31193c87.
2008-07-19 22:22:17 +00:00
mrg
acf7df4527
fix a merge error
2008-07-19 22:14:13 +00:00
mrg
b0c27870b5
merge cornflakes from git-change-04893aa99abfbed8eb6d7067a974fa1f31193c87.
2008-07-19 22:10:09 +00:00
mrg
60c992bef9
import mesa-drm git at change 04893aa99abfbed8eb6d7067a974fa1f31193c87.
2008-07-19 22:05:02 +00:00
jmcneill
a8309870a5
Pull in agp_i810.h so the agp borrow hack works on i915drm.
2008-07-19 20:08:39 +00:00
jmcneill
e3f4f88866
PCI_PRODUCT works on pa_id, not pa_device
2008-07-19 17:45:53 +00:00
bjs
61ffbe1fec
dev->pci_device should be assigned PCI_PRODUCT(pa->pa_id), not the id
...
itself.
2008-07-19 17:44:14 +00:00