Commit Graph

171225 Commits

Author SHA1 Message Date
cube
aa5a552a2f Apply a similar patch as what was just applied to sk(4):
> Use a mutex instead of splvm() to protect the list of jubo-ready mbufs, as
> done with nfe(4) a while ago.
>
> Issue reported by Gary Duzan, who kindly fixed the patch I had sent him.

Lars Nordlund noted that such a change made things a lot better with his
msk(4).
2008-06-20 16:45:13 +00:00
cube
0ec953c973 Use a mutex instead of splvm() to protect the list of jubo-ready mbufs, as
done with nfe(4) a while ago.

Issue reported by Gary Duzan, who kindly fixed the patch I had sent him.
2008-06-20 16:28:36 +00:00
christos
5e865a2f1b Also enforce that cm->cmsg_len >= CMSG_ALIGN(sizeof cmsghdr), from
Michael van Elst
2008-06-20 15:27:50 +00:00
yamt
86a4e26fc8 add a default for ftp_proxy as reminded by Geoff Wing and others. 2008-06-20 15:21:56 +00:00
christos
db982eb35b Don't require cm->cmsg_len == control->m_len, just that the cm->cmsg_len
<= control->m_len, like FreeBSD does. Idea from Taylor R Campbell.
2008-06-20 15:18:38 +00:00
christos
fcf1d86b3e add CMSG_ man pages. 2008-06-20 14:39:28 +00:00
christos
6fe0bc9474 and adjust it to our liking. 2008-06-20 14:35:10 +00:00
christos
0a69cbb3fd steal the OpenBSD man page. 2008-06-20 14:34:20 +00:00
njoly
72a97d4bed Do not return 0 for unsupported/unknown futex operations, but ENOSYS
instead. From Roman Divacky in private email.
2008-06-20 11:38:26 +00:00
njoly
d1a60f16f0 Fix futex locking. Move all locking to linux_sys_futex function, and
KASSERT that futex_{get,put,sleep,wake} are now called with lock held.
2008-06-20 11:31:40 +00:00
cegger
779448ef9d make an i386 ALL kernel build again 2008-06-20 09:15:39 +00:00
bjs
16e84d5575 - Don't use btop, as only three (?) platforms define this macro; use
round_page(x) >> PAGE_SHIFT instead.

- Add bus_space_mmap() in drm_vm.c to give a proper cookie to the device pager;
  this gets rid of one of the two #ifdef macppc conditionals.
2008-06-20 05:53:46 +00:00
jmcneill
0814e53527 Don't try to standby on a lid_switch pressed event, this has a few problems:
1. ACPI S1 doesn't work properly for many people on NetBSD
  2. It prevents someone from using their laptop with an external display
2008-06-20 02:38:00 +00:00
bjs
6c1a2fee8f - Use the extent manager to track mappings and provide sane offset
"cookies" for mmap.  Now the radeon driver works on amd64!

- Use bus_dma for nearly all map types (carried over from prior patch).

- Plug some lock leaks in drm_bufs.c and remove superfluous locking in
  drm_add_magic() (from git).

- Lower spl of mutexes to IPL_NONE (and so are now adaptive instead of
  spin mutexes), save for irq_lock which is a spin mutex at IPL_VM.
  Use mutex_spin_enter()/mutex_spin_exit() for irq_lock.

ok jmcneill@
2008-06-20 00:14:28 +00:00
skd
4537375ada add NULL arg so it will compile. 2008-06-20 00:07:47 +00:00
skd
8ec4d769f6 add arg so it will compile. 2008-06-19 23:57:22 +00:00
dyoung
36a64e2edd Note a defect in 802.11 Duration field calculations. 2008-06-19 23:13:10 +00:00
christos
13a3f67856 - setting the birthdate is valid in setattr.
- don't call nanotime if not needed.
- don't call tempfs_update() if tempfs_chtimes succeeded, because it just did.
2008-06-19 19:03:44 +00:00
spz
90df535e38 TIAS added as suggested by ASau @irc.freenode.net 2008-06-19 18:47:16 +00:00
imp
e8fe37647b Sync to pcmciadevs 1.226 2008-06-19 18:21:32 +00:00
imp
1bb3b88db9 Add in OLICOM cards from FreeBSD's pccarddevs table:
GoCard Ethernet (aka OC-2220)
    GoCard Combo Eth/Modem 28.8 (aka OC-2231)
    GoCard Combo Eth/Modem 33.6 (aka OC-2232)
    GoCard Combo Token Ring 16/4 Modem 28.8 (aka OC-3231)
    GoCard Combo Token Ring 16/4 Modem 33.6 (aka OC-3232)
2008-06-19 18:20:33 +00:00
christos
d83ff0cd7b an attempt at linux32_ioctl_socket(). 2008-06-19 16:09:25 +00:00
tsutsui
5bbd2ba098 Unify splraiseipl(9) implementation among m68k ports as per
suggestion from isaki@ on port-m68k.

For mac68k:
- rename mac68k_ipls[] to common ipl2psl_table[]
- make makeiplcookie() return PSL bits via ipl2psl_table[]
  rather than IPL_FOO indexes
2008-06-19 13:56:22 +00:00
reinoud
45881dadc7 Remove superfluous crc and checksum calculations when we are already post
processing it later on writeout.
2008-06-19 13:35:26 +00:00
reinoud
bdd973a499 Allow UDF versions to be both specified as a hex value and as a float
value. Its now possible to specify version 2.50 as "2.50" or "0x250".
2008-06-19 13:20:09 +00:00
yamt
0e55735f01 - ./usr/libdata/debug/usr/libexec/ftp-proxy.debug
+ ./usr/libdata/debug/usr/sbin/ftp-proxy.debug
+ ./usr/libdata/debug/usr/libexec/tftp-proxy.debug
2008-06-19 13:07:37 +00:00
reinoud
ea583bb523 Don't keep a running pointer but calculate directly the data offset to
prepare for factoring out.
2008-06-19 12:33:54 +00:00
hans
58cba3df2d regen from syscalls.master r1.46 2008-06-19 12:29:34 +00:00
hans
c1b31bd183 include <sys/sched.h> for cpuset_t 2008-06-19 12:28:12 +00:00
hans
372b2ea344 regen from syscalls.master r1.35 2008-06-19 12:27:04 +00:00
reinoud
f0ae557b3d Move extended attribute header creation from VAT to all (non-extended) file
descriptor creations.
2008-06-19 12:24:58 +00:00
hans
3a83008141 include <sys/sched.h> for cpuset_t 2008-06-19 12:24:22 +00:00
reinoud
16c8051218 If the written out descriptor contains a file descriptor or an extended
file descriptor, update the location of the extended attribute space if
present.
2008-06-19 12:23:01 +00:00
reinoud
a0bade49b0 Clarify hack to move LVID sequence forward if there are bad blocks there
since the automatic bad block skipping is not yet done.
2008-06-19 10:25:51 +00:00
reinoud
fd86ec116b Fix commentZ 2008-06-19 10:23:31 +00:00
yamt
839ed64d14 terminate yamt-pf42 branch. 2008-06-19 03:38:44 +00:00
yamt
957749de49 remove pf42 branch's todo. 2008-06-19 03:37:57 +00:00
yamt
02456234a7 4.99.66 - yamt-pf42 branch merge 2008-06-19 03:37:14 +00:00
yamt
e4be4fcd58 add nvi.debug 2008-06-19 03:35:58 +00:00
njoly
996306675b Output linux ptrace request name for processes under compat linux32
emulation too.
2008-06-18 23:04:52 +00:00
njoly
9cbea9441c linux32_sys_ptrace() fixes.
- Add opt_ptrace.h include to activate syscall.
- Convert to use sys_ptrace() instead of netbsd32_ptrace().
- Do not use arch specific call for now.
2008-06-18 22:58:21 +00:00
reinoud
9d15fe5137 Cleanup file access,modification,attribute and birthtime setting of files
and make the modification time when set never older than the creation time.
2008-06-18 21:23:32 +00:00
mlelstv
8b80c3645f reassignbuf() is called by bdirty() from within biodone processing.
It can have waiters.
2008-06-18 18:11:25 +00:00
simonb
2096a94df7 Remove the LOCKDEBUG panic from simonb-wapbl notes. 2008-06-18 17:51:38 +00:00
simonb
b1b7b9244d Add another issue for simonb-wapbl - LOCKDEBUG panic. 2008-06-18 17:08:40 +00:00
jmcneill
065296bfe0 USB video class definitions, from Patrick Mahoney for GSoC 2008. 2008-06-18 14:20:31 +00:00
simonb
9a0aeead13 Update simonb-wapbl scope so that src/ is prefix for all affected
directories, not just the last one.
2008-06-18 13:31:24 +00:00
tsutsui
12a1eea55d Make this compile. 2008-06-18 12:25:13 +00:00
tsutsui
4482e41e15 Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t. 2008-06-18 12:24:17 +00:00
tsutsui
5ff92ba4da Regen from syscalls.master rev 1.62:
> Include <sys/sched.h> before <sys/syscallargs.h> for cpuset_t.
2008-06-18 12:23:06 +00:00