Commit Graph

161063 Commits

Author SHA1 Message Date
pooka 24c0b6d0d0 Provide rump_getvninfo() and use that in libp2k_lookup() to avoid an
extra getattr for stuff the file system already cached in the vnode.
2007-08-08 14:09:07 +00:00
pooka 804db68101 Make genfs_islocked return always 1 instead of 0. But these should
really get tracked ...
2007-08-08 14:07:35 +00:00
ad 41368c8e7e Grab locks in getrusage/getrlimit. 2007-08-08 14:07:11 +00:00
pooka 427705465b Provide rumpmachine bswap.h, which makes bswapxx() call rumpuser
directly instead of relying on a symbol in rumpkern.  I would like
to make it call the libc symbol directly, but I don't currently know
how to make it do that MI.

Makes hfs work (on i386), as it avoids endless recursion in bswap64().
Thanks to dillo for the image!
2007-08-08 13:12:08 +00:00
tsutsui 6abcd959b3 Restore targets for sd(4) devices, which can be attached at atapibus(4).
Closes PR port-shark/36693.
2007-08-08 13:12:06 +00:00
tsutsui 13c8b8da87 Restore a device major for sd(4), which can be attached at atapibus(4).
Fixes part of PR port-shark/36693.
2007-08-08 13:08:11 +00:00
tron a166a5aeb7 Regen. 2007-08-08 12:53:05 +00:00
tron cb32f7bb82 Add some Attansis and VIA devices, correct order.
Patch provided by Christoph Egger on "tech-kern" mailing list.
2007-08-08 12:52:41 +00:00
yamt 8e473ee7cb push kernel_lock a little. 2007-08-08 12:27:56 +00:00
drochner a6b978e197 Round up size arguments as mmap() does.
This is for consistency, and to have semantics similar to Linux --
a Python selftest secceeds now.
2007-08-08 11:08:18 +00:00
tsutsui 917f2a088f Fix typo in debug printf. 2007-08-08 10:43:03 +00:00
tsutsui 6441e4962b Remove obsolete spllowersoftclock(9). 2007-08-08 10:30:50 +00:00
xtraeme bab89d201b w83627ehf_sensors: don't add sensors with duplicate descriptions.
These are voltage sensors and the VINX name is appropiate.

Found by Heron Gallegos.
2007-08-08 10:09:43 +00:00
pooka 572974402c krwlock_op_t -> const krw_t 2007-08-08 09:34:40 +00:00
pooka bbae7f4e94 Add hfs. Untested, as I couldn't find a hfs+ image for testing,
so one would be appreciated.  At least it works enough to tell me
this:

hfs: Plain HFS volumes not currently supported
2007-08-08 09:28:53 +00:00
pooka 493dccb979 sprinkle #ifdef _KERNEL 2007-08-08 09:21:34 +00:00
pooka 7772c7295b * compile param.c
* move opts to a separate directory
2007-08-08 09:06:11 +00:00
cube 8b3327fe73 Print ACPI device name in a way that Jared McNeill and I find prettier.
I like it better because I get to see the name of the device as it appears
in the DSDT, which sometimes makes sense and that way it's easier to locate
the relevant code when debugging.

E.g.:

PIC (PNP0000) [AT Interrupt Controller] at acpipcib0 not configured
DMAD (PNP0200) [AT DMA Controller] at acpipcib0 not configured
attimer0 at acpipcib0 (TMR, PNP0100): AT Timer
RTC0 (PNP0B00) [AT Real-Time Clock] at acpipcib0 not configured
pckbc0 at acpipcib0 (PS2K, PNP0303): kbd port
acpibat0 at acpi0 (BAT0, PNP0C0A-0): ACPI Battery (Control Method)
2007-08-08 08:52:31 +00:00
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