Commit Graph

165227 Commits

Author SHA1 Message Date
ad
a5b4bcb2d5 libpthread minor was bumped. 2007-12-24 14:48:23 +00:00
ad
989565f81d - Fix pthread_rwlock_trywrlock() which was broken.
- Add new functions: pthread_mutex_held_np, mutex_owner_np, rwlock_held_np,
  rwlock_wrheld_np, rwlock_rdheld_np. These match the kernel's locking
  primitives and can be used when porting kernel code to userspace.

- Always create LWPs detached. Do join/exit sync mostly in userland. When
  looped on a dual core box this seems ~30% quicker than using lwp_wait().
  Reduce number of lock acquire/release ops during thread exit.
2007-12-24 14:46:28 +00:00
smb
34da33dfe3 Add missing call to pmf_deregister() in the USB_DETACH routine. 2007-12-24 14:41:19 +00:00
ad
8f05f9cc26 Update. 2007-12-24 14:30:09 +00:00
njoly
0cebe57b9c Regen for getpgid. 2007-12-24 14:26:50 +00:00
njoly
122287e6f0 Add getpgid syscall. 2007-12-24 14:25:30 +00:00
njoly
24eca5e1f1 Regen for linux_sys_getpgid removal. 2007-12-24 14:21:40 +00:00
njoly
47bf9f4b4d Kill unneeded linux_sys_getpgid and use native sys_getpgid instead. 2007-12-24 14:17:17 +00:00
wiz
8caeef46da Sort options. 2007-12-24 13:56:00 +00:00
phx
66e67a4f6b Make USB, IEEE1394 and viaaudio attach to the Pegasos2.
USB works fine. IEEE1394 is untested. Audio doesn't work (playing white noise).
Need to set IO/MEM-enable for IEEE1394 and audio, as the firmware (Smart
Firmware 1.2) doesn't do it.
Patch approved by Tim Rightnour.
2007-12-24 13:54:58 +00:00
kiyohara
51311b8619 Remove white-spaces. 2007-12-24 07:54:26 +00:00
yamt
d336796b0b yamt-kmem: todo 2007-12-24 05:26:34 +00:00
macallan
7500033ffa check for __HAVE_PRIVATE_PCI_BUS_DMA_TAG instead of macppc when (not)
declaring pci_bus_dma_tag
while there move #include <machine/isa_machdep.h> to the ISA block so archs
without ISA won't see it. Now macppc builds again.
2007-12-24 01:31:08 +00:00
macallan
ddf0036d4b #define __HAVE_PRIVATE_PCI_BUS_DMA_TAG 2007-12-24 01:27:34 +00:00
joerg
96fb7c224f Update pkg_install to 20071224. Important changes:
- Better diagnostic for duplicate packages
- Detect conflicts between already installed packages and a
to-be-installed package.
- Do not check for the build version of a package first, always get the
newest version.
- Remove pkgdb entries with rm -rf as rm get interactive for removal of
read-only files.
- Update usage() for pkg_info and pkg_admin for earlier additions.
2007-12-24 00:08:42 +00:00
joerg
fd3f654960 Catch up with pkg_install-20071224. 2007-12-24 00:04:45 +00:00
joerg
39ac827c19 Import pkg_install-20071224 2007-12-24 00:03:04 +00:00
rmind
862a6b5f0b OK, I was using whisky..
Fix previous - use foreach, and just return after first found entry.
The pmf_all_events list should not have duplicate entries (perhaps
pmf(9) should document this point).
2007-12-23 23:19:11 +00:00
joerg
83ba2e10a4 Remove dead power handling code. 2007-12-23 22:21:56 +00:00
rmind
099e4a9a20 pmf_event_deregister: fix use-after-free.
Found by: CID 4754.
2007-12-23 22:09:39 +00:00
jmcneill
940524edab Deregister activity handler on detach. 2007-12-23 19:14:03 +00:00
jmcneill
13f097963d Always enable the Fn key quirk if a device node for the Sony Programmable
Interrupt Controller (SNY6001) is not present.
2007-12-23 18:03:02 +00:00
jmcneill
190527566a Move sony.4 from i386 to MD man page directory 2007-12-23 17:39:19 +00:00
jmcneill
087888e1dd Add sony* at acpi? 2007-12-23 17:33:57 +00:00
jmcneill
9f7f6d9be0 Move Sony Notebook Controller (sony(4)) driver from MD to MI directory,
as it can be used on amd64 as well.
2007-12-23 17:29:26 +00:00
jmcneill
8f31e2d8cd Remove wskbd attachment, it never worked right anyway. Instead, deliver
hotkey events to powerd.
2007-12-23 17:25:45 +00:00
wiz
4cbd5a3a50 + DRY: don't repeat yourself 2007-12-23 16:03:28 +00:00
jmmv
5d2f326e93 Register the directories and files related to the addition of the test
programs for connect(2) and listen(2).
2007-12-23 13:51:16 +00:00
jmmv
98c2eca191 Register the /usr/tests/net/sys subtree. 2007-12-23 13:50:50 +00:00
jmmv
e44ee884d0 Add regression tests for low-port allocation in connect and listen, which
was broken and fixed recently in:
http://mail-index.netbsd.org/source-changes/2007/12/16/0011.html

Test-case code provided by elad@.
2007-12-23 13:50:22 +00:00
apb
bb3a1dfc42 Remove note about the first track being reserved for the BIOS (it's
not), and replace it with a note about the first partition traditionally
beginning in the second track of the first cylinder.
2007-12-23 10:47:42 +00:00
apb
ca6bb6217d Track zero is not strictly reserved for the BIOS, that's just a
convention, so don't make it an error in check_overlap().  Sector 0 is
reserved for the MBR, so make that an error in check_overlap().
2007-12-23 10:43:57 +00:00
rjs
4cec9c5ce2 Fix prototype. 2007-12-23 10:28:39 +00:00
hannken
f20fe37f57 Fix include order: netbsd32_syscallargs.h needs svr4_32_types.h. 2007-12-23 10:18:48 +00:00
apb
49b1fa58d7 Report the first active partition. 2007-12-23 08:58:34 +00:00
apb
29a92a49d4 If the partition is unused, then attempting to decode the PBR would
actually decode the MBR from sector 0 of the disk.  Don't do it if
v_flag < 3.
2007-12-23 08:14:28 +00:00
ad
c41ceea6c9 Update status for vmlocking2. 2007-12-23 03:52:44 +00:00
tsutsui
0cbdb8cc76 Use __arraycount(). 2007-12-23 03:04:57 +00:00
mrg
97e461c633 - provide 32 bit versions of the sparc v9 atomic ops.
- use them on sparc64 32 bit kernels.

fixes issues on 32 bit sparc64 kernels that were using sparc v8 ops.
tested by rjs@.
2007-12-22 23:19:40 +00:00
jmcneill
1247e31569 Add example hotkey_button script 2007-12-22 19:04:10 +00:00
jmcneill
941ceb8768 Note addition of hotkey_button scripts. 2007-12-22 18:40:21 +00:00
jmcneill
8fce0f055c Move display switching out of the kernel; deliver this (and other) events
to sysmon so a powerd script can handle them.
2007-12-22 18:38:13 +00:00
jmcneill
ebad57771c Handle hotkey events using /etc/powerd/scripts/hotkey_button, ok xtraeme 2007-12-22 18:35:13 +00:00
dsl
a1e817b5ba Define 'struct intrframe' in terms of 'struct trapframe' since the two are
assumed to match by a lot of code (including that which saves the regs).
This only slightly reduces the number of places the trapframe register
layout is defined.
2007-12-22 18:35:00 +00:00
christos
4d16498d9e Use M_NOWAIT in audio_stream_ctor; it can be called from a softintr context
through pmf_resume.
2007-12-22 18:34:56 +00:00
christos
18bf1f8006 someone forgot /g in the vi s command. 2007-12-22 17:49:32 +00:00
dsl
44a023c35b Further constification of the syscall args buffer.
It will get __UNCONST() applied in the systrace code if/when systrace tries
to change the arguments.  This sucks since the syscall args might be in
the trap frame, and the syscall might return ERESTART so the restarted call
would use the wrong arguments.
OTOH systrace() (as a security measure) is almost impossible to implement
for a threaded app (validated filenames can be changed before namei() reads
them into memory).
The current code is just plain broken for threaded apps - data that needs
to be lwp-specified is proc-specific.
I believe ad is planning to nuke systrace ...
2007-12-22 16:19:34 +00:00
matt
f7dbcaa3d4 Make sure ip_newid etal doesn't return an ip_id of 0. 2007-12-22 16:04:45 +00:00
ad
08b0783a17 t_linesw->l_modem would ideally be called with tty_lock held, but before
that can happen someone needs to beat all the drivers into shape.
2007-12-22 15:45:15 +00:00
matt
0ec69f885b Fix offset calculation.
Make sure that all frags use the same TOS.
2007-12-22 15:41:11 +00:00