Commit Graph

100132 Commits

Author SHA1 Message Date
pooka
fae90815de Do not include securelevel, it includes too many dependencies on
vfs in its current form.
2009-05-02 14:16:52 +00:00
pooka
fb42667d02 Move dovfsusermount from vfs_syscalls.c to param.c: secmodel bsd44
depends on it and we can't isolate it in vfs.
(no, it doesn't really belong in param.c, but I couldn't figure out
a better place for it)
2009-05-02 14:13:28 +00:00
pooka
45ef580f17 Merge librumpfs_ufs into librumpfs_ffs. This reflects what happened
with the ffs kernel module and follows the trend of retiring ufs.
It also allows to get rid of a special case kludge in runtime module
loading, since ufs was not really a module.  librumpfs_ufs is now
obsoleted and ffs consumers should be linked solely against
librumpfs_ffs.
2009-05-02 01:15:52 +00:00
dyoung
aaa0eb2937 Use device_t, cfdata_t, device_private(). 2009-05-01 20:43:41 +00:00
pooka
6b398beab3 in case of error, return instead of continuing 2009-05-01 11:01:34 +00:00
pooka
4f521cc9ba fix editing artifact 2009-05-01 11:00:49 +00:00
cegger
287d5dd11d struct device * -> device_t 2009-05-01 09:38:24 +00:00
cegger
7298f44f6a - struct device * -> device_t
- remove useless parenthesis
2009-05-01 09:26:34 +00:00
cegger
827656cbc1 struct device * -> device_t 2009-05-01 09:20:02 +00:00
cegger
f2c0b025dc remove useless parenthesis 2009-05-01 08:27:41 +00:00
cegger
85834d03a8 add ale(4) 2009-05-01 06:25:50 +00:00
martin
6a887ea20a Add missing paranthesis - from Kurt Lidl in PR port-vax/41316 2009-05-01 03:23:39 +00:00
martin
cb13eee90c Add missing braces - patch from Kurt Lidl in PR port-vax/41314. 2009-05-01 03:18:20 +00:00
nonaka
a6a538b335 compile again. 2009-05-01 00:15:57 +00:00
dyoung
ee9d8d96c8 Straggler from last vnd(4) commit: #define VNF_CLEARING. 2009-04-30 22:36:10 +00:00
ad
922436b4c6 PR kern/41311: Mutex error: mutex_vector_enter: locking against myself 2009-04-30 20:41:33 +00:00
dyoung
662437b2c3 Remove extraneous parentheses. Fix spelling/grammar. No functional
change intended.
2009-04-30 20:39:08 +00:00
dyoung
c968789de1 Flesh out vnd_detach(). Let the system detach vnd(4) at shutdown. Stop
vnd_ioctl(VNDIOCCLR) from racing with vndopen() to call vndclear().
2009-04-30 20:34:08 +00:00
elad
3c1f169a59 Commit changes to netinet6/in6_src.c, forgot in previous commit:
http://mail-index.netbsd.org/source-changes/2009/04/30/msg220547.html

Make in_pcbsetport() set the port number selected before passing "sin" to
kauth(9).
2009-04-30 20:26:09 +00:00
skrll
2418e09480 Correct some CPU ifdefs so that a HP7100_CPU only kernel should compile. 2009-04-30 20:10:31 +00:00
skrll
fdba187b53 Remove if defined(HP7100LC_CPU) || defined(HP7300LC_CPU) from around
pmap_hptsize and pdc_hwtlb (for now).
2009-04-30 19:15:18 +00:00
elad
ddcbe0e1dd - Make in6_pcbbind_{addr,port}() static
- Properly authorize port binding in in_pcbsetport() and in6_pcbsetport()

- Pass struct sockaddr_in6 to in6_pcbsetport() instead of just the address,
  so that we have a more complete context

- Adjust udp6_output() to craft a sockaddr_in6 as it calls in6_pcbsetport()

- Fix an issue in in_pcbbind() where we used the "dom_sa_any" pointer and
  not a copy of it, pointed out by bouyer@, thanks!

Mailing list reference:

	http://mail-index.netbsd.org/tech-net/2009/04/29/msg001259.html
2009-04-30 18:18:34 +00:00
pooka
90b68ff919 remove outdated comment 2009-04-30 17:43:07 +00:00
pooka
580ab7a0ba print succinctly 2009-04-30 17:41:41 +00:00
pooka
d03c5f2304 Stir up the stack a bit to help arc4random() decide on a more
"random" seed.  This is a quick hack, I'll play games with rnd(9)
later (no nethack).
2009-04-30 16:59:32 +00:00
dyoung
b44d7cdf40 Fix spelling. if( -> if (. No functional change intended. 2009-04-30 16:38:12 +00:00
dyoung
114a99200c Use NULL instead of (type *)0. Delete extraneous parentheses. No
functional change intended.
2009-04-30 16:07:50 +00:00
skrll
af6031b09f Move HPPA_SID_KERNEL into pmap.h and deal with the move. 2009-04-30 15:34:24 +00:00
skrll
c5ea9b9669 Update to deal with the new hppa pmap. 2009-04-30 15:31:16 +00:00
skrll
d560aa564f +#include <sys/atomic.h> 2009-04-30 15:30:55 +00:00
skrll
51d0553d6a Regen (again) 2009-04-30 15:14:49 +00:00
skrll
6cc4b39756 Add another NS product found in hppa machines. 2009-04-30 15:13:58 +00:00
skrll
9763c0c6d8 Regen. 2009-04-30 15:07:44 +00:00
skrll
c026dcb4aa Add the National Semiconductor PC87560 Legacy IO chip on systems with
PA-8500 and later 64-bit CPUs.
2009-04-30 15:03:30 +00:00
tsutsui
0cd2869469 Add necessary files for build.sh -m rs6000 release.
Based on PR port-powerpc/40421 from Wojciech Galazka,
with misc tweaks by me.

Note sysinst part is not pulled because there is
no supported storage device yet on this port.
2009-04-30 12:47:39 +00:00
skrll
31880cf1d1 Another file missed by me / cvs in the nick-hppapmap merge. 2009-04-30 07:08:39 +00:00
skrll
0608921b49 Somehow these were missed by me / cvs in the nick-hppapmap merge. 2009-04-30 07:03:12 +00:00
skrll
8516d55745 Merge nick-hppapmap.
This is a port of the OpenBSD pmap and trap handling code to get us

        - Performance boost on some/all machines.
        - Well on the way to PA2.0 (in 32bit mode) support. Several
          machines probe hardware, but fail sometime after interrupts
          are enabled.

Other things changed / fixed on the branch are

        - update autoconf to use the OpenBSD code.
        - com @ dino is very close to being supported.
        - HPPA_REDZONE has been replaced with a working redzone which
          is enabled with DIAGNOSTIC.
        - UPAGES has been halved in size.
        - power(4) from OpenBSD to fix a few bugs.
        - updated list of modules from OpenBSD.
	- initial ports of uturn(4), astro(4) and elroy(4).
	- update some copyrights (remove advertising clause, etc.)

Thanks to mjf for some of the above, testing and listening.
2009-04-30 07:01:26 +00:00
nonaka
8ca2e6bcac Support SH7706 2009-04-30 05:20:30 +00:00
nonaka
3954731670 Added some register definition. 2009-04-30 05:19:38 +00:00
nonaka
3c6a17f5ff include sys/lwp.h for curlwp. 2009-04-30 05:15:36 +00:00
pgoyette
f10549404b Include cpu_topology.c for xen kernels, too. 2009-04-30 04:38:01 +00:00
rmind
cc8d7ff411 Move x86 CPU topology detection code into the separate file (as it was originally).
OK by <yamt>.
2009-04-30 00:07:23 +00:00
dyoung
82e9f91ec4 Add elansc_shutdown() for turning off the watchdog.
Don't try to unregister the watchdog in elansc_detach() if we are
shutting the system down, because unregistering is designed to fail if
the watchdog is armed.
2009-04-29 23:50:53 +00:00
dyoung
458342a90c Delete dead code. 2009-04-29 23:18:09 +00:00
elad
69db27dc69 Replace open-coded vaccess() in ntfs_access() with a call to vaccess().
Similarly to msdosfs, always add the exec bit to keep the current
behavior.

Mailing list reference:

    http://mail-index.netbsd.org/tech-kern/2009/04/21/msg004881.html
2009-04-29 22:33:33 +00:00
jym
01d8525951 Do not forget to detach rnd(4) device when removing a xennet device.
Ok by bouyer@ in private mail.
2009-04-29 22:21:49 +00:00
pooka
a22ec3808b Add proof-of-concept code for enabling system calls to rump virtual
kernels running in other processes on the same machine or on an
entirely different host.  I wrote this a while ago and am now
committing it mainly to avoid losing it.  It works, but could do
with a little tuning here and there.

What this will hopefully eventually buy us is the ability to use
standard userland tools to configure rump kernels, e.g. ifconfig(8)
and route(8) could be used to configure the networking stack provided
by a rump kernel.  Also some distributed OS implications may apply.

fun fact: a system call which just does copyin/copyout takes >1000x
longer when made over the LAN as compared to when made on the same
machine.
2009-04-29 17:51:47 +00:00
pooka
c51cd914ad Add enough support to be able to create directories and perform
lookups through them.  This has two implications:

1) mountpoints can be created directly onto the rump rootfs.
   this is benefitial in test programs where we want the same
   program to be easily switched between testing against rump and
   testing against the host kernel.
2) fakeblk must be used (it used to work implicitly) to register
   block devices that should be used from the host fs namespace.
2009-04-29 16:05:41 +00:00
pooka
e479d47c73 include proc0 in allproc 2009-04-29 15:49:28 +00:00
pooka
ab0d880435 Use cwdinit() for proc0's cwdi. 2009-04-29 15:49:01 +00:00
dyoung
dfec23a174 Extract vfs_unmountall1() from vfs_unmountall() for reuse. 2009-04-29 15:44:55 +00:00
tsutsui
f6e36a0172 Pull some changes for newer chips from FreeBSD:
- pull MACSTAT and CMDSTOP quirks for 8168/8111 chips
- always set CPLUSCMD_PCI_MRW on reset
- set VLANSTRIP and RXCSUM_ENB bits on CPLUS register per if_capenable

Tested on 8111C and 8111D by several users, and
no bad side effect on my old 8169S.
2009-04-29 15:10:57 +00:00
pooka
fd43b78759 catch locking-against-oneself already when taking the lock 2009-04-29 14:58:50 +00:00
njoly
7e5810aafc Attach 82801IEM LPC Interface Bridge too. 2009-04-29 14:55:36 +00:00
pooka
986e36ad6d replace outdated comment. no functional change 2009-04-29 11:01:50 +00:00
martin
85a5535229 Add missing prototype for vfs_mountalloc(). 2009-04-29 10:46:46 +00:00
skrll
c90e89c311 Don't panic in dino_intr_disesablish. Just note that it needs to be
implemented for now.

Stop gap fix for PR/41295.
2009-04-29 07:14:58 +00:00
dyoung
3e0a641f96 Extract common code from vfs_rootmountalloc(9) and mount_domount() into
a new struct mount-allocation routine, vfs_mountalloc(9).  Documentation
updates will follow.

Attention: Synchronization Oversight Committee!  In mount_domount(),
I postpone the call mutex_enter(&mp->mnt_updating) until right before
the VFS_MOUNT(9) call because (1) that looks to me like the earliest
possible opportunity for mp to become visible to any other LWP, because
it was just kmem_zalloc(9)'d and (2) it made extracting the common code
much easier.  Tell me if my reasoning is faulty.
2009-04-29 01:03:43 +00:00
dyoung
b99ed0004a Let this build even if 'no options INET'. 2009-04-28 23:05:25 +00:00
dyoung
d446e68bf2 Use device_t, cfdata_t, and device_private(). 2009-04-28 22:43:50 +00:00
dyoung
a82ec647f5 Let this build with 'no options INET'.
(I don't know why I bothered, either.)
2009-04-28 21:26:51 +00:00
dyoung
5c35d469c9 Cosmetic: remove unnecessary parentheses. 2009-04-28 20:56:40 +00:00
dyoung
9777865b42 Extract sockaddr_any_by_family() from sockaddr_any() for looking up a
wildcard ("any") address by protocol family instead of by sockaddr.
2009-04-28 20:54:50 +00:00
skrll
15c5c4397e copyin the modctl_load_t for the non-x86 world. Fixes PR/41294. 2009-04-28 17:57:00 +00:00
ginsbach
6be6867d6d Regen for Mellanox additions. 2009-04-28 14:32:43 +00:00
ginsbach
ea30fa5024 Add Mellanox Technologies Infiniband devices. 2009-04-28 14:27:16 +00:00
pooka
fa938330cb Free uao lock when destroying object. Fixes tmpfs rename leak
reported by njoly.
2009-04-28 14:00:42 +00:00
tsutsui
da88f224b7 Remove magic reset sequence except wakeup for rev 2 chips which breaks 8111D.
Problem reported and fix confirmed by Thomas Bieg on current-users.

Also tested on 8111C (no bad side effect) by several users privately.
2009-04-28 13:25:17 +00:00
cegger
a4aa7dace4 on detach, deregister from pmf 2009-04-28 11:49:15 +00:00
cegger
9bb7df81f0 on detach, deregister from pmf and free resource 2009-04-28 11:47:56 +00:00
cegger
18c8862fdc sprintf -> snprintf 2009-04-28 05:44:43 +00:00
yamt
a6f64ec082 do_sys_utimes: fix a bug introduced by rev.1.367.
VA_UTIMES_NULL is in va_vaflags, not va_flags.
2009-04-28 03:01:15 +00:00
cegger
da38c1360b sprintf -> snprintf 2009-04-27 20:02:29 +00:00
pooka
8a514cd619 initialize async before use 2009-04-27 18:36:43 +00:00
tsutsui
9998edcec4 Wrap one more printf() with #ifdef DEBUG, which was missed on rev 1.52. 2009-04-27 14:52:50 +00:00
pooka
e5d3ecb4f1 * expand syncing logic into rumpuser, since it has more freedom on
how to do it (e.g. fsync_range)
* hash out O_DIRECT support.  it's the fastest method of safely operating
  on a file, but we can't currently autodetect support, so it's not
  enabled by default
* sprinkle more event counters
2009-04-27 14:28:58 +00:00
njoly
692b478fd5 Add IPC_64 support to all semctl(2) commands, following corresponding
compat linux change.
2009-04-27 13:24:18 +00:00
joerg
5cef834a23 Add commented out hpet@ichlpcib entry. 2009-04-27 12:02:10 +00:00
pooka
1a8a4475a6 avoid namespace collision. no functional change. 2009-04-26 22:26:59 +00:00
pooka
b12cf03935 Bump maximum number of outstanding async i/o's to 1024, 128 can
fill up really fast.
2009-04-26 21:39:10 +00:00
pooka
e2fddf883f * set syncdelay to 0 only if we don't have a syncer thread
* add some #if0'd debug code to unmount for printing event counters
2009-04-26 21:36:24 +00:00
pooka
e06cd50d97 Don't drop kernel lock twice inside same operation. 2009-04-26 21:30:43 +00:00
pooka
13bf8de01d prettyprint long line, no functional change 2009-04-26 20:45:37 +00:00
pooka
125fe29b5a fix uninitialized 2009-04-26 20:44:50 +00:00
pooka
aab61fc839 Fix getnano/microuptime to report actual uptime. 2009-04-26 20:41:24 +00:00
tsutsui
70dab57692 Always make local functions static. Local symbols are still preserved
on link by ld(1) with -X option on most ports for debug.
2009-04-26 16:17:08 +00:00
pgoyette
adaec344ee Catch up with recent changes to sys/proc.h (Hello, rmind!) 2009-04-26 14:37:03 +00:00
nonaka
35df2d384d fix build broken.
Pointed by Takeshi Nakayama.
2009-04-26 13:05:55 +00:00
uch
c519d37fde added error check. 2009-04-26 12:41:59 +00:00
cegger
2cae64a195 check error code from bwi_attach() 2009-04-26 10:45:19 +00:00
cegger
394d81abd5 fix error handling 2009-04-26 10:26:54 +00:00
cegger
57fb22a89c device_t/softc split 2009-04-26 10:07:48 +00:00
cegger
c6c48498e2 prepare device_t/softc split 2009-04-26 09:56:46 +00:00
cegger
32e56df1e0 u_intNN_t -> uintNN_t 2009-04-26 09:47:31 +00:00
cegger
60326e09a5 - Fix error handling in attachment
- use aprint_*_dev
2009-04-26 09:12:33 +00:00
cegger
1ab9e723df detach ohci on shutdown 2009-04-26 08:54:13 +00:00
cegger
c398d65d42 Fix error handling. 2009-04-26 08:46:10 +00:00
elad
03d23b4d6b Authorizing actions from the generic scope using a device scope wrapper
is a big no-no.

As painful as it is, use kauth_authorize_generic() for now.
2009-04-26 07:53:43 +00:00
nonaka
9445e9e796 Added some command definitions. 2009-04-26 07:21:13 +00:00