Commit Graph

186555 Commits

Author SHA1 Message Date
njoly
a82811a116 Remove SYS_compat_50_mq_timedreceive/SYS_compat_50_mq_timedsend
duplicate entries.

Fix a KASSERT when unloading the compat kernel module.
2009-12-21 15:13:13 +00:00
christos
7b9eb38d5c Remove unnecessary casts. 2009-12-21 12:44:48 +00:00
nonaka
2d1090dc2d Added dmesg, mount_msdos. 2009-12-21 11:22:41 +00:00
nonaka
7fea745bdc comment out KLOADER. 2009-12-21 11:20:07 +00:00
wiz
8bdb893510 Free pt in another error case.
Found by Henning Petersen using cppcheck, in PR 42488.
2009-12-21 09:17:37 +00:00
mbalmer
0b145a4077 Fix synopsis to make it clear that at least one lladdr is required. 2009-12-21 08:42:39 +00:00
christos
0283f36219 PR/42486: Ed Ravin nfsd sometimes exits prematurely during port-scan fix
from freebsd bin 61084 applied (preserving errno properly). The accept
code should be merged.
2009-12-21 05:06:55 +00:00
thorpej
a2307e2ec3 - _libelf_globals::libelf_arch and _libelf_globals::libelf_class are
completely unused.  Remove them.
- _libelf_globals::libelf_byteorder is really all about the byte order of
  the host running libelf, so replace it with a _libelf_host_byteorder()
  internal function that computes the host byte order in a very portable
  way (doesn't rely on BSD-specific header files).
2009-12-20 23:23:46 +00:00
rmind
4fff15550a Add comment about locking. 2009-12-20 23:00:59 +00:00
mrg
9a7ae38999 remove dated and wrong comments about curlwp being NULL.
_kernel_{,un}lock() always assume it is valid now.
2009-12-20 20:42:23 +00:00
christos
3acd53d157 add libelf 2009-12-20 20:15:07 +00:00
mrg
6879cbdf8e create the ecoff copy of the install kernel so the prom can boot it.
from PR 39915.
2009-12-20 19:53:36 +00:00
pooka
ea5f9a0f11 Add a simple terminal program which uses a rump kernel for a ucom@usb
terminal and host terminal stdin/stdout for human interaction.
Tipsy just simply shovels bits between the two.  I can use my
JavaStation Krups (*) serial console with this ... without having
to worry abort those pesky usb drivers crashing my desktop kernel.

*) strictly speaking it's uwe's ;)
2009-12-20 19:50:29 +00:00
pooka
a942008121 Include tty driver here for now to make this usable. Will disappear
from here later when I figure out the proper place.
(I'd commit it as a separate component, but I can't figure out how
to classify it, since it's logically none of vfs/net/dev)
2009-12-20 19:44:21 +00:00
mrg
204f6553a5 PRIVATE_VERSION(arch) isn't ever used, so don't try to setup this member
of _libelf{}.  ELF??_MACHDEP_ID may not be defined if ELFSIZE wasn't
defined before including this file.

this fixes a build error on mips platforms.
2009-12-20 19:38:13 +00:00
pooka
f015d3c5a1 Add a pointing to an explanation of why we have #ifdef pmax stuff in here. 2009-12-20 19:06:44 +00:00
dsl
795733c59e Add a large comment about disk geometries.
Rename (with #defines) the variables use for aligning partitions to
separate them from the bios geometry.
All in advance of allowing other partition alignments (eg 2048 sectors).
2009-12-20 17:32:09 +00:00
jruoho
e050282388 Add myself. 2009-12-20 16:59:39 +00:00
pooka
70b07cba47 +libulpt 2009-12-20 15:43:57 +00:00
pooka
fe1700b9bf Add ucom@usb support. This uses the uplcom hardware driver currently
(because that's the hardware I happen to have), but others can just
be plugged in if a need arises.
2009-12-20 15:43:13 +00:00
pooka
2960de1123 Improve bulk transfer implementation by adding more complete
support for short reads.

Ironically, in some cases this works *worse* than the previous
incorrect implementation which silently ignored short reads.
Namely, I can now probe my sd@umass USB stick only once without
having to replug it.  Some ugen "bus reset" is probably needed,
but what exactly is unknown, and manual handjobs will have to
suffice for now.
2009-12-20 15:32:46 +00:00
dsl
e9c65c5007 Push the mount path for mount_mfs through realpath().
This matches what other fs do.
Fixes PR/20362
2009-12-20 15:21:13 +00:00
pooka
3a5d99a092 add comment about prospective perils to previous 2009-12-20 13:56:36 +00:00
pooka
3b2dd63c4d pthread_cond_timedwait (and therefore rumpuser_cv_timedwait) wants
an absolute time instead of a delta.  Fix bug which caused timed
tsleeps to always wake up immediately (unless the system clock was
around "0", which was not very probable ;).
2009-12-20 13:49:36 +00:00
kiyohara
414776980d Set filter at lan9118_init() and lan9118_ioctl with SIOCSIFFLAGS. 2009-12-20 10:57:35 +00:00
dsl
2a54322c7b If a multithreaded app closes an fd while another thread is blocked in
read/write/accept, then the expectation is that the blocked thread will
exit and the close complete.
Since only one fd is affected, but many fd can refer to the same file,
the close code can only request the fs code unblock with ERESTART.
Fixed for pipes and sockets, ERESTART will only be generated after such
a close - so there should be no change for other programs.
Also rename fo_abort() to fo_restart() (this used to be fo_drain()).
Fixes PR/26567
2009-12-20 09:36:05 +00:00
thorpej
cf9dd0698e Add libelf files. 2009-12-20 05:53:34 +00:00
thorpej
d04120af38 Build libelf. 2009-12-20 05:52:41 +00:00
thorpej
acdbfc25c4 Enable __LIBELF_HAVE_ELF_SYMINFO. 2009-12-20 05:52:15 +00:00
thorpej
c6b51a6f4e Add defns for Elf{32,64}_Syminfo. 2009-12-20 05:50:20 +00:00
rmind
3c74cdf150 signal(9) code: add some comments, improve/fix wrong ones. While here, kill
trailing whitespaces, wrap long lines, etc.  No functional changes intended.
2009-12-20 04:49:09 +00:00
rmind
c628fa1620 Fix few problems in evbmips/rmixl:
- mach_init: use mips_init_lwp0_uarea(), do not hardcode it.  Do not call
  ksyms_init(), it's called in MI.  Also, avoid struct user in few places.
- findroot: use deviter interface.
2009-12-20 04:11:37 +00:00
mrg
749956a4dc - remove unused ft_want_ast()
- give nmi_sun* ENTRY() points so they show up in symbols properly
- add some disabled code to use this cpu's idlelwp area when hatching
  a cpu, but right now it makes this worse not better...
2009-12-20 03:53:46 +00:00
mrg
9d650f3d7e make CPU_INFO_FOREACH() set the iterator count to '0' in the !MP case. 2009-12-20 03:50:56 +00:00
mrg
c332dfdee7 fix the previous to compile !MULTIPROCESSOR. 2009-12-20 03:48:30 +00:00
mrg
8888866b57 minor KNF. 2009-12-20 03:42:29 +00:00
mrg
dccf550f1b - add a diagnostic to ensure that cpus[0] == cpu0's cpu_info->ci_self
- if a cpu doesn't have any mappings allocated, don't copy them.  this
  occurs if a cpu isn't attached (such as a MP kernel with only "cpu0"
  listed in the config file..)
2009-12-20 03:41:49 +00:00
rmind
c08a629cfd Slightly improve the comment. 2009-12-20 03:40:27 +00:00
mrg
12976024a5 add per-cpu event counters for lev10 and lev14 interrupts.
add some disabled MP code to poke other cpus on level 14 interrupts.
2009-12-20 03:40:03 +00:00
mrg
afdc456987 add per-cpu event counters for lev10 and lev14 interrupts. 2009-12-20 03:38:59 +00:00
wiz
16aa486655 Sort ERRORS. 2009-12-20 02:16:40 +00:00
nakayama
89f2cb29c8 Add xref to ofctl(8). 2009-12-19 23:10:57 +00:00
pooka
0a9d896555 Remove note about portability, since PF_UNSPEC will cause socketpair()
to EAFNOSUPPORT on NetBSD(!).  Additionally, at least slowaris and
linux talk only about PF_LOCAL.  Finally, since I'm reading a NetBSD
man page, I foremost care about the code working on NetBSD.
2009-12-19 23:00:10 +00:00
martin
cecef5e6d5 Use the kernel space version of the vfs name, not the original userspace
pointer. Avoids crashes on archs with completely separate userspace VA.
2009-12-19 20:28:27 +00:00
ahoka
07b3322423 Hide the cursor during the game. 2009-12-19 19:27:53 +00:00
pooka
817cd31541 Don't export __ffstab, it's used only in this routine. This gets
rid of one of those evil common symbols in the __ namespace.

reviewed by martin
2009-12-19 19:09:48 +00:00
rmind
ebd0ab14ab sigtimedwait: fix a memory leak (which happens since newlock2 times).
Allocate ksiginfo on stack since it is safe and sigget() assumes that it is
not allocated from pool (pending signals via sigput()/sigget() "mill" should
be dynamically allocated, however).  Might be useful to revisit later.

Likely the cause of PR/40750 and indirect cause of PR/39283.
2009-12-19 18:25:54 +00:00
tsutsui
c0bd792af4 Move declaration of setfunc_trampoline() into <m68k/m68k.h>. 2009-12-19 18:06:51 +00:00
christos
c32b972e5f Put the CPPFLAGS in a separate Makefile.inc so that all the defines are
visible in the LIB build. Fixes problem with X11BASE and readpass.c
2009-12-19 18:00:26 +00:00
pooka
0f5249be8d Use CMSG_SPACE() for buffer when receiving file descriptors.
Doesn't break i386 and might be better for sparc64.
2009-12-19 16:01:25 +00:00