Commit Graph

165009 Commits

Author SHA1 Message Date
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
matt
f064a5136b Add ipq_tos to struct ipqe. (Doesn't increase size since the last member
was a u_int16_t).
2007-12-22 15:40:02 +00:00
ad
a11ac30cf3 Don't recursively acquire tty_lock when zstty_softint() is called directly. 2007-12-22 15:36:37 +00:00
ad
93b4e84394 membar_memory -> membar_sync 2007-12-22 15:33:42 +00:00
tsutsui
9e4e6d48cb In icu_intr_establish(), don't panic if the specified irq
is already in use and just return NULL instead.

Such situation could happen with devices which have
unconfigured PCI interrupt pins (because firmware
doesn't configure multiple function devices) and
each driver could handle the return value properly.
2007-12-22 14:42:21 +00:00
skrll
6698b79073 Minor change to comment. 2007-12-22 14:14:31 +00:00
skrll
c54df2db09 Add some more trap types and HPPA_BREAK_SS. From OpenBSD. 2007-12-22 14:11:10 +00:00
skrll
24ced765a1 Add a comment explaining stack layout and register contents. 2007-12-22 14:10:03 +00:00
skrll
4fef0969e0 Align the stack when delivering signals and don't waste a HPPA_FRAME_SIZE. 2007-12-22 14:09:03 +00:00
skrll
0361d1fef2 Cast the argument to HPPA_FRAME_ROUND to uintptr_t 2007-12-22 14:06:47 +00:00
jmcneill
6fffc8ef3c Add experimental display switching support. 2007-12-22 13:06:30 +00:00
dsl
43e74e4cc8 Add a few buckets of 'const' and 'static' to the system call trace code.
sys_trace() still needs to be able to update the syscall args.
2007-12-22 11:38:54 +00:00
skrll
79dd1f17ae Updates from FreeBSD:
- EAP support is compiled in.
	- xref wpa_passphrase(8)
	- static wep example.
	- typos/grammar.
2007-12-22 09:48:45 +00:00
tsutsui
f35b4c41fc Add ICE (internal compiler error), used on gcc. 2007-12-22 09:29:26 +00:00
dsl
35e44a2658 Fix the remaining sys_sysarch() stub function. 2007-12-22 08:59:02 +00:00
tsutsui
b3b089f419 Use (char *) on pointer arithmetic. 2007-12-22 08:29:40 +00:00
tsutsui
f498887b08 Apply changes for struct ifnet->if_sadl constify:
http://mail-index.netbsd.org/source-changes/2007/12/20/0033.html
2007-12-22 08:23:01 +00:00
tsutsui
f35eb8772f Put a workaround for gcc ICE on ddb/db_command.c. 2007-12-22 08:17:57 +00:00
yamt
9108a50874 pool_in_cg: don't bother to check slots past pcg_avail. 2007-12-22 04:31:34 +00:00