cube
5f5f6cdbad
Fix a few minor envsys2 bugs/oddities in acpi_bat(4).
...
- mark (DIS)CHARGERATE as invalid when (DIS)CHARGING so that envstat
doesn't print some weird stats where the system appears to be doing
both
- handle the case when it's doing neither by marking *RATE as invalid
and setting CHARGING to OFF (because we're not charging, even though
we're not discharging)
- fix print_stats to print correct values in those cases, and a real
percentage (i.e., computed against LFCCAPACITY)
2007-08-08 08:36:41 +00:00
pooka
258ed3740b
microfrost strikes back
2007-08-08 07:53:54 +00:00
pooka
034104770f
add microtime
2007-08-08 07:50:33 +00:00
macallan
2f62cc688b
use the ADB keymap in dev/adb/
2007-08-08 04:06:27 +00:00
kristerw
3a6ef3e3c1
Keep track of atexit functions that are added while processing
...
atexit functions, to ensure that the new functions will be called.
2007-08-08 01:05:34 +00:00
kristerw
af220472c9
Ensure that the struct atexit_handler has been removed from the list
...
of pending atexit handlers before the structure is reused. This prevents
__cxa_finalize from going into an infinite loop when an atexit handler
register a new atexit handler as in:
#include <stdlib.h>
void two(void) {
}
void one(void) {
atexit(two);
}
int main(void) {
atexit(one);
return 0;
}
2007-08-08 00:51:18 +00:00
pooka
22ca3a326a
Compile kernel stuff with DIAGNOSTIC.
2007-08-07 21:33:13 +00:00
pooka
3ac2af6a15
support ext2fs
2007-08-07 21:26:35 +00:00
pooka
33e8054a43
refuse (not *that* refuse) to mount a r/w file system with
...
bs < PAGE_SIZE, it simply won't work yet.
2007-08-07 21:24:40 +00:00
pooka
f815ddfdf3
flush pages in vflushbuf()
2007-08-07 21:23:19 +00:00
wiz
2d861dae37
Use more markup. Try to improve english. Sort SEE ALSO.
2007-08-07 20:50:39 +00:00
wiz
90a93c1dcd
Various improvements: sort errors; use more
...
markup; fixes for HTML and PostScript output.
2007-08-07 20:45:03 +00:00
pooka
d70a2a3a9d
realpath() can also fail, take that into account
2007-08-07 20:40:53 +00:00
pooka
711e2ec866
always compile with -g for now
2007-08-07 20:39:54 +00:00
ad
1d42dbd29a
Missed variable rename..
2007-08-07 19:58:30 +00:00
pooka
3c4d6d00f7
* adjust device block number based on if we're putting pages to a
...
fs block boudary or not
* round writes to DEV_BSIZE, just to be kosher
2007-08-07 19:43:56 +00:00
pooka
44eee227b6
remove the allocstorage param from makepage - not needed
2007-08-07 19:40:17 +00:00
ad
9c9c8d3668
Note libpthread changes.
2007-08-07 19:39:28 +00:00
pooka
7d41c1505d
track dirty vm objects
2007-08-07 19:37:05 +00:00
pooka
34c0850533
When doing "ubc faults", truncate offsets to page boundary to get
...
the last page also if it's accessed from the middle of the page.
2007-08-07 19:14:51 +00:00
ad
c3f8e2ee55
Change the signature of _lwp_park() to accept an lwpid_t and second
...
hint pointer, but do so in a way that remains compatible with older
pthread libraries. This can be used to wake another thread before the
calling thread goes asleep, saving at least one syscall + involuntary
context switch. This turns out to be a fairly large win on the condvar
benchmarks that I have tried.
2007-08-07 19:04:21 +00:00
ad
a72ab2ed2c
NetBSD 4.99.27: _lwp_park() behaviour changed. libpthread will check
...
kern.osrevision.
2007-08-07 19:02:43 +00:00
ad
06f7ccf01d
Regen.
2007-08-07 19:01:23 +00:00
ad
830ab6bb3c
- Fix a bug with _lwp_park() where if the computed wakeup time was under
...
1 microsecond into the future, the thread could enter an untimed sleep.
- Change the signature of _lwp_park() to accept an lwpid_t and second
hint pointer, but do so in a way that remains compatible with older
pthread libraries. This can be used to wake another thread before the
calling thread goes asleep, saving at least one syscall + involuntary
context switch. This turns out to be a fairly large win on the condvar
benchmarks that I have tried.
- Mark some more syscalls MP safe.
2007-08-07 19:00:42 +00:00
pooka
09afbbeda4
mutex_pwned - needed for kassert
2007-08-07 17:55:49 +00:00
pooka
24293880e1
in case of no error, init *error to 0
2007-08-07 16:55:22 +00:00
xtraeme
ea44cd3ae2
<wizd> Bump date for previous.
2007-08-07 15:00:09 +00:00
xtraeme
555fcb5606
The acpilid(4) powerd script is "lid_switch" not "lid_button"... found
...
by jmcneill@.
2007-08-07 14:03:00 +00:00
pooka
a213499d32
dump further info for read/write
2007-08-07 13:44:27 +00:00
yamt
69aa06cd40
don't bother to set thread's priority by ourselves,
...
as kthread_create does it for us now. from Andrew Doran.
2007-08-07 12:50:26 +00:00
ad
eef90c7197
Regen.
2007-08-07 12:48:52 +00:00
ad
b9d8ad095d
wait() can't yet be MPSAFE since it's impractical to hold proclist_mutex
...
across exit(), and so there is a short race against cv_wait_sig(). This
can be reverted when proclist_mutex/proclist_lock merge.
2007-08-07 12:48:30 +00:00
ad
5005559992
Do cv_broadcast() on proc::p_waitcv to be on the safe side (the parent
...
could be multithreaded).
2007-08-07 12:45:54 +00:00
yamt
7253d0ec03
use a pre-generated list of files instead of running find(1) again and again.
...
PR/34551.
2007-08-07 12:44:39 +00:00
yamt
1912a2fa9c
add a file generated by mkheaderlist.sh.
2007-08-07 12:43:02 +00:00
yamt
f4069de4f3
a script to generate a list of headers for Makefile.disklabel.
2007-08-07 12:38:23 +00:00
ad
21a5d0733c
Fix typo.
2007-08-07 12:00:25 +00:00
ad
c1bc924601
No reason not to make itimespecfix() generally available..
2007-08-07 11:43:35 +00:00
ad
4a8903393a
Export itimespecfix() until itimerfix() dies.
2007-08-07 11:39:18 +00:00
ad
178e1d5907
More calls to pmap_update().
2007-08-07 11:30:20 +00:00
ad
eb5991fdda
x86_ipi: don't wait for the IPI to go, unless DIAGNOSTIC. If it doesn't go,
...
the system is going to fail regardless.
2007-08-07 11:28:26 +00:00
ad
4f5723ab5d
Add a couple more calls to pmap_update().
2007-08-07 11:25:40 +00:00
yamt
e3fe8e011e
- don't assume the order of cpus in a CPU_INFO_FOREACH loop.
...
- remove unused structure members.
- simplify.
2007-08-07 10:42:22 +00:00
pooka
f5e5e38069
-I${NETBSDSRCDIR}/common/include
2007-08-07 10:30:39 +00:00
seb
2d1475af34
Fix typo.
...
Ok'ed by xtraeme@
2007-08-07 10:17:17 +00:00
pooka
2ef1090efd
more bsd.own.mk inclusion
2007-08-07 10:16:56 +00:00
pooka
b24ef6ec06
flip order of includes to get NETBSDSRCDIR. from agc
2007-08-07 10:13:31 +00:00
yamt
6065343dde
reduce diff.
2007-08-07 10:02:40 +00:00
ad
23cf810fc7
Regen.
2007-08-07 09:46:39 +00:00
ad
9dab7d5077
gettimeofday() doesn't need locks, and MySQL seems to make heavy use of it.
2007-08-07 09:46:24 +00:00