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
yamt
0c303876e6
nfsrv_create: fix a use-after-release.
2007-12-22 03:31:15 +00:00
yamt
0ce2491bde
pool_whatis: print cached items as well.
2007-12-22 03:28:48 +00:00
yamt
d2ade1bf0f
vmem_whatis: print "free" btags as well.
2007-12-22 03:27:10 +00:00
yamt
c70d5dc9d0
add a function to lookup cpu_info by cpu index.
2007-12-22 03:26:34 +00:00
jmcneill
bf34549b28
Only toggle bluetooth when the wireless button is pressed, simplifies
...
things and it seems I forgot that my laptop has a separate wifi switch.
2007-12-22 03:19:29 +00:00
ad
4caeb79017
Restore seperate condvars for clist i/o and clist control activity.
...
Fixes lockups with concurrent output to ttys. kern/37455
2007-12-22 02:21:29 +00:00
yamt
392c2dc8c2
sync with kernel.
2007-12-22 01:22:03 +00:00
ad
8044d72190
Make compile (hi moof).
2007-12-22 01:21:41 +00:00
yamt
5c9ef3149e
4.99.44: use binuptime for l_stime/l_rtime.
2007-12-22 01:20:10 +00:00
tsutsui
68fb2791e1
Use h2fs32() rather than fs2h32() on host to disk conversion.
2007-12-22 01:19:52 +00:00
yamt
1f3e72866c
expose bintime for libpthread.
2007-12-22 01:19:41 +00:00
tsutsui
37d769ed47
- use MINFREE defiend in <ufs/ext2fs/ext2fs.h>
...
- remove unnecessary casts
- unsigned -> unsigned int
- misc KNF
2007-12-22 01:15:49 +00:00
yamt
949e16d902
use binuptime for l_stime/l_rtime.
2007-12-22 01:14:53 +00:00
yamt
bf162a4cf7
vmem_alloc: round-up size only when necessary. suggested by Andrew Doran.
2007-12-22 01:11:37 +00:00
yamt
2294b0bcb6
procfs_douptime: simply use microuptime() instead of a mysterious calculation.
2007-12-22 01:06:54 +00:00
yamt
0d13423925
procfs_docpustat: g/c a write-only variable.
2007-12-22 01:04:55 +00:00