Commit Graph

186539 Commits

Author SHA1 Message Date
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
pooka
eb2ef0c632 Use RUMP_ACTION to avoid having to specify the same information
in the Makefiles of all the consumers.
2009-12-19 15:03:34 +00:00
ahoka
67bcc5b200 Remove the notice about pfsync not being supported, as we have it now. 2009-12-19 14:05:53 +00:00
tsutsui
f2aff26797 Move declaration of lwp_trampoline() into <m68k/m68k.h>. 2009-12-19 13:08:26 +00:00
tsutsui
a63e99e26f Remove extern struct pcb *curpcb declaration. Now it's in <m68k/pcb.h>. 2009-12-19 12:31:34 +00:00
pooka
c3ed0371c2 Replace totally handwritten ioconf.c with only a semi handwritten
one, partially now generated with config(1).
2009-12-19 11:55:23 +00:00
pooka
af0de61919 get rid of unnecessary headers 2009-12-19 11:48:30 +00:00
pooka
13d2acdf04 define USBVERBOSE 2009-12-19 11:48:17 +00:00
pooka
e46bf87952 Don't impose a compile-time dependency on the kernel containing
ohci/uhci just for the sake of setting a debug variable.
2009-12-19 11:41:56 +00:00
pooka
b90ec0f9fd purge some stuff not used by this component anymore 2009-12-19 11:29:26 +00:00
tsutsui
72c76c73d8 Disable "fast trap" handlers which invoke software interrupts
in sparc/amd7930intr.s and sparc/bsd_fdintr.s until they are
rewritten to adapt new MI softint(9) API.

No particular comments on PR port-sparc/42192, but
this fixes timeout problem on floppy access on my SPARCstation 1+.

XXX: floppy support on sun4m seems to have another problem (data overrun).
2009-12-19 10:34:18 +00:00
tsutsui
ba6eca2794 Use %zu for size_t, not %zd. 2009-12-19 10:27:13 +00:00
thorpej
af02a11623 Add some definitions, from FreeBSD. 2009-12-19 09:02:46 +00:00
thorpej
4c040305d0 Fix a typo. 2009-12-19 09:01:32 +00:00
thorpej
80a94d172a Add some range checks to quiet warnings. 2009-12-19 09:00:56 +00:00
thorpej
83ba8dcb86 We don't have an Elf_Note typedef, but Elf32_Nhdr and Elf64_Nhdr are
equivalent; use Elf32_Nhdr instead.
2009-12-19 08:47:46 +00:00
thorpej
e55f728904 Fix all sorts of problems with lint and compiler warnings. 2009-12-19 08:40:57 +00:00