Commit Graph

161079 Commits

Author SHA1 Message Date
pooka
cb6989bfcf fool some KASSERTs 2007-08-09 09:11:57 +00:00
pooka
c36b0d0bc4 whoops, committed old signature of vrele2() 2007-08-09 09:06:44 +00:00
pooka
2c3d0e9d16 Add some stubs for lfs. 2007-08-09 08:56:44 +00:00
pooka
3de9f5d391 Instead of having lfs muck directly about with vnode free lists,
introduce vrele2(), which allows to release vnodes the way lfs
sometimes wants it:
  + without calling inactive
  + inserting the vnode at the head of the freelist (this is a very
    questionable optimization that isn't even enabled by default,
    but I went along with the same semantics for now)
2007-08-09 08:51:21 +00:00
pooka
dfeea3487b Don't need to use MNT_FORCE here (my original test image was a bit
b0rked), but do stuff MNT_RDONLY down the file system's throat.
2007-08-09 08:33:25 +00:00
tron
b21dec1752 Add code to monitor the disk wedges (see dk(4)) configured on the
system. Based on a patch contributed by Andreas Wrede in PR misc/36747.
2007-08-09 07:50:58 +00:00
pooka
39afc34cc7 * compile subr_time.c from kern/
* some pmap stubs
2007-08-09 07:42:07 +00:00
pooka
5fbd525b19 Shuffle routines which just roll values around from kern_clock.c
and kern_time.c to subr_time.c.
2007-08-09 07:36:18 +00:00
hannken
70cc392f1e Move snapshot per-mount data from struct ufsmount to mount specific data.
No functional changes.

Welcome to 4.99.28  (struct ufsmount changed size)
2007-08-09 07:34:27 +00:00
pooka
1f47971378 pass mntflags to puffs_mount() 2007-08-08 22:45:51 +00:00
joerg
ca08f11a4d Regen config.h. 2007-08-08 22:44:49 +00:00
joerg
06a05a37cc Import pkg_install-20070804: Fix ordering in pkg_order. 2007-08-08 22:38:48 +00:00
macallan
794098d6c6 sync with ppcoea-renovation 2007-08-08 22:19:55 +00:00
pooka
f208ab1cd8 boolean_t -> bool 2007-08-08 21:36:43 +00:00
agc
babe0fc9d8 Apply fix from PR 35283 from David Holland:
ensure that kdump properly escapes newlines in argv
2007-08-08 20:28:11 +00:00
tsutsui
7ff0d7e309 Defer arc_init_wired_map() call after MD ipl_sr_bits[] is initilized
in platform dependent init functions.

arc_init_wired_map() refers ipl_sr_bits[] via
extent_create(9) -> mutex_init(9) -> makeiplcookie(9)
since the partial merge of vmlocking.
2007-08-08 17:26:57 +00:00
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